{"schemaVersion":1,"id":"mikroorm","name":"MikroORM","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/mikroorm/","officialUrl":"https://github.com/mikro-orm/mikro-orm","isCatalog":false,"description":"A TypeScript ORM with an identity map and unit of work: it manages changes to related entities and SQL schema migrations.","tasks":["Save related entities through a unit of work","Change related objects and check persistence through the unit of work"],"categoryIds":["backend"],"subcategoryIds":["backend.databases"],"tags":["MikroORM","database","Development"],"aliases":["mikro-orm/mikro-orm","mikro-orm","typescript-orm","nodejs-orm"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under MIT.","paidUsage":"Compute, your own hosting, and external services are paid for separately if selected.","license":"MIT: code; dependencies have separate licenses.","selectionGuide":{"purpose":"Save related entities through a unit of work","chooseWhen":["Save related entities through a unit of work","Change related objects and check persistence through the unit of work"],"considerInstead":[],"requirements":["The required database driver; @mikro-orm/core plus the CLI/migrations/generator packages in use."],"limitations":["Costs and limits of free use: Compute, your own hosting, and external services are paid for separately if selected.","Terms of use: MIT: code; dependencies have separate licenses.","The flush statement applies to managed changes and the chosen driver. For web applications, the README recommends RequestContext.create to isolate the identity map between requests."],"faq":[{"question":"What can you use for free in MikroORM?","answer":"Code and local use under MIT."},{"question":"What additional costs might arise with MikroORM?","answer":"Compute, your own hosting, and external services are paid for separately if selected."},{"question":"What terms of use matter for MikroORM?","answer":"MIT: code; dependencies have separate licenses."},{"question":"How do you get started with MikroORM?","answer":"Define entities and request context boundaries. Change related objects and check persistence through the unit of work. Check schema changes, indexes, and data recovery."},{"question":"How does MikroORM save entity changes, and which packages are needed for its tools?","answer":"Unit of Work tracks managed entities; flush saves accumulated changes in one transaction. Choose a database driver, such as PostgreSQL, MySQL/MariaDB, SQLite/LibSQL, or MongoDB. For CLI, migrations, and entity generator, install @mikro-orm/core explicitly with the required packages. Entities can be defined through defineEntity/setClass, decorators, or EntitySchema."}],"related":[],"sources":["https://github.com/mikro-orm/mikro-orm","https://raw.githubusercontent.com/mikro-orm/mikro-orm/HEAD/README.md","https://raw.githubusercontent.com/mikro-orm/mikro-orm/HEAD/LICENSE","https://www.open-source-tools.com/"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Save related entities through a unit of work.","inputs":["A schema, test dataset, and queries.","A supported database or runtime."],"steps":["Define entities and request context boundaries.","Change related objects and check persistence through the unit of work.","Check schema changes, indexes, and data recovery."],"checks":["Query results match the reference data.","Check access permissions, backup recovery, and load before production use."]},"sources":["https://github.com/mikro-orm/mikro-orm","https://raw.githubusercontent.com/mikro-orm/mikro-orm/HEAD/README.md","https://raw.githubusercontent.com/mikro-orm/mikro-orm/HEAD/LICENSE","https://www.open-source-tools.com/"],"checkedAt":"2026-10-06","reviewScope":"Purpose, the current repository license, and the boundaries between code, services, and models were reviewed. The product was not run or security-audited.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Database / data tool","kind":"tool","pricingNote":"Code and local use under MIT. Compute, your own hosting, and external services are paid for separately if selected.","notes":null,"labeledSources":[{"url":"https://github.com/mikro-orm/mikro-orm","label":"Official source"},{"url":"https://raw.githubusercontent.com/mikro-orm/mikro-orm/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/mikro-orm/mikro-orm/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}