# ORMs and query builders

Read and write a database from JavaScript or TypeScript. Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.

| Rank | Project | Overall | Needed by many | Helps a lot | Holds up over time | Used widely | Vouched for | Safe | Best for |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | [Drizzle ORM](https://elestia.ai/opensource/orms/drizzle/index.md) | 8.1 | 7.5 | 8.1 | 7.2 | 7.5 | 7.5 | 7.7 | TypeScript teams that know SQL and want typed queries that read like SQL, with no generate step, on Postgres, MySQL or SQLite, including serverless and edge runtimes. |
| 2 | [Kysely](https://elestia.ai/opensource/orms/kysely/index.md) | 8.0 | 6.7 | 8.4 | 7.4 | 5.9 | 7.6 | 7.2 | TypeScript teams that write real SQL and want full type inference without an ORM, on Postgres, MySQL, SQLite, MSSQL or edge runtimes. |
| 3 | [Mongoose](https://elestia.ai/opensource/orms/mongoose/index.md) | 7.8 | 4.4 | 8.2 | 8.4 | 7.8 | 7.1 | 6.3 | Node.js teams on MongoDB that want schemas, validation, middleware, population and full access to MongoDB queries and aggregations. |
| 4 | [Prisma](https://elestia.ai/opensource/orms/prisma/index.md) | 7.5 | 7.4 | 7.8 | 7.0 | 7.8 | 7.3 | 7.9 | Teams that want a readable schema, generated types, guided migrations and easy onboarding on Postgres, MySQL, SQLite, SQL Server or MongoDB. |
| 5 | [MikroORM](https://elestia.ai/opensource/orms/mikro-orm/index.md) | 7.3 | 6.1 | 7.8 | 7.4 | 4.4 | 5.6 | 6.7 | TypeScript backend teams, often on NestJS, who want a rich entity model with Unit of Work and Identity Map and are willing to learn those patterns. |
| 6 | [ZenStack](https://elestia.ai/opensource/orms/zenstack/index.md) | 6.7 | 6.1 | 7.2 | 6.5 | 3.4 | 3.8 | 6.5 | Full-stack TypeScript teams who like Prisma's schema and API and want row- and field-level access rules enforced inside the ORM. |
| 7 | [TypeORM](https://elestia.ai/opensource/orms/typeorm/index.md) | 6.4 | 6.8 | 6.8 | 6.8 | 6.2 | 6.0 | 6.6 | NestJS teams and developers coming from Java or .NET who want entity classes, decorators and support for databases like Oracle or SQL Server. |
| 8 | [Knex.js](https://elestia.ai/opensource/orms/knex/index.md) | 5.9 | 6.6 | 6.5 | 5.5 | 6.4 | 6.9 | 6.1 | JavaScript or mixed JS/TS teams that need a proven query builder with built-in migrations across many SQL databases, including Oracle and SQL Server. |
| 9 | [Objection.js](https://elestia.ai/opensource/orms/objection/index.md) | 5.3 | 5.7 | 6.8 | 5.5 | 4.1 | 4.0 | 7.2 | Teams that already run Objection or Knex and want relation graphs (eager loading, insertGraph, upsertGraph) on top of plain SQL. |
| 10 | [Sequelize](https://elestia.ai/opensource/orms/sequelize/index.md) | 5.0 | 6.8 | 5.9 | 4.7 | 6.4 | 5.1 | 5.5 | Teams that already run Sequelize v6, or that need a dialect such as DB2, Oracle or MSSQL that newer ORMs handle less well. |

## The numbers

| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
| --- | --- | --- | --- | --- | --- | --- |
| Drizzle ORM | 190M | ×19 | 36k | 35 | Oct 2026 | 1 |
| Kysely | 118M | ×23 | 14k | 430 | Nov 2026 | 4 |
| Mongoose | 36M | ×2.6 | 27k | 2.1k | Nov 2026 | 9 |
| Prisma | 98M | ×5.0 | 48k | 7.8k | Oct 2026 | 0 |
| MikroORM | 6.1M | ×4.5 | 9.3k | 1.6k | Nov 2026 | 2 |
| ZenStack | 418k | ×251 | 3k | 568 | Nov 2026 | 0 |
| TypeORM | 28M | ×2.4 | 37k | 469 | Nov 2026 | 3 |
| Knex.js | 28M | ×2.5 | 20k | 129 | Jun 2026 | 0 |
| Objection.js | 1.3M | +60% | 17 | 526 | Nov 2026 | 0 |
| Sequelize | 16M | +87% | 30k | 339 | Mar 2026 | 2 |

All categories: https://elestia.ai/opensource/index.md
