# Mirage JS: 4.1 out of 10

Keep, but not for new work. 10th of 10 in [Mocking and test data](https://elestia.ai/opensource/mocking/index.md).

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

- **Overall: 4.1** (likely 3.0 to 5.2)
  - Claude Opus 5.5 (3.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): 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.
- **Needed by many: 4.8** (likely 3.7 to 5.9)
  - Claude Opus 5.5 (4.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): 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 lot: 5.9** (likely 4.9 to 7.0)
  - Claude Opus 5.5 (5.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): 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 time: 2.3** (likely 1.3 to 3.5)
  - Claude Opus 5.5 (2.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): 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 widely: 3.8** (likely 2.8 to 4.9)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (3.5): 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.
- **Vouched for: 4.1** (likely 3.0 to 5.8)
  - Claude Opus 5.5 (3.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): 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.
- **Safe: 5.9** (likely 4.7 to 7.0)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (5.7): 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

- Downloads, 4 weeks: 1.6M
- In a year: +41%
- GitHub stars: 5.5k
- Commits, 12 months: 0
- Last npm release: Oct 2023
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/miragejs/miragejs
- npm: https://www.npmjs.com/package/miragejs

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
