Drizzle ORM

Lightweight TypeScript ORM that stays close to SQL; schema defined in TypeScript.

Works with AI agents:llms.txtCLI
Ask your AI about this, with this page as the source:ChatGPT ↗Claude ↗Perplexity ↗

Drizzle ORM is a TypeScript library for working with SQL databases. You get typed queries without a separate schema language or code generator. Tables are declared as ordinary TypeScript, and queries read almost like the SQL they produce.

There are two layers. The core is a SQL-like query builder (select, insert, joins, subqueries) that maps closely to the generated SQL; the Queries API on top fetches nested relations and, according to the docs, always compiles to exactly one SQL statement. Drizzle has no dependencies of its own and talks to the database through the standard driver you choose, with support for PostgreSQL, MySQL, SQLite, SingleStore, SQL Server and CockroachDB and hosted options such as Neon, Supabase, PlanetScale, Turso and PGlite.

Migrations come from the companion CLI, Drizzle Kit. It can generate SQL migration files from changes to your TypeScript schema and apply them (generate and migrate), push the schema straight to the database for fast iteration (push), or introspect an existing database into a TypeScript schema (pull). It also ships Drizzle Studio for browsing data, seeding helpers, and generators for Zod, Valibot and other validation schemas. Everything runs inside your app; there is no hosted service.

Limits: because the API stays close to SQL, you need to know SQL to use it well. The project is moving to v1.0 (currently a release candidate), which restructures the migrations folder, rewrites Drizzle Kit's snapshot format and introduces Relational Queries v2, so existing projects face an upgrade step.

Where it fits

How Drizzle ORM itself is built

1 tools, from its own code, website and Product Hunt page.

Who uses it

10 makers' products, each linked to the source that shows it, and 136 open-source projects that declare it in their code.

The maker says so 10Declared in code 137How evidence is collected →
DokploySelf-hostable deployment platform for applications and databases across multiple servers…

“Drizzle ORM has been a game-changer for Dokploy. As a developer focused on efficient and reliable data handling, Drizzle's seamless integration into my workflow.”

Database Access & ORMsMaker says so +1 · source ↗
VouchBetter than your ATS, meet your hiring assistant

“The best and most dev friendly ORM we've used. We actually started on prisma, but their `migrate dev` functionality started to take minutes per deployment. Drizzle helps you avoid it, and locally their `push` functionality is great for rapid prototyping, and their `migrate` and `deploy` function works flawlessly. Also it does not require generating a local package, just an amazing developer experience. I hope to donate when the company gets a bit more revenue hehe.”

Database Access & ORMsMaker says so · source ↗
FlowsThe better way to build product adoption

“Drizzle allows us to easily manage database migrations and access data in type safe manner. Even our "raw sql only" guy likes it!”

Database Access & ORMsMaker says so · source ↗
SonofaTransform your reading into listening with AI

“Drizzle ORM challenges MongoDB's schema-less claim. Schemas are beneficial, provided there's an effective solution for schema delta generation and migration scripts. Drizzle ORM did it.”

Database Access & ORMsMaker says so · source ↗
EmailCatcherEmail collection box for your website.

“I prefer Drizzle ORM because it’s lightweight and focuses on type safety with TypeScript. It’s a lot easier to use than bulkier ORMs, and it gives me confidence that I won’t run into unexpected runtime errors.”

Database Access & ORMsMaker says so · source ↗
PenifyBlog platform for everyone. Create your own blog effortless.

“Drizzle ORM is amazing. It allows building database queries effortless. Is lightning fast and should be used by every Type Safety projects.”

Database Access & ORMsMaker says so · source ↗
Launch CodeTake Control of Your Course Revenue | a nextjs boilerplate

“Drizzle makes my serverless database handling easy. It's as fast as Prisma!”

Database Access & ORMsMaker says so · source ↗
SnowSEORank #1 in search & AI, while you sleep

“Huge shoutout to DrizzleORM, made it easier to work with complex queries.”

Database Access & ORMsMaker says so · source ↗

Open source: a project that declares Drizzle ORM as a dependency in its public code — verifiable, but not necessarily a live product.

What makers say

8 makers on why they use Drizzle ORM, in their own words on Product Hunt.

