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

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

TypeORM alternatives

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