drizzle-orm vs typeorm

drizzle-orm is downloaded 2.2× more often than typeorm (39,472,031 vs 18,073,696 per month), so it has the larger community and more answered questions online. drizzle-orm ships 94% less gzipped JavaScript (8.4 kB vs 146.6 kB), which matters if bundle size is a priority. Both projects are actively maintained.

Metricdrizzle-ormtypeorm
Weekly downloads9,868,4114,208,495
Monthly downloads39,472,03118,073,696
GitHub stars34,62636,520
Minified size27.3 kB692.3 kB
Minified + gzipped8.4 kB146.6 kB
Dependencies010
Open issues1,818546
Last commit2026-06-012026-05-28
Latest version0.45.21.0.0
LicenseApache-2.0MIT

When to choose which

drizzle-orm

Type-safe, SQL-like ORM with a tiny runtime.

Choose it when: Type-safe SQL with minimal abstraction and no codegen — great for serverless/edge where bundle size and cold starts matter.

  • + Fully type-safe, no codegen
  • + SQL-like & tiny
  • + Edge/serverless friendly
  • - Younger ecosystem
  • - You work closer to raw SQL

typeorm

Decorator-based ORM, popular with NestJS.

Choose it when: Decorator/entity style (e.g. NestJS apps) where you want both Active Record and Data Mapper patterns.

  • + Decorator entities
  • + NestJS-friendly
  • + Active Record + Data Mapper
  • - Uneven maintenance history
  • - Runtime/type edge cases

Feature comparison

Featuredrizzle-ormtypeorm
ApproachORM / query builderORM
Type safetyInferred (no codegen)Decorators
Built-in migrations✓ Yes✓ Yes
DatabasesPostgreSQL / MySQL / SQLiteSQL + MongoDB
PatternSQL-like functionalActive Record / Data Mapper

drizzle-orm

Drizzle ORM package for SQL databases

typeorm

Data-Mapper ORM for TypeScript and ES2023+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, MongoDB databases.

Related comparisons

Embed this comparison

A live badge for your README — it updates as the numbers change.

drizzle-orm vs typeorm downloads
[![drizzle-orm vs typeorm](https://devcompare.dev/badge/drizzle-orm-vs-typeorm.svg)](https://devcompare.dev/compare/drizzle-orm-vs-typeorm)

Data from npm, Bundlephobia and GitHub. Last updated 2026-06-02.