Standalone ORM and in-memory database for JavaScript apps — extracted from MirageJS
@miragejs/orm
provides MirageJS’s powerful in-memory data modeling and relational layer as a standalone library, independent of request handling or HTTP mocking.
It enables:
- Declaring models and relationships
- Creating, querying, and mutating records in memory
- Building factories and managing lifecycle hooks
- Simulating a normalized relational data store in tests