Mirage JS
Keep, but not for new work. 10th of 10 mocking and test data.
Mirage JS is an in-memory fake API server for front-end apps, with models, factories, relationships and serializers. It still works for prototypes and data-heavy front-end mocks, but it is in slow-maintenance mode. Its last stable release was in October 2023, and its 0.2.0 alpha, which adds MSW integration, has been stuck since June 2024. For a new project, Mock Service Worker (MSW) is the safer pick.
Best for: Front-end teams that want a stateful, relational fake backend for prototypes or demos, or that already have a large Mirage setup.
Scores
Overall4.1
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 3.5, likely 2.5 to 4.5
Mirage's relational fake server is still handy for prototypes. But maintenance has largely stopped, the stable line is three years old and the MSW-based alpha is stalled. MSW does the API-mocking job better and is actively maintained. Keep Mirage where it already runs; pick MSW (with @mswjs/data or Faker for data) for new work.
- github latestRelease: v0.1.48 from October 2023
- github.com/miragejs/miragejs/issues/1131: No timeline for the 0.2.0 release
- pkgpulse.com/guides/json-server-vs-msw-vs-miragejs-api-mocking-development-2026: Use only for existing codebases; MSW for new code
- peers Mock Service Worker: 135M downloads in 4 weeks and 123 commits in the last year
GPT-6.2 Sol: 4.7, likely 3.5 to 5.9
Mirage still earns a place in browser suites where several endpoints need to share and update related data. For most new projects, Mock Service Worker has broader runtime support and a much stronger maintenance record. The range reflects how much work Mirage's built-in data layer can save in a project that needs it.
- miragejs.com/docs/getting-started/overview: The built-in models and serializers support stateful browser scenarios.
- mswjs.io/docs/comparison: MSW supports browser and Node.js interception.
- github commitsLastYear, npm latestPublishedAt, peers Mock Service Worker: Mirage had zero commits in the past year. MSW had 123 and published in November 2026.
Needed by many4.8
How many developers need a tool for this job?
Claude Opus 5.5: 4.0, likely 3.0 to 5.0
API mocking with a relational in-memory database serves front-end SPA developers. That is a clear group, but narrower than the whole mocking category, which also covers function spies and fake data. Mirage only runs in the browser or in a jsdom-like setup, which narrows it further.
- pistack.xyz/posts/2026-09-02-javascript-http-mocking-msw-nock-mirage-comparison: In-app fake server; Node support relies on jsdom XHR
- github description: Client-side server for JavaScript apps
GPT-6.2 Sol: 5.6, likely 4.4 to 6.8
Mocking is a common testing need, and Mirage works across frontend frameworks. Its strongest fit is browser apps that need stateful API behavior. The survey measures mocking broadly, so it gives little indication of how many teams need a full mock backend.
- 2025.stateofjs.com/en-US/libraries/testing: Mocking was the most cited testing pain point.
- miragejs.com/docs/comparison-with-other-tools: Browser interception and built-in data modeling.
Helps a lot5.9
How well does it do the job for those who need it?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Its models, factories and relationships are unique among the peers and good for prototyping. But request interception through a shim has known problems with native fetch, passthrough and React Native. It has no GraphQL support and its suites run slower at scale. For most testing needs, MSW does the job more robustly.
- pkgpulse.com/guides/json-server-vs-msw-vs-miragejs-api-mocking-development-2026: Lists the pros (factories, relations) and cons (slower suites, no GraphQL, shimmed requests)
- pistack.xyz/posts/2026-09-02-javascript-http-mocking-msw-nock-mirage-comparison: Does not play perfectly with native fetch streams; edge cases need `any`
- github.com/miragejs/miragejs/issues: Open issues on fetch passthrough, React Native and Next.js setups
GPT-6.2 Sol: 6.8, likely 5.7 to 7.9
Version 0.1.48 combines routes, related records, factories, and serializers, with clear examples for common setups. Its browser interception limits reuse in Node.js, and some nested factory definitions fail type checking. Recent performance and AI coding results are sparse.
- miragejs.com/docs/getting-started/overview: Worked examples cover relationships, serializers, and unhandled requests.
- github.com/miragejs/miragejs/pull/1120: Open fix for nested factory types.
- apiscout.dev/guides/api-mocking-msw-vs-mirage-vs-wiremock-2026: Independent comparison favors Mirage for complex frontend data.
Holds up over time2.3
Will it still be a good choice in two years?
Claude Opus 5.5: 2.0, likely 1.0 to 3.0
The repo had no commits and no releases in the last year. The last stable release was in October 2023 and the alpha has sat since June 2024. In November 2025 the main collaborator said he had not done active development in a while and gave no timeline. The project is not archived, but the ecosystem is moving to MSW.
- github commitsLastYear: 0 commits, 0 releases in the last year
- github.com/miragejs/miragejs/issues/1131: Maintainer says there has been no active development for a while; no alpha timeline
- registry.npmjs.org/miragejs: 0.2.0-alpha.3 from June 2024 is the newest build
- scorecard Maintained: Maintained check scores 0
GPT-6.2 Sol: 2.6, likely 1.6 to 3.9
Mirage has had no commits or releases in the past year, and several fixes submitted in 2025 remain open. The experimental 0.2 line supports an MSW interceptor, but the issue asking for a stable release timeline remains open without a milestone. Three listed npm collaborators and ongoing Ember integration work leave room for a revival.
- github commitsLastYear, releasesLastYear, latestRelease: Zero commits and releases in the past year. Latest stable release was in October 2023.
- github.com/miragejs/miragejs/pulls: Factory typing and model fixes from 2025 remain open.
- github.com/miragejs/miragejs/releases/tag/v0.2.0-alpha.0: Experimental support for an MSW interceptor.
- github.com/miragejs/miragejs/issues/1131: A workplace adopter asks for a stable timeline. The issue has no milestone.
- npmjs.com/package/miragejs?activeTab=readme: npm lists three collaborators.
- mainmatter.com/blog/2026/07/14/ember-mirage: A 2026 integration guide keeps Mirage usable with Vite and Embroider.
Used widely3.8
How many use it, and is that growing?
Claude Opus 5.5: 4.0, likely 3.0 to 5.0
About 1.6M downloads in 4 weeks, which is tiny next to MSW's 135M. Its year-over-year ratio of 1.41 is far below the 4.1 median, so it is losing share. About 4.4k dependent repos is low against its peers, except testdouble and Mockttp.
- npm downloadsLast4Weeks: 1.59M against 1.13M a year ago, a 1.41x ratio
- dependents repos: 4,395 repos, against MSW's 11,851 and Nock's 130k
- bluesky posts: 0 posts, no current attention
GPT-6.2 Sol: 3.5, likely 2.5 to 4.7
Ecosyste.ms found about 4,400 dependent repositories, compared with about 11,900 for Mock Service Worker. Four-week downloads rose from 1.13 million to 1.59 million, but the 1.41× ratio trails the 4.1× catalog baseline, suggesting a loss of ground. Build installs and dependencies such as Ember CLI Mirage blur the number of teams choosing it directly.
- dependents repos, packages: Ecosyste.ms found 4,395 repositories and 157 packages.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Downloads rose 41%, below the 4.1× median ratio.
- github stars, bluesky posts, peers Mock Service Worker: Mirage has 5,524 stars and zero sampled Bluesky posts. MSW has 18,356 stars and 53 posts.
- npmjs.com/package/ember-cli-mirage?activeTab=versions: The Ember addon adds Mirage JS as a peer dependency during installation.
Vouched for4.1
Who stands behind it being good?
Claude Opus 5.5: 3.0, likely 2.0 to 5.0
It came out of the Ember ecosystem, where ember-cli-mirage was long a standard tool, but that endorsement is old. Current independent write-ups recommend MSW for new work and present Mirage mainly as something to migrate away from. It has no Hacker News or Bluesky presence.
- pkgpulse.com/guides/json-server-vs-msw-vs-miragejs-api-mocking-development-2026: Migrating from Mirage to MSW is called the most common migration in 2026
- pistack.xyz/posts/2026-09-02-javascript-http-mocking-msw-nock-mirage-comparison: MSW recommended for long-lived test infrastructure
- ember-cli-mirage history: Long used in Ember apps, which is a historical endorsement
GPT-6.2 Sol: 5.2, likely 3.9 to 6.5
Zalando built an internal tool around Mirage for reviewing frontend edge cases in staging. Mainmatter documented how to carry Mirage setups onto modern Ember tooling in 2026, and an independent comparison still favors Mirage for complex mock data. Recent evidence is concentrated in that use case, with little survey or benchmark data specific to Mirage.
- engineering.zalando.com/posts/2024/04/enhancing-the-mock-server-a-ui-approach.html: Zalando describes its internal frontend review tool built on Mirage.
- mainmatter.com/blog/2026/07/14/ember-mirage: Mainmatter documents Mirage integration with Vite and Embroider.
- apiscout.dev/guides/api-mocking-msw-vs-mirage-vs-wiremock-2026: Independent comparison recommends Mirage for complex prototyping.
- 2025.stateofjs.com/en-US/libraries/testing: The survey covers MSW but provides no Mirage satisfaction rating.
Safe5.9
How safe is it to depend on?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
It has no known advisories, an MIT licence and only 4 dependencies, and it is usually a dev dependency. The Scorecard of 3.7 is weak: no security policy, unpinned dependencies, and Maintained scores 0. If a dependency issue appears, a fix release is unlikely.
- advisories total: 0 advisories
- scorecard score: 3.7, with Security-Policy, Pinned-Dependencies and Maintained all at 0
- npm dependencies: 4 dependencies
GPT-6.2 Sol: 5.7, likely 4.3 to 7.0
Mirage has an MIT license, four direct dependencies, and no known direct advisories in OSV or Snyk. Its 3.7 OpenSSF Scorecard flags weak workflow token permissions, unpinned dependencies, and the absence of a security policy. The release guide describes CI publishing, with limited evidence about current signing and how quickly a report would get a fix.
- npm license, dependencies, advisories total: MIT license, four direct dependencies, and zero OSV advisories.
- scorecard score, checks: 3.7 overall. Token Permissions, Pinned Dependencies, and Security Policy each scored zero.
- security.snyk.io/package/npm/miragejs: Snyk lists no direct vulnerabilities for 0.1.48.
- github.com/miragejs/miragejs/blob/next/RELEASE.md: The documented process publishes through CI after tests pass.
Good
- Built-in ORM-style models, factories, relationships and serializers give you a stateful fake backend from one config.
- Quick to set up full CRUD routes for UI prototyping without running a separate server.
- Ships its own TypeScript types, carries an MIT licence and pulls in only 4 dependencies.
- Mature API with good documentation and many existing examples.
Bad
- No stable release since v0.1.48 (October 2023) and no commits in the last year. The 0.2.0 alpha with MSW support has been stalled since June 2024.
- It intercepts requests with a Pretender XHR/fetch shim, not at the network level, so native fetch streams and Node use are weak points.
- No GraphQL support, and test suites can get slow at scale compared with MSW.
- Growing well below the market (1.4x a year against a 4.1x median), and teams are moving from Mirage to MSW.
The numbers
- npm downloads, 4 weeks
- 1.6M +41% in a year
- GitHub stars
- 5.5k
- Commits, 12 months
- 0
- npm version
- 0.1.48 Oct 2023
- Versions, 12 months
- 0
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 3.7 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (miragejs/miragejs), npm (miragejs), OSV and the OpenSSF Scorecard.
Mocking and test data
- 8.5Mock Service Worker
- 8.1Faker
- 7.1Nock
- 6.9Mockttp
- 6.9Sinon.JS
- 6.5Fishery
- 5.7fetch-mock
- 5.6JSON Server
- 5.4testdouble.js
- 4.1Mirage JS