
TypeORM
TypeScript and JavaScript ORM that maps database tables to classes and offers a query builder, with DataMapper and ActiveRecord patterns.
TypeORM maps database tables to classes in TypeScript or JavaScript. Entity classes declare their columns and relations with decorators, and the application reads and writes rows through repositories, the entity manager or a query builder. The same entities can follow a DataMapper style, where a repository handles the rows, or an ActiveRecord style, where the entity class carries its own save and find methods.
The package also covers migrations and a CLI whose init command generates a starter project for a Node.js application. The getting-started guide walks through the setup.
Worth knowing
Entities rely on decorators, so the project’s TypeScript configuration enables experimentalDecorators and emitDecoratorMetadata, and the reflect-metadata shim is installed beside the package. Each database needs its own driver package, installed as that driver’s documentation describes.
Identity
Rendering and deploy
- Install with
- npm3
Releases
Adoption
Sources
- 2026-11-16: links
typeorm.io/ - 2026-11-16: links, Written in, GitHub stars
api.github.com/repos/typeorm/typeorm - 2026-11-16: links, Categories, Runtime, Install with, Databases
typeorm.io/docs/getting-started - 2026-11-16: Maintainer, License, License model
raw.githubusercontent.com/typeorm/typeorm/master/LICENSE - 2026-11-16: Minimum runtime
raw.githubusercontent.com/typeorm/typeorm/1.1.3/package.json - 2026-11-16: First release
registry.npmjs.org/typeorm - 2026-11-16: Current major version
api.github.com/repos/typeorm/typeorm/releases?per_page=100 - 2026-11-16: Last release
api.github.com/repos/typeorm/typeorm/releases/latest - 2026-11-16: Contributors
api.github.com/repos/typeorm/typeorm/contributors?per_page=1 - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/typeorm - 2026-11-16: Downloads a month, Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/typeorm