
Mirage JS
API mocking library that intercepts a JavaScript app's network requests so the app can run without its backend.
Mirage JS gives frontend developers a fake server that runs beside the app in the browser. It intercepts the network requests the app makes and answers them from route handlers the developer defines, with a database and factories for test data. It is installed from npm, and Sam Selikoff maintains it. The introduction explains how the library fits into a frontend project. Mirage began as an Ember addon, and its core was later extracted into this standalone package.
Worth knowing
Mirage resets its state on every browser reload, and it can use localStorage for temporary persistence. Under Node.js it runs only in a browser-like environment such as jsdom, and it cannot yet mock a React app’s server-side API requests.
Identity
Rendering and deploy
- Install with
- npm7
Releases
Adoption
Sources
- 2026-11-16: links, Categories
miragejs.com/ - 2026-11-16: links, Written in, GitHub stars
api.github.com/repos/miragejs/miragejs - 2026-11-16: links
miragejs.com/docs/getting-started/introduction/ - 2026-11-16: First release
registry.npmjs.org/miragejs - 2026-11-16: Maintainer
miragejs.com/docs/about/ - 2026-11-16: Runtime
miragejs.com/docs/comparison-with-other-tools/ - 2026-11-16: Install with
miragejs.com/docs/getting-started/installation/ - 2026-11-16: License, License model
github.com/miragejs/miragejs/blob/v0.1.48/LICENSE.md - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/miragejs - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/miragejs - 2026-11-16: Current major version, Last release
api.github.com/repos/miragejs/miragejs/releases - 2026-11-16: Contributors
api.github.com/repos/miragejs/miragejs/contributors?per_page=1