Navigate:
All Reposdrizzle-orm
~$DRIZZL0.1%

Drizzle ORM: TypeScript ORM for SQL databases

Lightweight type-safe SQL query builder for TypeScript.

LIVE RANKINGS • 08:25 AM • STEADY
TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100TOP 100
OVERALL
#79
47
DATA ENGINEERING
#7
4
30 DAY RANKING TREND
ovr#79
·Data#7
STARS
32.2K
FORKS
1.1K
DOWNLOADS
3.2M
7D STARS
+42
7D FORKS
+4
See Repo:
Share:

Learn more about drizzle-orm

Drizzle ORM is a TypeScript-first object-relational mapping library designed for server-side JavaScript environments. It operates as a thin typed layer above SQL, allowing developers to define database schemas and construct queries using either relational or SQL-like syntax while maintaining type safety. The library ships at approximately 7.4kb minified and gzipped with no external dependencies, and supports multiple database engines including PostgreSQL, MySQL, SQLite, and various serverless database platforms. It runs across different JavaScript runtimes including Node.js, Bun, Deno, Cloudflare Workers, and edge computing environments.

drizzle-orm

1

Zero dependencies

The library includes no external dependencies and maintains a small bundle size of roughly 7.4kb minified and gzipped. Code is tree-shakeable, allowing unused portions to be removed during bundling.

2

Multi-runtime support

Drizzle runs in Node.js, Bun, Deno, Cloudflare Workers, Supabase functions, and browser environments without requiring serverless adapters or proxy layers. It works directly with both traditional and serverless database platforms.

3

Type-safe schema definition

Schemas are declared in TypeScript with full type inference for queries. The ORM supports both relational query builders and SQL-like query syntax while maintaining end-to-end type safety.


import { drizzle } from 'drizzle-orm/node-postgres';
import { users } from './schema';
import { eq } from 'drizzle-orm';

const db = drizzle(pool);

// Query users by email
const result = await db
  .select()
  .from(users)
  .where(eq(users.email, 'john@example.com'));

vdrizzle-kit@0.31.6

Fixes ESM module import failure for drizzle-kit/api; no breaking changes or new requirements noted.

  • Upgrade to resolve import errors when using drizzle-kit/api in ESM projects.
  • Release notes do not specify other changes, migrations, or deprecations.
v0.44.7

Fixes transaction return value handling in durable SQLite connections.

  • Update if you rely on return values from SQLite transactions in durable mode.
  • Release notes do not specify breaking changes or migration steps.
v0.44.6

Adds $replicas reference for read replica support; no breaking changes or migrations required.

  • Use the new $replicas reference to direct queries to read replicas in your connection configuration.
  • Release notes do not specify breaking changes, version requirements, or deprecations.

See how people are using drizzle-orm

Loading tweets...


[ EXPLORE MORE ]

Related Repositories

Discover similar tools and frameworks used by developers