# MikroORM

> TypeScript ORM for Node.js built on Data Mapper, Unit of Work and Identity Map

Source: https://talira.ai/catalog/mikroorm-jw1ayc7a
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / orm](https://talira.ai/categories/libraries/databases/orm), [languages / typescript](https://talira.ai/categories/languages/typescript)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Martin Adámek](https://talira.ai/orgs/martin-adamek.md)

MikroORM is a TypeScript ORM for Node.js based on the Data Mapper, Unit of Work and Identity Map patterns, heavily inspired by Doctrine and Hibernate. It tracks changes to entities automatically and flushes them in a single transaction. It supports MongoDB, MySQL, MariaDB, PostgreSQL (including CockroachDB and PGlite), SQLite (including libSQL), MS SQL Server and Oracle through driver packages, and has a QueryBuilder and [Kysely](https://talira.ai/catalog/kysely-em8f33ta.md) integration, a schema generator, migrations, an entity generator and seeding.

## Links

- Website: https://mikro-orm.io/
- GitHub: https://github.com/mikro-orm/mikro-orm
- Docs: https://mikro-orm.io/docs/

## Problems it solves

- use an ORM with unit of work and identity map in a TypeScript Node.js app
- map TypeScript entities to PostgreSQL, MySQL or MongoDB
- generate and run database migrations from TypeScript entities

## Features

- Identity Map and Unit of Work: automatic change tracking, flushed in one transaction
- entities defined with defineEntity, decorators or EntitySchema
- drivers for PostgreSQL, MySQL, MariaDB, SQLite, libSQL, MongoDB, MS SQL Server and Oracle
- QueryBuilder and Kysely integration
- schema generator, migrations, entity generator and seeding
- filters, lifecycle hooks, embeddables, custom types and composite keys

## Limitations

- Only the latest major version gets new features and bug fixes; the previous one gets only high and critical security fixes for 12 months.[^1]

## Trust

Overall: 0.71 out of 1.
Signals: maintenance 1.00, adoption 0.79, momentum 0.59, community 1.00, backing 0.30, extensibility 0.00.

- last commit 2 days ago
- 504 commits in the last 90 days
- latest release v7.2.13 2 days ago
- 9.3k GitHub stars
- 376 contributors
- accepts sponsorship (Github, Github, Custom)
- backed by Martin Adámek

## Related

- Works with [Kysely](https://talira.ai/catalog/kysely-em8f33ta.md)

## Alternatives

- [Prisma ORM](https://talira.ai/catalog/prisma-orm-3y118vyc.md): One schema. Every query type-safe.
- [TypeORM](https://talira.ai/catalog/typeorm-rhgytkep.md): TypeScript ORM with DataMapper and ActiveRecord patterns
- [Drizzle ORM](https://talira.ai/catalog/drizzle-orm-ya5ya72s.md): Lightweight, type-safe TypeScript ORM for SQL databases
- [Sequelize](https://talira.ai/catalog/sequelize-kb5e3vme.md): Feature-rich ORM for modern TypeScript and JavaScript
- [sqlc](https://talira.ai/catalog/sqlc-7w8h0kzr.md): Compile SQL to type-safe code

## Sources

[^1]: https://github.com/mikro-orm/mikro-orm/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/mikro-orm/mikro-orm/blob/master/LICENSE (checked 28 Nov 2026)
