Skip to content
aicoolies logo
TypeORM logo

TypeORM

ORM for TypeScript and JavaScript

Full-featured ORM for TypeScript and JavaScript supporting Active Record and Data Mapper patterns. Works with PostgreSQL, MySQL, MariaDB, SQLite, Oracle, SQL Server, and MongoDB. Features decorator-based entity definitions, migrations, relations (one-to-one, many-to-many), lazy/eager loading, query builder, transactions, and caching. Supports both Node.js and browser runtimes. 34K+ GitHub stars. Mature but losing mindshare to Prisma and Drizzle for new TypeScript projects.

About TypeORM

TypeORM is a mature, feature-rich ORM for TypeScript and JavaScript that runs on Node.js, browser, mobile, and desktop platforms, supporting both relational and document databases. It solves the object-relational impedance mismatch problem by allowing developers to define database entities using TypeScript classes and decorators, automatically mapping them to database tables. TypeORM supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, and MongoDB, making it one of the most database-compatible ORMs in the JavaScript ecosystem.

TypeORM is unique among JavaScript ORMs in supporting both Active Record and Data Mapper patterns, giving developers the flexibility to choose the architectural approach that best fits their project. Its built-in QueryBuilder provides an elegant, chainable API for constructing complex SQL queries with joins, pagination, and caching. TypeORM offers automatic migration generation, entity listeners and subscribers for lifecycle hooks, eager and lazy loading of relations, connection pooling, read replication, and a powerful CLI for managing migrations and entity generation.

TypeORM is well-suited for enterprise applications, REST APIs, and full-stack TypeScript projects that require a traditional ORM with comprehensive database support. It integrates naturally with frameworks like NestJS, Express, and Koa, and is widely used in large-scale Node.js applications. Developers coming from Java or C# ORMs like Hibernate or Entity Framework will find TypeORM familiar due to its decorator-based entity definitions and repository pattern, making it a strong choice for teams transitioning to TypeScript from other strongly-typed languages.

Pricing & Platform Specs

Pricing Summary

Free and 100% open source under the MIT license. Completely free for commercial and personal development across Node.js, TypeScript, browser, and mobile runtimes with zero licensing fees.

full pricing breakdown →

Supported Platforms

Node.js, Browser, React Native

Explore categories, tags & use cases

Type-safe SQL query builder for TS

Type-safe SQL query builder for TypeScript that provides auto-completion and compile-time type checking without the abstraction overhead of a traditional ORM. Write queries that map directly to SQL while getting full TypeScript inference from your database schema. Supports PostgreSQL, MySQL, and SQLite with migrations, transactions, and raw SQL escape hatches. Lightweight with zero dependencies. Ideal for developers who want SQL control with TypeScript safety. Growing Knex.js alternative.

Open Source

SQL query builder for Node.js

Flexible SQL query builder for Node.js supporting PostgreSQL, MySQL, SQLite, Oracle, and MSSQL. Chainable API for constructing queries with parameterized bindings. Features schema builder, migration system, seed files, transaction support, and connection pooling. Foundation for ORMs like Bookshelf.js and Objection.js. One of the most established query builders in the Node.js ecosystem.

Open Source

Promise-based Node.js ORM

Mature, promise-based ORM for Node.js supporting PostgreSQL, MySQL, MariaDB, SQLite, and SQL Server. Features model definitions with validations, eager/lazy loading, transactions, migrations, raw queries, and lifecycle hooks. Supports soft deletes, scopes, and virtual fields. One of the oldest and most battle-tested Node.js ORMs, widely used in enterprise apps though increasingly succeeded by Prisma and Drizzle in new projects.

Open Source

Side-by-Side Comparisons

Prisma logo
Prisma
vs
TypeORM logo
TypeORM

Prisma vs TypeORM: Which TypeScript ORM Wins in 2026?

Prisma is the stronger default for most modern TypeScript and Node teams, pairing a declarative schema, a type-safe generated client, and a clean migration workflow into one cohesive experience. Version 7 dropped the Rust query engine for a leaner TypeScript and WASM runtime. TypeORM remains the flexible, decorator-driven alternative for teams wanting Active Record, Data Mapper, and the widest database reach.

PrismaTypeORM

Community experience

Sources & verification

Sources checked
Content verified

Verification dates are editorial checks. Routine CMS saves and automatic updatedAt timestamps do not advance them.

FAQ

What is TypeORM?

Full-featured ORM for TypeScript and JavaScript supporting Active Record and Data Mapper patterns. Works with PostgreSQL, MySQL, MariaDB, SQLite, Oracle, SQL Server, and MongoDB. Features decorator-based entity definitions, migrations, relations (one-to-one, many-to-many), lazy/eager loading, query builder, transactions, and caching. Supports both Node.js and browser runtimes. 34K+ GitHub stars. Mature but losing mindshare to Prisma and Drizzle for new TypeScript projects.

Is TypeORM free?

Yes — TypeORM is open source and free to use. Free and 100% open source under the MIT license. Completely free for commercial and personal development across Node.js, TypeScript, browser, and mobile runtimes with zero licensing fees.

Is TypeORM open source?

Yes — TypeORM is open source.

Is TypeORM still maintained?

Yes — TypeORM is active. Its listing was last verified on September 6, 2026.

What are the best TypeORM alternatives?

The first editor-selected TypeORM alternatives are Kysely, Knex.js, Sequelize.