TypeORM

A decorator-based ORM for TypeScript and JavaScript supporting Active Record and Data Mapper patterns.

TypeORM maps classes decorated with entity metadata to database tables and supports many SQL databases plus MongoDB. It offers both Active Record and Data Mapper styles, migrations and a query builder. It is commonly paired with NestJS.

Type
Library
Category
Data
Maintainer
TypeORM community
First released
2016
License
Open source (MIT)
Pricing
Open source
Level
Intermediate
Technologies
typescript, nodejs, sql
GitHub stars
36,685
Weekly downloads
7,731,951 (npm)
Latest release
[object Object]
Last verified
26 Nov 2026

What TypeORM is used for

  • NestJS applications
  • Enterprise-style data layers in Node.js

Strengths

  • Familiar to Java/C# ORM users
  • Supports many databases
  • Flexible patterns

Limitations

  • Type safety weaker than Prisma/Drizzle for queries
  • Maintenance pace has varied

TypeORM alternatives

How it relates to other tools

Built with the same technologies

Official links

Sources

Explore