DEV.co
Open-Source Databases · drizzle-team

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.

Source: GitHub — github.com/drizzle-team/drizzle-orm
35.1k
GitHub stars
1.5k
Forks
TypeScript
Primary language
Apache-2.0
License (OSI-approved)

Key facts

Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.

FieldValue
Repositorydrizzle-team/drizzle-orm
Ownerdrizzle-team
Primary languageTypeScript
LicenseApache-2.0 — OSI-approved
Stars35.1k
Forks1.5k
Open issues1.9k
Latest release0.45.2 (2026-03-27)
Last updated2026-07-08
Sourcehttps://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.

Quickstart

Get the drizzle-orm source

Clone the repository and explore it locally.

terminalbash
git clone https://github.com/drizzle-team/drizzle-orm.gitcd drizzle-orm# follow the project's README for install & configuration

Need it deployed, integrated, or customized instead? DEV.co ships production installs.

Best use cases

Serverless and Edge Applications

Drizzle's zero-dependency, lightweight design and native support for serverless databases (Cloudflare D1, Vercel Postgres, Supabase, AWS Data API) make it ideal for edge functions and serverless architectures without infrastructure proxies.

TypeScript-First Web Applications

Strong type safety via SQL schema declaration and query builders suits full-stack TypeScript projects (Node.js, Bun, Deno) where compile-time correctness and developer experience are priorities.

Multi-Database Projects

Unified API across PostgreSQL, MySQL, and SQLite enables teams to switch databases or support multiple targets with minimal schema/query rewrites.

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.

SignalAssessment
MaintenanceActive
DocumentationStrong
License clarityClear
Deployment complexityLow
DEV.co fitStrong
Assessment confidenceHigh
Security considerations

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.

Software development agency

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.co

Related 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?
Unknown from data alone; v0.45.2 suggests pre-1.0 maturity, though active development and community adoption (35k stars) indicate real-world use. Require vendor or community references for your specific use case.
Can I use Drizzle with serverless databases?
Yes. Drizzle is serverless-ready by design and explicitly supports Turso, Neon, PlanetScale, Cloudflare D1, Vercel Postgres, Supabase, and AWS Data API with no custom adapters.
What's the learning curve compared to Prisma?
Drizzle requires more SQL and TypeScript knowledge (schema declaration, manual joins) vs. Prisma's auto-generated client; trade-off is smaller bundle and more direct SQL control.
Does Drizzle require a Node.js runtime?
No. Drizzle runs in Node.js, Bun, Deno, Cloudflare Workers, and other JavaScript runtimes; runtime depends on your deployment target.

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.