# typeorm/typeorm

TypeScript & JavaScript ORM for Node.js — supports PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, Oracle, and more.

Repository: https://github.com/typeorm/typeorm
Canonical: https://ross.abutalabs.com/products/typeorm
Homepage: http://typeorm.io
Language: TypeScript
License: MIT
License Family: permissive
Topics: orm, typescript, javascript, database, typeorm, mysql, mariadb, postgresql, sqlite, sqlserver, active-record, data-mapper, cockroachdb, hacktoberfest
Last push: 2026-08-26T14:27:09+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 81, longevity 100
- inputs: {"age_days": 3838, "days_push": 7, "days_rel": 51, "gap_med": 32.5, "n_releases_24m": 13}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 36632, forks 6656 (observed 2026-08-28T04:12:01.194240+00:00)

## What it is
TypeORM is a TypeScript-first object-relational mapper for Node.js and other JavaScript platforms, supporting both Active Record and Data Mapper patterns. It works with PostgreSQL, MySQL/MariaDB, SQLite, SQL Server, Oracle, MongoDB, CockroachDB, SAP HANA, and Google Spanner, and includes migrations, a powerful QueryBuilder, transactions, and relation support.

## Use cases
- map TypeScript entities to relational database tables
- manage database schema migrations in a Node.js app
- build complex SQL queries with joins and pagination via a query builder
- use the same ORM across PostgreSQL, MySQL, and SQLite
- model one-to-many and many-to-many relations with eager/lazy loading
- run transactions and connection pooling in an enterprise backend
- use an ORM in React Native or Electron apps

## When to choose
- you want type-safe database models in a TypeScript project
- you need broad multi-database support from a single ORM
- you prefer a choice between Active Record and Data Mapper patterns
- you need first-class migrations and schema synchronization
- you're building NestJS or Express backends with relational data

## When to avoid
- you need a lightweight query builder without entity mapping overhead
- your project targets Node.js versions older than 20
- you prefer Prisma-style schema-first workflows
- you need heavy NoSQL document modeling (MongoDB support is limited)
- you want minimal dependencies or a very small bundle

## Facets
- artifact type: library
- maturity: stable
- function: orm, database, database-driver
- domain: databases, backend, web-development, developer-tools
- platform: browser, cross-platform
- tags: active-record, data-mapper, entity-framework-inspired, migrations, querybuilder, multi-database, migration, nodejs, typescript, javascript, electron, mobile

## Member repositories
- typeorm/typeorm (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:12:01.194240+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:26:09.840699+00:00, confidence not recorded.
  - readme: https://github.com/typeorm/typeorm (fetched 2026-08-28T04:12:01.194240+00:00, sha cdc0204c6765)
  - homepage: http://typeorm.io (fetched 2026-08-29T07:47:52.161224+00:00, sha ac330bc19cda)
  - site_page: https://typeorm.io/docs/releases/1.0/release-notes (fetched 2026-08-29T07:47:52.163920+00:00, sha 903a3b74919c)
  - site_page: https://typeorm.io/docs/releases/1.0/upgrading-from-0.3 (fetched 2026-08-29T07:47:52.166513+00:00, sha 8c9a579e1fff)
  - site_page: https://typeorm.io/docs/getting-started (fetched 2026-08-29T07:47:52.169286+00:00, sha c5c0f02483cb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
