# TypeORM

> TypeScript ORM with DataMapper and ActiveRecord patterns

Source: https://talira.ai/catalog/typeorm-rhgytkep
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / orm](https://talira.ai/categories/libraries/databases/orm), [languages / typescript](https://talira.ai/categories/languages/typescript)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [TypeORM](https://talira.ai/orgs/typeorm.md)

TypeORM is an object-relational mapper for TypeScript and JavaScript, built with TypeScript support from the start for type-safe database models. It supports both the DataMapper and ActiveRecord patterns, a QueryBuilder for complex queries with joins, pagination and caching, and migrations with automatic generation. It works with MySQL, PostgreSQL, MariaDB, SQLite, Microsoft SQL Server, Oracle, CockroachDB, Google Spanner, SAP HANA and MongoDB, and runs in Node.js, browsers, Cordova, Ionic, React Native, NativeScript, Expo and Electron.

## Links

- Website: https://typeorm.io/
- GitHub: https://github.com/typeorm/typeorm
- Docs: https://typeorm.io/docs/getting-started

## Problems it solves

- map TypeScript classes to database tables with type safety
- generate database migrations from my entity models in Node.js
- use one ORM for PostgreSQL in production and SQLite in tests

## Features

- DataMapper and ActiveRecord patterns
- TypeScript-first, type-safe entities
- QueryBuilder with joins, pagination and caching
- migrations with automatic generation
- MySQL, PostgreSQL, MariaDB, SQLite, SQL Server, Oracle, CockroachDB, Spanner, SAP HANA and MongoDB
- runs in Node.js, browsers, React Native, Expo and Electron

## Trust

Overall: 0.70 out of 1.
Signals: maintenance 0.85, adoption 0.91, momentum 0.74, community 1.00, backing 0.30, extensibility 0.00.

- last commit 5 days ago
- 37 commits in the last 90 days
- latest release 1.1.3 17 days ago
- 36.7k GitHub stars
- 1265 contributors
- accepts sponsorship (Open Collective)
- has a company behind it

## Alternatives

- [Prisma ORM](https://talira.ai/catalog/prisma-orm-3y118vyc.md): One schema. Every query type-safe.
- [MikroORM](https://talira.ai/catalog/mikroorm-jw1ayc7a.md): TypeScript ORM for Node.js built on Data Mapper, Unit of Work and Identity Map
- [Drizzle ORM](https://talira.ai/catalog/drizzle-orm-ya5ya72s.md): Lightweight, type-safe TypeScript ORM for SQL databases
- [Sequelize](https://talira.ai/catalog/sequelize-kb5e3vme.md): Feature-rich ORM for modern TypeScript and JavaScript
- [sqlc](https://talira.ai/catalog/sqlc-7w8h0kzr.md): Compile SQL to type-safe code

## Sources

[^1]: https://github.com/typeorm/typeorm/blob/master/LICENSE (checked 27 Nov 2026)
