drizzle-orm
Drizzle is a lightweight TypeScript ORM (~7.4kb) for PostgreSQL, MySQL, and SQLite with zero dependencies. It supports serverless databases (Turso, Neon, PlanetScale) and runs in Node.js, Bun, Deno, and edge runtimes without adapters.
Key facts
Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.
| Field | Value |
|---|---|
| Repository | drizzle-team/drizzle-orm |
| Owner | drizzle-team |
| Primary language | TypeScript |
| License | Apache-2.0 — OSI-approved |
| Stars | 35.1k |
| Forks | 1.5k |
| Open issues | 1.9k |
| Latest release | 0.45.2 (2026-03-27) |
| Last updated | 2026-07-08 |
| Source | https://github.com/drizzle-team/drizzle-orm |
What drizzle-orm is
Drizzle provides type-safe SQL schema declaration and relational/SQL-like query building with tree-shakeable architecture. It operates as a thin typed layer on raw SQL, supporting migrations via Drizzle Kit CLI and database management via Drizzle Studio.
Get the drizzle-orm source
Clone the repository and explore it locally.
git clone https://github.com/drizzle-team/drizzle-orm.gitcd drizzle-orm# follow the project's README for install & configurationNeed it deployed, integrated, or customized instead? DEV.co ships production installs.
Best use cases
Implementation considerations
- TypeScript knowledge required: Schema and query safety depend on understanding TypeScript generics and type inference.
- Migration management via Drizzle Kit CLI; review CLI stability and migration rollback strategy before production adoption.
- No built-in ORM features (soft deletes, hooks, auto-timestamps): teams must implement or use utilities; inspect codebase for feature gaps.
- Zero-dependency design reduces supply-chain risk but requires direct database driver management; verify driver compatibility with target databases.
- Serverless-ready but requires understanding of connection pooling and transaction semantics per database service (e.g., Neon, Turso).
When to avoid it — and what to weigh
- Non-SQL Datastores — Drizzle is SQL-only; MongoDB, NoSQL, or graph databases require alternative ORMs.
- Heavy GraphQL Auto-Generation Needed — While Drizzle supports TypeScript schema, dedicated GraphQL ORMs or code generators may be better suited if extensive GraphQL introspection/federation is required.
- Complex ORM Abstraction Preferred — Teams preferring high-level abstractions (eager loading, relationship hooks, soft deletes built-in) may find Drizzle's thin layer requires more manual SQL knowledge.
- Legacy Java/.NET Ecosystem — Drizzle is JavaScript/TypeScript only; Java/C#/.NET projects need language-native ORMs.
License & commercial use
Licensed under Apache License 2.0, a permissive OSI license allowing commercial use, modification, and distribution with attribution and liability/warranty disclaimers.
Apache-2.0 permits commercial use in proprietary applications. No explicit commercial support, training, or SLA stated in provided data; vendor engagement (drizzle.team) may offer support options—requires direct review. No license restrictions on production or closed-source deployment.
DEV.co evaluation signals
Editorial assessment — not user reviews. Directional, with an explicit confidence level.
| Signal | Assessment |
|---|---|
| Maintenance | Active |
| Documentation | Strong |
| License clarity | Clear |
| Deployment complexity | Low |
| DEV.co fit | Strong |
| Assessment confidence | High |
Drizzle operates as a thin SQL layer; security depends on driver and database configuration. Review: parameterized query use (recommended for SQL injection mitigation), handling of secrets in connection strings, and database-level access controls. No explicit security audit data provided; conduct threat model review for sensitive data. Zero dependencies reduce attack surface but shift responsibility to driver and database layer.
Alternatives to consider
Prisma
Higher-level ORM with auto-generated client, built-in migrations, and introspection; requires Node.js and includes native binaries; different tradeoff favoring convenience over minimal footprint.
TypeORM
TypeScript ORM with decorator-based schema; supports both relational and NoSQL; more feature-rich (hooks, subscribers, soft deletes) but larger bundle and higher complexity.
Knex.js
Lightweight query builder (not full ORM) with TypeScript support; lower abstraction, more SQL control; no schema validation or type-safe joins out of the box.
Build on drizzle-orm with DEV.co software developers
Drizzle is a strong fit for serverless and edge-native TypeScript applications. Validate schema design, migration strategy, and database driver compatibility with your deployment target. Consider a POC with your primary database.
Talk to DEV.coRelated open-source tools
Surfaced by semantic similarity across the DEV.co open-source index.
Related on DEV.co
Explore the category and the services that help you build with it.
drizzle-orm FAQ
Is Drizzle suitable for production?
Can I use Drizzle with serverless databases?
What's the learning curve compared to Prisma?
Does Drizzle require a Node.js runtime?
Software developers & web developers for hire
Adopting drizzle-orm is usually one piece of a larger software development effort. As a software development agency, DEV.co provides software development services and web development expertise — pairing senior software developers and web developers with your team to design, build, and operate open-source databases software in production.
Evaluate Drizzle for Your Next Project
Drizzle is a strong fit for serverless and edge-native TypeScript applications. Validate schema design, migration strategy, and database driver compatibility with your deployment target. Consider a POC with your primary database.