Elestia Open Source Ratings
4.1

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.

WebsiteGitHubnpm

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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

  1. 8.5Mock Service Worker
  2. 8.1Faker
  3. 7.1Nock
  4. 6.9Mockttp
  5. 6.9Sinon.JS
  6. 6.5Fishery
  7. 5.7fetch-mock
  8. 5.6JSON Server
  9. 5.4testdouble.js
  10. 4.1Mirage JS
Compare all 10 on six scores