aicoolies logo
TypeORM logo
TypeORM logo

TypeORM

ORM for TypeScript and JavaScript

open sourceupdated Apr 21, 2026

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.

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

Free

Platforms

Node.js, Browser, React Native

Categories

Tags

Use Cases

Related Tools

computed discovery: shared active categories · kept separate from editor-verified Alternatives

Cloudflare logo

Cloudflare Vectorize

Edge-native vector database for Workers and AI applications

Cloudflare Vectorize is Cloudflare’s managed vector database for Workers and edge AI applications. It is distinct from the existing Cloudflare Workers tool page: Workers is the compute runtime, while Vectorize is the embedding index and vector-query layer used to add semantic retrieval to Cloudflare-hosted apps.

freemium
Upstash Vector logo

Upstash Vector

Serverless vector database with pay-as-you-go API pricing

Upstash Vector is a managed serverless vector database for RAG, semantic search, and embedding lookup. It is separate from the existing Upstash platform record in the aicoolies catalog: this slug covers the Vector product line, not the broader Redis, Kafka, or QStash platform.

freemium
OpenSearch logo

OpenSearch

Open-source search engine with vector and hybrid retrieval

OpenSearch is an Apache-2.0 distributed search engine with native vector-search support for teams that want BM25, filters, aggregations, and k-NN retrieval in the same search stack. It is distinct from Elasticsearch in the aicoolies catalog: OpenSearch is the AWS-backed open fork with its own docs, plugin path, and serverless deployment options.

Open Source
Deep Lake logo

Deep Lake

AI data runtime for multimodal datasets and vector search

Deep Lake is an open-source AI data runtime from Activeloop for storing, versioning, and querying multimodal data and embeddings. It fits teams building RAG, training, evaluation, or dataset-heavy agent workflows that need a bridge between vector search, structured metadata, and large image, text, audio, or video collections.

Open Source
SeekDB logo

SeekDB

AI-native state store with hybrid vector and full-text search

SeekDB is an open-source AI-native state store from the OceanBase ecosystem that combines MySQL-compatible data access with hybrid vector and full-text retrieval. It targets agent and AI application teams that need embedded or server deployment, copy-on-write style sandboxes, and searchable state without gluing together several separate storage layers.

Open Source
TigerData logo

pgvectorscale

DiskANN-powered vector search extension for PostgreSQL

pgvectorscale is an open-source PostgreSQL extension from Timescale that complements pgvector with DiskANN-based approximate vector search. It is useful for teams that want faster embedding retrieval while keeping vectors, filters, and application data inside the Postgres ecosystem instead of adopting a separate hosted vector database.

Open Source

Comparisons

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

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

Is TypeORM open source?

Yes — TypeORM is open source.

What are the best TypeORM alternatives?

The top editor-verified TypeORM alternatives are Kysely, Knex.js, Sequelize.