Skip to content

TypeORM

TypeORM is an object-relational mapper for TypeScript and JavaScript that runs on Node.js and other platforms. It is open source under the MIT license and supports databases such as PostgreSQL, MySQL, SQLite, SQL Server, Oracle and MongoDB. The docs describe TypeORM 1.x as the current release.

By TypeORM core teamOpen sourceORM

Facts checked on against the sources listed at the end of this page.

Pricing
Open sourceFree plan: Yes: free and open source.
Open source
YesMIT
GitHub stars
36,663
npm downloads a week
6.6Mup 6% on the week before
Latest release
1.1.23 weeks ago
Releases in 90 days
2about 1 a month

A good fit for

  • Node.js and NestJS back ends that want decorator-based entities
  • Projects that want either Active Record or Data Mapper
  • Teams that work across several databases, including Oracle, SQL Server or MongoDB
  • Apps that run in React Native, Expo or Electron with a local SQLite database

Not a good fit for

  • Teams that want a schema file and generated client instead of decorators
  • Developers who prefer to write SQL with only a thin type layer on top
  • Projects that need paid vendor support: TypeORM is an open source project with no commercial plan

TypeORM pricing

TypeORM is free and open source under the MIT license. The project accepts donations through Open Collective.

Prices in USD, checked on 9 October 2026. Current prices on github.com.

Main features

Active Record and Data Mapper
Choose which pattern to use for entities and queries.
Migrations
Write migrations or generate them automatically from entity changes.
Query builder
Build queries in code when repositories are not enough.
Relations and transactions
Model relations between entities and run queries inside transactions.
Many databases
Spanner, SQL Server, MySQL and MariaDB, MongoDB, Oracle, PostgreSQL, SAP HANA and SQLite.
Many platforms
Runs on Node.js, browsers, React Native, Expo, Electron, Cordova, Ionic and NativeScript.
Listeners and subscribers
Hook into entity events such as inserts and updates.

About TypeORM

TypeORM maps classes to database tables and offers an entity manager, repositories, a query builder, relations, transactions and query caching. You can use either the Active Record or the Data Mapper pattern, and a CLI handles migrations including automatic migration generation.

It supports Google Spanner, Microsoft SQL Server, MySQL and MariaDB, MongoDB, Oracle, PostgreSQL, SAP HANA and SQLite, and also names CockroachDB and sql.js. It requires TypeScript 4.5 or higher and is installed with npm install typeorm plus reflect-metadata.

Made by
TypeORM core team
Free plan
Yes: free and open source.
Available on
Node.js, Browsers, React Native, Expo, Electron, Cordova, Ionic, NativeScript

Usage and activity

Weekly npm downloads of typeorm, last 12 months.

02M4M6M8MOctNovJanMarMayJulOct1 October 2025: 2,755,138 downloads a week8 October 2025: 2,541,012 downloads a week15 October 2025: 2,656,934 downloads a week22 October 2025: 2,846,947 downloads a week29 October 2025: 2,858,275 downloads a week5 November 2025: 2,849,513 downloads a week12 November 2025: 2,972,075 downloads a week19 November 2025: 3,021,305 downloads a week26 November 2025: 2,897,455 downloads a week3 December 2025: 2,913,889 downloads a week10 December 2025: 3,119,476 downloads a week17 December 2025: 2,960,167 downloads a week24 December 2025: 2,318,835 downloads a week31 December 2025: 1,431,698 downloads a week7 January 2026: 2,025,503 downloads a week14 January 2026: 2,984,567 downloads a week21 January 2026: 3,049,967 downloads a week28 January 2026: 3,110,295 downloads a week4 February 2026: 3,254,043 downloads a week11 February 2026: 3,460,451 downloads a week18 February 2026: 3,208,647 downloads a week25 February 2026: 3,505,534 downloads a week4 March 2026: 3,690,756 downloads a week11 March 2026: 3,806,308 downloads a week18 March 2026: 3,954,315 downloads a week25 March 2026: 4,048,721 downloads a week1 April 2026: 4,038,249 downloads a week8 April 2026: 3,537,047 downloads a week15 April 2026: 4,031,529 downloads a week22 April 2026: 4,080,514 downloads a week29 April 2026: 4,225,086 downloads a week6 May 2026: 3,998,693 downloads a week13 May 2026: 4,591,224 downloads a week20 May 2026: 4,688,043 downloads a week27 May 2026: 4,279,857 downloads a week3 June 2026: 4,458,831 downloads a week10 June 2026: 4,501,497 downloads a week17 June 2026: 4,690,672 downloads a week24 June 2026: 4,819,709 downloads a week1 July 2026: 4,729,733 downloads a week8 July 2026: 4,747,396 downloads a week22 July 2026: 4,977,495 downloads a week29 July 2026: 4,912,235 downloads a week5 August 2026: 4,958,601 downloads a week12 August 2026: 4,727,076 downloads a week26 August 2026: 4,980,606 downloads a week2 September 2026: 5,123,021 downloads a week28 September 2026: 6,213,734 downloads a week5 October 2026: 6,566,014 downloads a week

Recent releases

TypeORM alternatives

All 6 alternatives to TypeORM, side by side

Questions about TypeORM

Is TypeORM open source?

Yes. It is released under the MIT license.

Which databases does TypeORM support?

Google Spanner, Microsoft SQL Server, MySQL and MariaDB, MongoDB, Oracle, PostgreSQL, SAP HANA and SQLite. The README also names CockroachDB and sql.js.

How do I install TypeORM?

Run npm install typeorm, and install reflect-metadata separately. The getting started page requires TypeScript 4.5 or higher.

Does TypeORM support migrations?

Yes. It includes migrations and can generate them automatically from changes to your entities.

Does TypeORM work outside Node.js?

Yes. The README lists browsers, Cordova, Ionic, React Native, NativeScript, Expo and Electron.

Sources and links

Work on TypeORM? Claim this listing. Something wrong or out of date? Suggest a correction. Stats come from the public GitHub and npm APIs and update every day.

TypeORM: pricing, features and alternatives (2026) | ScratchDB