Drizzle ORM preview
drizzle-orm

Drizzle ORM

TypeScript ORM for SQL databases

33.9k|stable|v1.0.0-beta.21
import { drizzle } from 'drizzle-orm/node-postgres'; import { users } from './schema'; const db = drizzle(sql`...`); const result = await db.select().from(users).where(eq(users.id, 1));
SQL schema declaration — Define database schemas in TypeScript with type-safe column definitions.
Relational and SQL queries — Build queries using both relational syntax and SQL-like construction patterns.
Multi-database support — Works with PostgreSQL, MySQL, SQLite, and serverless platforms like Turso and Neon.
Zero dependencies — Lightweight at 7.4kb minified+gzipped with no runtime dependencies.
Drizzle Kit migrations — Generate and manage SQL migrations automatically with the included CLI tool.
Drizzle is a lean, TypeScript-first ORM that works across PostgreSQL, MySQL, and SQLite—including serverless databases. It ships with zero dependencies, runs in any JavaScript runtime, and includes Drizzle Kit for migrations and Drizzle Studio for data management. The type safety translates SQL schemas directly into TypeScript, giving you compile-time guarantees without the overhead of heavier ORMs.
Node.js, Bun, Deno, or any JavaScript runtime supporting TypeScript
Source on GitHub
pavilion