Overview
Drizzle ORM is a lightweight TypeScript ORM for PostgreSQL, MySQL, and SQLite-family databases. It lets developers declare schemas in TypeScript and write SQL-like queries with static types across multiple JavaScript runtimes.
Features and best fit
Based on official documentation; not hands-on tested · Content checked:
Build typed queries from TypeScript schemas
Tables and columns are declared in TypeScript and queried through SQL-like APIs that preserve input and result types.
Add migration and data-inspection tooling with Drizzle Kit and Studio
Drizzle Kit generates or applies schema changes, while Drizzle Studio provides a browser-based path for inspecting and editing database data.
Useful when teams want type safety without hiding SQL concepts
It fits TypeScript applications on Node.js, Bun, Deno, Cloudflare Workers, and related runtimes that want database access to remain close to SQL.
Sources: [2]
Choose the database driver for the target runtime
The ORM supports many environments, but actual connectivity depends on a driver appropriate to the database and runtime, such as pg, postgres, or a serverless-specific client.
Official sources
- [1]drizzle-team/drizzle-orm repository(2026-09-21)
- [2]Drizzle ORM README(2026-09-21)
- [3]Drizzle ORM documentation(2026-09-21)
- [4]Drizzle Kit documentation(2026-09-21)
- [5]drizzle-orm package(2026-09-21)
- [6]Drizzle ORM Apache-2.0 license(2026-09-21)
Supplemental curator note
Drizzle ORM is designed as a thin typed layer that keeps SQL concepts visible rather than hiding them behind a heavy abstraction. The current `drizzle-orm` package is 0.45.3. Connection setup depends on the target database and runtime, using drivers such as `pg`, `postgres`, `@neondatabase/serverless`, or `@libsql/client`.
Try it in 3 steps
- 1
Install the ORM and a PostgreSQL driver
This is a minimal PostgreSQL path. Replace the driver using the official guide when targeting SQLite or a serverless database.
npm install drizzle-orm pg && npm install -D drizzle-kit @types/pg - 2
Define the schema and connection configuration in TypeScript
Declare tables in TypeScript and configure Drizzle Kit around a DATABASE_URL.
Create src/db/schema.ts and drizzle.config.ts - 3
Push the schema to a test database
Apply the schema to a test database, then run SELECT or INSERT operations through Drizzle ORM to inspect typed queries.
npx drizzle-kit push
Growth
Growth trends · Last 30 days
35,840 Stars
Trend data is still being collected.
Development activity
Last 90 days · weekly
- Commits (last 30 days)
- 4
- Open PRs
- 658
Development activity is still being collected.
Built with
Categories and tags
Categories
GitHub data
GitHub dataView detailed GitHub data
GitHub Topics
- typescript
- orm
- postgresql
- mysql
- sql
- sqlite
- bunjs
- nodejs
- postgres
- turso
- Stars
- 35,840
- Forks
- 1,639
- Watchers
- 93
- Open issues
- 1,384
- Contributors
- 124
- Primary language
- TypeScript
- License
- Apache-2.0
- Repository last updated
- Sep 20, 2026
Related information
Write a related articleShare a guide or use case for this OSS in Markdown. Articles are published after administrator approval.
Explore next
- Prisma ORM47,646 Stars
3 shared tag(s) · 2 shared category(s) · Same language
A Node.js/TypeScript ORM whose current main branch is the Prisma 8 release candidate, rebuilt in TypeScript around an extension SPI, composable contracts, and AI-agent skills.
TypeScript - NocoDB65,021 Stars
3 shared tag(s) · 1 shared category(s) · Same language
A self-hostable spreadsheet-style database interface with multiple views, access control, automation integrations, and REST APIs.
TypeScript - Medusa36,400 Stars
3 shared tag(s) · Same language
A TypeScript commerce platform for composing modules, workflows, and APIs into B2B, DTC, marketplace, and custom commerce systems.
TypeScript - NanoClaw30,808 Stars
3 shared tag(s) · Same language
A lightweight personal AI assistant that isolates agents in containers and connects messaging, memory, and scheduled work.
TypeScript - Colanode5,145 Stars
3 shared tag(s) · Same language
A local-first, self-hostable collaboration workspace combining chat, pages, databases, and file management.
TypeScript
Report incorrect information
Tell us if any listing information is incorrect or outdated.