TypeORM
Reasonable, with limits. 7th of 10 ORMs and query builders.
TypeORM is a decorator-based ORM for Node.js. It copies Hibernate's style, supports many SQL databases and MongoDB, and is the usual default with NestJS. A new team revived it and shipped 1.0 in 2026, so it is a sound pick for NestJS or enterprise-style codebases. For most new TypeScript projects, Drizzle or Prisma give better type safety and are winning more new users.
Best for: NestJS teams and developers coming from Java or .NET who want entity classes, decorators and support for databases like Oracle or SQL Server.
Scores
Overall6.4
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 5.5, likely 4.5 to 6.5
The revival and the 1.0 release make TypeORM safe to keep and reasonable to start with in NestJS or enterprise-style projects. For most new TypeScript projects, Drizzle, Prisma or Kysely give stronger type safety and a better developer experience, and they are winning new users. Recent injection advisories and a maintainer team that is new and has no visible funding keep the score in the middle.
- npm downloads ratio: About 2.4x vs the 4.1 median: losing ground
- infoq.com/news/2026/06/typeorm-1-released: Maintenance back on track after years of 'is it dead' threads
- encore.dev/articles/prisma-vs-drizzle-vs-typeorm: Ranked third behind Drizzle and Prisma
GPT-6.2 Sol: 7.2, likely 6.2 to 8.3
TypeORM is a strong new-project choice when a team wants class-based entities, built-in migrations, and broad driver support. For a typical new TypeScript app, Prisma or Drizzle has the edge on inferred query results, and Kysely fits teams that mainly need a typed SQL builder. The maintenance recovery supports a new adoption, while recent upgrade surprises and below-baseline adoption growth temper the recommendation.
- github.com/typeorm/typeorm/releases/tag/1.1.3: The current stable release includes fixes across persistence, locking, and bundler compatibility.
- docs.nestjs.com/techniques/database: Documents TypeORM's repository integration and Prisma and Drizzle's type-first models.
- kysely.dev/docs/comparisons/kysely-vs-typeorm: Shows how Kysely checks references and infers results for composed SQL queries.
- github.com/vendurehq/vendure/issues/5594: A downstream user documented schema drift after a TypeORM patch upgrade.
- github.releasesLastYear, dependents, npm, and medianDownloadsRatio: Nine releases and substantial existing use, with install growth below the catalog baseline.
Needed by many6.8
How many developers need a tool for this job?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Most backend JavaScript and TypeScript projects need to read and write a database, so the category is broad. TypeORM's style (classes, decorators, Node only) narrows it a little, but it covers SQL and MongoDB.
- github description: Supports PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, Oracle and more
- encore.dev/articles/prisma-vs-drizzle-vs-typeorm: Widest database support of the three; Node only, no edge
GPT-6.2 Sol: 6.5, likely 5.4 to 7.6
Database access is a common need for JavaScript and TypeScript backend teams. TypeORM works across frameworks and supports a wide range of databases, which makes it useful beyond NestJS. The range reflects uncertainty about how many teams want entity mapping when a driver or query builder would cover their needs.
- category.job: Reading and writing databases is a broad backend task.
- github.com/typeorm/typeorm: Documents JavaScript and TypeScript support across many databases and runtimes.
- survey.stackoverflow.co/2025/technology: Survey covers database and Node.js use and gives context for the size of the audience.
Helps a lot6.8
How well does it do the job for those who need it?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
It has many features and is mature: migrations, relations, a query builder, many drivers, and new 1.0 additions such as returning on update and INSERT ... SELECT. Independent comparisons point to looser type safety, inefficient relation queries, three overlapping query APIs and a risky synchronize mode. Drizzle and Prisma do the typed-query job better for most people.
- encore.dev/articles/prisma-vs-drizzle-vs-typeorm: Types 'mostly work' but break on partially hydrated relations; ranked third
- infoq.com/news/2026/06/typeorm-1-released: 1.0 features: valuesFromSelect, returning, await using, stricter orderBy and limit checks
- npm hasTypes: Ships its own types
GPT-6.2 Sol: 7.5, likely 6.5 to 8.5
Version 1.1.3 combines relation loading, transactions, repositories, and migration generation, with documentation for both decorated classes and entity schemas. Its query builder leaves many references unchecked, and partial selects can still look like complete entities to TypeScript. That gives coding agents less compiler feedback than Kysely provides. PostgreSQL benchmarks show competitive performance, with results that vary by workload.
- github.com/typeorm/typeorm/releases/tag/1.1.3: Current stable release fixes SQL Server locking and lazy relation handling.
- typeorm.io/docs/entity/separating-entity-definition: Documents decorator-based entities and the EntitySchema option.
- kysely.dev/docs/comparisons/kysely-vs-typeorm: Reproducible examples show unchecked query references and full entity types on partial selects.
- github.com/rogerpadilla/ts-orm-benchmark: The UQL maintainer's November PostgreSQL benchmark puts TypeORM 1.1.2 between Drizzle and Prisma on one workload.
Holds up over time6.8
Will it still be a good choice in two years?
Claude Opus 5.5: 6.5, likely 5.0 to 7.5
A new team took over at the end of 2024. Since then it has merged hundreds of pull requests, closed thousands of issues, made 9 releases in the last year and shipped 1.0 with a codemod. No company sponsor is visible, and the revival is less than two years old, so the range stays wide. New projects in the ecosystem are moving towards Drizzle and Prisma.
- github commitsLastYear: 469 commits, 9 releases; latest 1.1.3 on 2026-11-12
- infoq.com/news/2026/06/typeorm-1-released: 575 PRs merged in 2025 vs 63 the year before; 2,300+ issues closed
- typeorm.io/blog/typeorm-1-0: 1.0 ends pre-1.0 status; codemod for the upgrade
- javascript.plainenglish.io/typeorm-isnt-a-phoenix-it-s-a-maintenance-story-and-the-upgrade-will-bite-you-quietly-23f2fa497d5c: Warns about quiet behaviour changes in the 1.0 upgrade
GPT-6.2 Sol: 7.1, likely 5.9 to 8.3
A larger team took over in late 2024, and 469 commits and nine releases in the past year show that maintenance has recovered. The Linux Foundation reports a nine-day average merge lead time, while 267 pull requests remain open. Vendure had to adjust its entity definitions after a patch changed foreign-key defaults. The number of people who can publish releases and the long-term funding for maintenance remain unclear.
- github: 469 commits, nine releases, 485 open issues, and 267 open pull requests.
- typeorm.io/maintainers: Lists the team assembled after the late-2024 handover.
- insights.linuxfoundation.org/project/typeorm: Reports a nine-day average merge lead time and a concentration of contributions among three people.
- dlhck.com/essays/founding-the-typeorm-association: Outlines plans for paid maintenance, with Elevantiq covering upfront incorporation costs.
- github.com/vendurehq/vendure/pull/5597: Vendure adjusted 21 relations after TypeORM changed foreign-key defaults in 1.1.1.
- typeorm.io/docs/releases/roadmap: Links to release milestones and calls for ongoing sponsorship.
Used widely6.2
How many use it, and is that growing?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
About 28M downloads in the last 4 weeks and 51k dependent repos, more than Prisma's 43k repos, so it is widely used. Its year-on-year ratio is about 2.4, well below the 4.1 median, while Drizzle, Kysely and Prisma grow much faster, so its share of new projects is falling. Much of its use comes in with NestJS projects.
- npm downloadsLast4Weeks: 27.95M vs 11.70M a year ago, ratio ~2.4, below the 4.1 median
- dependents: 51,340 repos and 3,660 packages
- peers: Drizzle 190M, Kysely 118M, Prisma 98M downloads with much faster growth
GPT-6.2 Sol: 5.9, likely 4.8 to 7.0
The index finds 51,340 dependent repositories and 3,660 packages, with more indexed repositories than Prisma or Drizzle. Four-week installs rose from 11.7 million to 28.0 million, a 2.39× increase against the 4.1× baseline. That indicates a loss of relative download share, and partial indexing and automated installs leave the pace of new adoption uncertain.
- dependents: 51,340 indexed repositories and 3,660 indexed packages declare TypeORM.
- npm downloadsLast4Weeks and downloadsSame4WeeksYearAgo: Four-week installs grew 2.39× year over year.
- medianDownloadsRatio and peers: Below the 4.1× baseline, with slower install growth than Prisma, Drizzle, and Kysely.
- github.stars, bluesky, and hackerNews: 36,686 stars, four Bluesky links mostly from maintainers, and little discussion in the matched Hacker News stories.
- mariadb.org/wp-content/uploads/2025/12/State-of-MariaDB-2025-Survey-2025-12-17.pdf: Four of 111 respondents to the ORM question reported using TypeORM, compared with nine for Prisma.
Vouched for6.0
Who stands behind it being good?
Claude Opus 5.5: 5.5, likely 4.5 to 6.5
NestJS supports it through an official integration package, and many enterprise codebases run it. Current independent comparisons mostly rank it behind Prisma and Drizzle for new work. Community attention is low: very few Hacker News or Bluesky posts, and most Bluesky posts are by a maintainer.
- encore.dev/articles/prisma-vs-drizzle-vs-typeorm: Recommended only for existing codebases or special needs
- dev.to/devtoolpicks/prisma-vs-drizzle-vs-typeorm-for-indie-hackers-in-2026-which-orm-should-you-use-2jii: 2026 comparison: hardest of the three to recommend; strongest case is NestJS
- bluesky posts: 4 posts, mostly from a maintainer
- hackerNews stories: 5 low-scoring stories
GPT-6.2 Sol: 6.4, likely 5.2 to 7.6
NestJS maintains a dedicated integration, and Tikpay publicly reports using TypeORM for transit ticketing. An independent 2025 study found balanced performance across the PostgreSQL workloads it tested. Recent user reports are mixed, and Immich switched to Kysely in 2025. Broad satisfaction data for the current release is limited.
- docs.nestjs.com/techniques/database: NestJS lists and maintains the official TypeORM integration.
- github.com/typeorm/typeorm/issues/12226#issuecomment-4078784668: Tikpay reports production use in its transit ticketing platform.
- ph.pollub.pl/index.php/jcsi/article/download/7951/5289/39325: Independent 2025 study found balanced performance in a NestJS and PostgreSQL test application.
- reddit.com/r/nestjs/comments/1xbw165/is_typeorm_still_a_reasonable_choice_for_a: October 2026 discussion includes a favorable large-production report and advice from another user to switch.
- github.com/immich-app/immich/discussions/17815: Immich announced its move from TypeORM to Kysely.
Safe6.6
How safe is it to depend on?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Three advisories in 24 months: two SQL injection flaws and one code injection in migration:generate. They were fixed in patch releases and through the 1.0 hardening work. The SQL injection flaw in orderBy had been in the code since 0.1.12. Scorecard is 7.1, with weak Token-Permissions, Fuzzing and CII checks. It pulls in 10 dependencies and is MIT licensed.
- advisories: 6 total, 3 in last 24 months, including HIGH SQL injection in save/update
- github.com/typeorm/typeorm/security/advisories/GHSA-9ggv-8w38-r7pm: orderBy SQL injection affected 0.1.12 to 0.3.28; fixed in 0.3.29 and 1.0.0
- scorecard: 7.1 overall; Token-Permissions 0, Fuzzing 0
- npm dependencies: 10 dependencies, MIT licence
GPT-6.2 Sol: 7.2, likely 6.1 to 8.3
Version 1.1.3 contains fixes for all three advisories from the past two years, with patched releases available by public disclosure. The package uses the MIT license and npm trusted publishing, and the current release tag is signed. Ten direct dependencies, weak workflow token permissions, and a zero fuzzing score leave room for risk.
- github.com/advisories/GHSA-q2pj-6v73-8rgj: The high-severity SQL injection advisory lists 0.3.26 as patched.
- github.com/advisories/GHSA-9ggv-8w38-r7pm: The MySQL and MariaDB advisory lists 0.3.29 as patched.
- github.com/advisories/GHSA-2rp8-mm9q-fp49: The migration generation advisory lists 1.1.0 and the 0.3.31 backport as patched.
- github.com/typeorm/typeorm/blob/master/DEVELOPER.md#release-process: Documents automated npm trusted publishing through GitHub Actions.
- github.com/typeorm/typeorm/releases/tag/1.1.3: GitHub verifies the signature on the 1.1.3 tag.
- scorecard and npm: Scorecard 7.1, token permissions and fuzzing 0, branch protection 5, MIT license, and ten direct dependencies.
Good
- It supports more databases than most peers: PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, Oracle, MongoDB and others.
- It works with NestJS out of the box through @nestjs/typeorm, and many tutorials and templates use it.
- Since the new team took over, releases come regularly: 1.0 shipped in 2026, then patch releases up to 1.1.3, plus a codemod for upgrading from 0.3.
- It offers both Active Record and Data Mapper patterns, plus a query builder for complex SQL.
Bad
- Its types come from entity classes, so loaded relations and partial selects are not checked as strictly as in Drizzle, Prisma or Kysely.
- Several SQL injection advisories came out in 2025–2026, and fixing them meant upgrading to new versions.
- It runs on Node only and depends on decorators, which makes edge and serverless setups awkward.
- Its downloads grow well below the category median, so new projects are moving to Drizzle, Prisma and Kysely.
The numbers
- npm downloads, 4 weeks
- 28M ×2.4 in a year
- GitHub stars
- 37k
- Commits, 12 months
- 469
- npm version
- 1.1.3 Nov 2026
- Versions, 12 months
- 9
- Advisories, 24 months
- 3 of 6 ever
- OpenSSF Scorecard
- 7.1 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (typeorm/typeorm), npm (typeorm), OSV and the OpenSSF Scorecard.
ORMs and query builders
- 8.1Drizzle ORM
- 8.0Kysely
- 7.8Mongoose
- 7.5Prisma
- 7.3MikroORM
- 6.7ZenStack
- 6.4TypeORM
- 5.9Knex.js
- 5.3Objection.js
- 5.0Sequelize