FindSoftware

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

Status
Active
Maintainer
Sam Selikoff5
First release
20194

Rendering and deploy

Install with
npm7

Releases

Current major version
Pre-1.011
Last release
2023-10-3011

Adoption

GitHub stars
5,5252
npm downloads a week
393,4799
Contributors
17012
Dependent repositories
4,39510
Dependent packages
15710

Why these figures do not compare

Sources

  1. 2026-11-16: links, Categories
    miragejs.com/
  2. 2026-11-16: links, Written in, GitHub stars
    api.github.com/repos/miragejs/miragejs
  3. 2026-11-16: links
    miragejs.com/docs/getting-started/introduction/
  4. 2026-11-16: First release
    registry.npmjs.org/miragejs
  5. 2026-11-16: Maintainer
    miragejs.com/docs/about/
  6. 2026-11-16: Runtime
    miragejs.com/docs/comparison-with-other-tools/
  7. 2026-11-16: Install with
    miragejs.com/docs/getting-started/installation/
  8. 2026-11-16: License, License model
    github.com/miragejs/miragejs/blob/v0.1.48/LICENSE.md
  9. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/miragejs
  10. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/miragejs
  11. 2026-11-16: Current major version, Last release
    api.github.com/repos/miragejs/miragejs/releases
  12. 2026-11-16: Contributors
    api.github.com/repos/miragejs/miragejs/contributors?per_page=1

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON