Drizzle ORM

Drizzle ORM

Lightweight, zero-dependency TypeScript ORM with SQL-like queries, automatic migrations via Drizzle Kit, and serverless support.

★ 36.5K

Write type-safe SQL in TypeScript without heavy runtime bloat using Drizzle ORM

Traditional TypeScript ORMs often hide SQL behind awkward method chains, ship bulky Rust query binaries that slow down serverless cold starts, or generate hidden N+1 queries. Drizzle ORM takes a simpler path: if you know SQL, you already know Drizzle. Weighing roughly 7.4 KB minified and gzipped with zero dependencies under the Apache-2.0 license, it has 36.5K GitHub stars and 1,800 forks.

What makes Drizzle a favorite for modern TypeScript

  • You declare schemas in pure TypeScript and choose between a SQL-like query builder (`db.select().from()`) or a clean relational query API that always compiles to a single SQL statement.
  • With zero binary engines or data proxies required, it runs natively on Node.js, Bun, Deno, Cloudflare Workers, Vercel, and browser WebAssembly.
  • It connects out of the box to PostgreSQL, MySQL, and SQLite, plus serverless databases like Neon, Turso, Supabase, PlanetScale, and Cloudflare D1.
  • The companion Drizzle Kit CLI generates SQL migrations automatically, while Drizzle Studio lets you browse and edit tables visually.

Trade-offs to consider

Because Drizzle stays close to raw SQL, you need basic comfort with SQL joins, indexes, and foreign keys rather than relying on magic object-graph lazy loading. Teams that prefer a separate declarative `.prisma` schema file over TypeScript schema files will notice the different workflow immediately.

Quick takeaway

If you want instant serverless startup times and full TypeScript autocomplete without giving up control over your SQL queries, Drizzle ORM is the sharpest tool in the ecosystem.

Ready to try Drizzle ORM?

Experience the full capabilities on their official website.

Visit Official Website