LogoTrendingDevTools
icon of Drizzle ORM

Drizzle ORM

Drizzle ORM is a lightweight, type-safe TypeScript ORM for PostgreSQL, MySQL and SQLite with a SQL-like API, zero dependencies and Drizzle Kit migrations.

Visit Website

Introduction

What is Drizzle ORM?

Drizzle ORM is an open-source TypeScript ORM that stays close to SQL. You define your schema in TypeScript, and Drizzle gives you fully typed queries that look and behave like SQL, plus a relational query API for fetching nested data. It has no runtime dependencies and is designed to run anywhere JavaScript runs, including serverless and edge runtimes. Its companion tool, Drizzle Kit, generates and runs migrations.

Key features

  • Type-safe schema: tables, columns and relations defined in TypeScript, with types inferred automatically.
  • SQL-like query builder: select, insert, update and delete that map closely to SQL.
  • Relational queries: fetch nested relations in one call.
  • Multiple databases: PostgreSQL, MySQL and SQLite, including services such as Neon, Supabase, PlanetScale, Turso and Cloudflare D1.
  • Lightweight: no dependencies and a small bundle, good for serverless and edge.
  • Drizzle Kit: generate SQL migrations, push schema changes and introspect existing databases.
  • Drizzle Studio: a database browser for viewing and editing data.

Who is it for?

Drizzle is for TypeScript developers who want type safety without hiding SQL, teams deploying to serverless or edge platforms, and anyone who finds heavier ORMs too abstract.

Use cases

  • Backends for Next.js, Hono and other TypeScript frameworks
  • Serverless apps on Vercel or Cloudflare Workers
  • Type-safe access to an existing database through introspection
  • Managing schema changes with versioned migrations
  • Projects that switch between SQLite in development and Postgres in production

Pricing

Drizzle ORM and Drizzle Kit are free and open source. See the official getting-started docs.

Drizzle is working toward version 1.0. Release candidate v1.0.0-rc.5 was published on October 21, 2026 (release notes), while the stable 0.45 line received 0.45.4 on October 8, 2026 (release notes).

Getting started

  1. Install Drizzle and a driver, for example npm i drizzle-orm pg and npm i -D drizzle-kit.
  2. Define your tables in a schema.ts file.
  3. Create a drizzle.config.ts with your database connection.
  4. Run npx drizzle-kit generate and npx drizzle-kit migrate to apply migrations.
  5. Query your database with the typed db instance.

Alternatives

Prisma is the most popular TypeScript ORM, with its own schema language. Drizzle pairs well with databases such as Neon, Supabase, Turso and PlanetScale, and with lightweight frameworks like Hono. For a database-plus-backend approach, see Convex.

FAQ

Is Drizzle ORM free? Yes. Drizzle ORM and Drizzle Kit are open source.

Which databases does Drizzle support? PostgreSQL, MySQL and SQLite, plus many hosted services built on them.

Drizzle or Prisma? Drizzle stays closer to SQL and is lightweight, while Prisma uses its own schema language and a higher-level client. Both are fully type-safe.

Does Drizzle work on the edge? Yes. Drizzle has no dependencies and works with serverless drivers on edge runtimes.

Does Drizzle handle migrations? Yes, through Drizzle Kit.

ℹ️

Affiliate Disclosure: TrendingDevTools may earn a commission if you sign up through links on this page, at no extra cost to you.

Information

Are you the creator of Drizzle ORM?

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates