# Mirage JS

API mocking library that intercepts a JavaScript app's network requests so the app can run without its backend.


Source: https://findsoftware.frbit.cloud/miragejs/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://miragejs.com/
- repository: https://github.com/miragejs/miragejs
- docs: https://miragejs.com/docs/getting-started/introduction/
- x: https://twitter.com/miragejs
- discord: https://discord.gg/pPsdsrn

### Identity

- status: active
- maintainer: Sam Selikoff
- maintainerType: unknown
- parent: unknown
- firstRelease: 2019
- hqCountry: unknown

### Kind

- category: testing
- hosting: not applicable
- language: javascript
- runtime: node
- runtimeMin: not applicable
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: unknown
- renderingModes: not applicable
- installMethod: npm

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 0
- latestReleaseDate: 2023-10-30

### Adoption

- githubStargazers: 5525
- packagistDownloads: not applicable
- npmWeeklyDownloads: 393479
- contributors: 170
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 4395
- dependentPackages: 157

### Sources

- urls: https://miragejs.com/ (read 2026-11-16)
- urls: https://api.github.com/repos/miragejs/miragejs (read 2026-11-16)
- urls: https://miragejs.com/docs/getting-started/introduction/ (read 2026-11-16)
- firstRelease: https://registry.npmjs.org/miragejs (read 2026-11-16)
- maintainer: https://miragejs.com/docs/about/ (read 2026-11-16)
- language: https://api.github.com/repos/miragejs/miragejs (read 2026-11-16)
- category: https://miragejs.com/ (read 2026-11-16)
- runtime: https://miragejs.com/docs/comparison-with-other-tools/ (read 2026-11-16)
- installMethod: https://miragejs.com/docs/getting-started/installation/ (read 2026-11-16)
- license: https://github.com/miragejs/miragejs/blob/v0.1.48/LICENSE.md (read 2026-11-16)
- licenseModel: https://github.com/miragejs/miragejs/blob/v0.1.48/LICENSE.md (read 2026-11-16)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/miragejs (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/miragejs (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/miragejs (read 2026-11-16)
- currentMajor: https://api.github.com/repos/miragejs/miragejs/releases (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/miragejs/miragejs/releases (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/miragejs/miragejs (read 2026-11-16)
- contributors: https://api.github.com/repos/miragejs/miragejs/contributors?per_page=1 (read 2026-11-16)

## Notes

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](https://miragejs.com/docs/getting-started/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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