The best and most dev friendly ORM we've used. We actually started on prisma, but their `migrate dev` functionality started to take minutes per deployment. Drizzle helps you avoid it, and locally their `push` functionality is great for rapid prototyping, and their `migrate` and `deploy` function works flawlessly. Also it does not require generating a local package, just an amazing developer experience. I hope to donate when the company gets a bit more revenue hehe.
VouchSep 2026 ↗
I prefer Drizzle ORM because it’s lightweight and focuses on type safety with TypeScript. It’s a lot easier to use than bulkier ORMs, and it gives me confidence that I won’t run into unexpected runtime errors.
EmailCatcherSep 2026 ↗
Drizzle ORM challenges MongoDB's schema-less claim. Schemas are beneficial, provided there's an effective solution for schema delta generation and migration scripts. Drizzle ORM did it.
SonofaSep 2026 ↗
Drizzle ORM is amazing. It allows building database queries effortless. Is lightning fast and should be used by every Type Safety projects.
PenifySep 2026 ↗
Drizzle allows us to easily manage database migrations and access data in type safe manner. Even our "raw sql only" guy likes it!
FlowsSep 2026 ↗

Loved and watch-outs

Themes that recur in makers' words and Hacker News comments, each linked to what it summarises, with how Product Hunt tags its reviews.

Most loved
  • It is lightweight and type-safe, and feels straightforward next to bulkier TypeScript ORMs. PHHN
  • drizzle-kit push speeds prototyping, migrations deploy cleanly, and there is no generated client package to rebuild. PHHN
  • It works well with serverless and edge databases such as Neon, Cloudflare D1 and PGlite. PHHNHN 2
  • Newer coding agents now default to it when choosing a JavaScript ORM. HNHN 2
Watch-outs
  • Database features like SQLite STRICT tables and deferrable Postgres constraints stay unsupported for years, pushing some projects off it. HNHN 2HN 3
  • Its own operator-style query syntax limits what you can express compared with writing SQL, such as full-text search. HNHN 2

Reliability and open issues

Most wanted on GitHubOpen on 2026-10-04 in drizzle-team/drizzle-orm, with activity in the last year — issues and feature requests by 👍.

Who switches

Public pull requests on GitHub since Oct 2024 whose title says "X to Y" — real code changes moving a project from one tool to another, by developers in general. Open a row to see the pull requests.

Prisma → Drizzle ORM140 PRs
Kysely → Drizzle ORM6 PRs
Drizzle ORM → Prisma27 PRs
Drizzle ORM → Kysely5 PRs

Alternatives to Drizzle ORM

All alternatives by situation →

Questions makers ask about Drizzle ORM

Which databases and drivers does Drizzle support?

Drizzle works through standard drivers for PostgreSQL, MySQL, SQLite, SingleStore, SQL Server and CockroachDB, with guides for providers such as Neon, Supabase, PlanetScale, Turso, PGlite, Bun SQL and Netlify Database. source ↗

Do I have to write migrations by hand?

No. Drizzle Kit can generate SQL migration files from your schema and apply them, push schema changes directly to the database, or pull an existing database's schema into TypeScript, so it fits both code-first and database-first workflows. source ↗

Is drizzle-kit push safe to use in production?

The docs call push the best approach for rapid prototyping, and note that many teams and solo developers use it as their main migration flow in production. Teams that want reviewable history use generated SQL files instead. source ↗

How do I load related rows without writing joins?

Use the relational Queries API, which returns nested related data without manual joins or mapping and, according to Drizzle, always runs exactly one SQL query. source ↗

What changes when upgrading to Drizzle v1?

Running drizzle-kit up converts the migrations folder to a new per-migration layout; Drizzle Kit moves to DDL snapshots with checks for conflicting migrations across branches, and relational queries move to v2 with a new relations definition. source ↗

Can I use an existing database with Drizzle?

Yes. drizzle-kit pull introspects the database and writes the matching Drizzle schema in TypeScript, so you can keep managing the schema with your existing tools. source ↗

Is Drizzle ORM free?

Yes — it is free, open-source software.

Is Drizzle ORM open source or self-hostable?

Open source, and you can self-host it. source ↗

Can AI coding agents work with Drizzle ORM?

It serves an llms.txt docs index; it has an official CLI (drizzle-kit).

Who uses Drizzle ORM?

10 makers' products we track, each with a source, and 136 open-source projects declare it in their code. source ↗