Skip to content
AppClap
MikroORM is unclaimed —

MikroORM

TypeScript ORM built on proven patterns·mikro-orm.io

Visit

Open source

MikroORM is a TypeScript ORM for Node.js built on the Data Mapper, Unit of Work, and Identity Map patterns. It provides type-safe queries, automatic change tracking, and batched transactions via em.flush(). It supports multiple SQL and NoSQL databases through a single API and offers schema generation, migrations, seeding, and a type-safe integration with the Kysely query builder.

What it's for

Build type-safe, performant database layers with minimal boilerplateAutomatic change tracking and batched queries via Unit of WorkMulti-tenancy and soft-delete handling via query filtersPrototype, version, and introspect database schemasSeed databases with realistic test data using entity factoriesUse Kysely's type-safe SQL query builder with MikroORM entities

Features 15

  • Batched queries wrapped in implicit transactions via em.flush()
  • EntityGenerator for introspecting existing databases
  • Event system with entity lifecycle hooks and onFlush events
  • First-class Kysely integration with full autocompletion for tables and columns
  • First-class support for MongoDB, PostgreSQL, MySQL, MariaDB, SQLite, libSQL, MS SQL Server
  • Global and entity-level query filters for multi-tenancy and soft deletes
  • Metadata-aware QueryBuilder
  • Migrations for versioning schema changes
  • Multiple entity definition styles: defineEntity, decorators, EntitySchema
  • SchemaGenerator for prototyping database schemas
  • Seeding and factories for generating realistic test data
  • Support for CockroachDB, Oracle, Turso, Cloudflare D1, and PGlite
  • Type-checked populate hints with auto-joined loading strategies
  • Type-safe queries, populate hints, and entity operations validated at compile time
  • Unit of Work and Identity Map with automatic change tracking

At a glance

open sourceself-hostableAPI
TypeLibrary / SDK
DeploymentSelf-hosted
CompanyMartin Adámek

Integrations

PGlitelibSQLSQLiteCloudflare D1MS SQL ServerMongoDBKyselyMySQLPostgreSQLMariaDBOracleCockroachDBTurso

Resources

Similar apps

Last checked 1 month ago·