tool
Drizzle ORM
created 2026-04-19 database · orm · typescript · postgresql
Drizzle ORM
Type-safe, lightweight TypeScript ORM for PostgreSQL (and others). Preferred ORM for new kulify projects.
How We Use It
| Project | Usage |
|---|---|
| fajb-next | Full schema + 115 migrations, repository pattern |
| master-bot | Schema + availability queries with notExists subqueries |
Key Patterns
- Repository pattern:
/src/repo/with schema definitions + typed queries - Enum definitions: PostgreSQL enums defined in Drizzle schema
- Timestamps:
updatedAtviaNOW(), soft deletes viadeletedAt - Migration management:
drizzle-kitfor schema diffing + migration generation
vs Kysely
Vorma (Furniq) uses Kysely + DBMate. For new projects, prefer Drizzle for consistency.
Related
- fajb-next, master-bot — implementations
- Supabase — often paired for auth + hosting