miragejs/miragejs
A client-side server to build, test and share your JavaScript app observed · 2026-08-28
Health v2 · maintenance only
39/100
- Activity 36
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2749
- days_rel: n/a
- days_push: 387
- n_releases_24m: 0
Adoption not part of the score
5529 stars · 174 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Mirage JS is a client-side API mocking library that lets frontend developers build, test, and prototype complete JavaScript applications without a real backend. It intercepts XMLHttpRequest and fetch requests in the browser and lets you define mock routes, a seeded database, and factories to simulate dynamic server behavior.
Use cases
- mock backend APIs for frontend development
- write UI tests without a real server
- prototype frontend features before the API exists
- demo a JavaScript app offline
- seed test scenarios with factories and fixtures
- share a working frontend repo with no backend setup
When to choose
- you're building or testing a JavaScript frontend and the backend isn't ready or available
- you want high-level application tests that simulate realistic server state
- you need an offline dev environment that new collaborators can run with just npm install
When to avoid
- you need to mock APIs for backend or integration tests of the actual server
- you only need simple static JSON stubs and don't want a full in-browser database
- your app communicates over protocols other than HTTP (XHR/fetch)
Facets
library · maturity stable
mock-api testing http-server database e2e-testing frontend web-development testing developer-tools browser api-mocking fake-server frontend-development ui-testing prototyping pretender nodejs javascript
6 sources
- readme: https://github.com/miragejs/miragejs · fetched 2026-08-28 · 9e9ddf555213
- homepage: https://miragejs.com/ · fetched 2026-08-29 · 2e543cb64efb
- site_page: https://miragejs.com/docs/getting-started/introduction · fetched 2026-08-29 · 62da40059bf3
- site_page: https://miragejs.com/quickstarts/overview · fetched 2026-08-29 · 9750e91eff8b
- site_page: https://miragejs.com/docs/testing/application-tests · fetched 2026-08-29 · 6ae2fac74ce8
- registry_npm: https://registry.npmjs.org/miragejs · fetched 2026-08-29 · cd4e36455fb2
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| miragejs/miragejs | main | 39 |
For agents
markdown · JSON · MCP: product_card(name="miragejs/miragejs")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem