JSON Server
Reasonable, with limits. 8th of 10 mocking and test data.
JSON Server turns a db.json file into a fake REST API with no code. It still does that small job well for prototypes, demos and teaching. The version npm installs by default, 1.0.0-beta.15, has been in beta for more than two years and has had no release since March 2026. It also dropped features from the old 0.17.4 line. For mocking inside tests, Mock Service Worker is the stronger pick.
Best for: Frontend developers who need a throwaway local REST backend from a JSON file for prototypes, demos or workshops.
Scores
Overall5.6
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
It is still the quickest way to stand up a throwaway REST API, and that keeps it useful for prototypes and teaching. Holding it back are the default install being a beta for years, maintenance stalled since March, features removed in v1, no types, and a falling share. For mocking in tests, MSW does the job better for most people, and Mockttp or Nock fit Node-side work.
- npm latestVersion: 1.0.0-beta.15 is the default install.
- npm downloads ratio: 1.23x vs median 4.1x.
- pkgpulse.com/guides/json-server-vs-msw-vs-miragejs-api-mocking-development-2026: MSW preferred for new projects and tests.
- github.com/typicode/json-server: Beta status, usable but breaking changes expected.
GPT-6.2 Sol: 6.1, likely 5.0 to 7.2
Pinning 0.17.4 is reasonable when a new project needs a real REST endpoint that saves writes with very little setup. Mock Service Worker is the stronger general choice for browser and Node tests that need different responses in each test. The long gap between stable releases and the breaking v1 upgrade path lower confidence for projects that expect to rely on it for several years.
- raw.githubusercontent.com/typicode/json-server/v0.17.4/README.md: Stable JSON-backed REST API and customization options.
- mswjs.io/docs/comparison/#json-server: MSW offers programmable handlers for more complex responses.
- javascripts.com/compare/msw-vs-json-server: Independent package comparison records the stable release gap.
- github.com/typicode/json-server: The maintainers identify v1 as beta and document behavior changes.
- dev.to/kevinccbsg/testing-while-developing-part-3-mocking-api-requests-41ld: A working example shows the trade-off between saved writes and test isolation.
Needed by many5.0
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Many frontend developers sometimes need a fake REST backend, but only for prototyping and demos rather than for most test suites. It covers only REST over a JSON file and does not fake functions or generate data. That makes it narrower than the whole category.
- pkgpulse.com/guides/json-server-vs-msw-vs-miragejs-api-mocking-development-2026: Positions it for prototyping and demos, with MSW for tests.
- github description: Fake REST API from a JSON file only.
GPT-6.2 Sol: 4.9, likely 3.8 to 6.1
Mocking is a common testing problem, and a standalone HTTP server works with any frontend framework or HTTP client. JSON Server serves the narrower case of teams that want a separate, stateful REST backend. The survey identifies the general need for mocking, but gives little evidence of how many teams need this particular setup.
- 2025.stateofjs.com/en-US/libraries/testing: Mocking remains a major testing pain point.
- raw.githubusercontent.com/typicode/json-server/v0.17.4/README.md: The stable tool serves REST endpoints from a local data source.
- mswjs.io/docs/comparison/#json-server: The standalone server can serve any HTTP client and covers REST.
Helps a lot6.0
How well does it do the job for those who need it?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
The core workflow is simple and works, and v1 added richer filter operators and _where. But the default install is a beta, and v1 dropped --delay, custom route maps and middleware flags. It has no bundled types and is a separate process rather than in-app interception, and AI agents often write 0.17-style code that v1 rejects.
- github.com/typicode/json-server: README says beta, 'expect breaking changes'; lists removed options.
- virtarix.com/blog/json-server-guide: v1 CLI lacks --routes and --middlewares from 0.17.4.
- npm hasTypes: No TypeScript types.
GPT-6.2 Sol: 7.0, likely 5.9 to 8.2
Version 0.17.4 makes persistent CRUD, filtering, pagination, and simple relationships easy to set up, with documented hooks for custom routes and middleware. Programmable errors and isolated tests take more work, and the stable package has no built-in TypeScript declarations. The JSON setup is straightforward for coding agents, but version-specific examples are easy to mix up and independent performance and agent evaluations are sparse.
- raw.githubusercontent.com/typicode/json-server/v0.17.4/README.md: Documents the stable CLI, query options, and Express hooks.
- raw.githubusercontent.com/typicode/json-server/v0.17.4/package.json: The stable package has no bundled declaration entry.
- dev.to/kevinccbsg/testing-while-developing-part-3-mocking-api-requests-41ld: A hands-on example shows why mutable fixtures need resets between tests.
- github.com/typicode/json-server/issues/1512: Users report confusion over options available in different versions.
Holds up over time4.1
Will it still be a good choice in two years?
Claude Opus 5.5: 4.0, likely 3.0 to 5.0
Work comes in bursts from one maintainer: about ten beta releases in January to March 2026, then nothing for eight months. v1 has stayed in beta since 2023-2024, with 619 open issues and 103 open pull requests. Sponsors fund some of the work, but the Scorecard rates Maintained at 0.
- github.com/typicode/json-server/releases: Beta.5 to beta.15 published January to March 2026.
- github latestRelease: Latest release on 2026-03-23.
- scorecard Maintained: Score 0.
- github openIssues/openPullRequests: 619 open issues and 103 open pull requests.
GPT-6.2 Sol: 4.2, likely 3.0 to 5.6
The last stable release was in September 2023. The repository had 60 commits and 11 releases in the past year, but its last release was a beta in March 2026, and several newer pull requests remain open. The registry listing shows one maintainer, and users have reported problems with breaking changes in v1. The beta work shows that development can resume, while the timing of a stable release remains uncertain.
- evidence.github: 60 commits, 11 releases, 619 open issues, and 103 open pull requests.
- github.com/typicode/json-server/releases/tag/v0.17.4: Last stable release.
- github.com/typicode/json-server/releases/tag/v1.0.0-beta.15: Latest beta was released on March 23, 2026.
- github.com/typicode/json-server/pulls: Several pull requests opened since March remain open.
- socket.dev/npm/package/json-server: Lists one npm maintainer.
- github.com/typicode/json-server/issues/1512: Users report that losing route rewrites disrupted existing setups.
Used widely5.8
How many use it, and is that growing?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
About 85.7k dependent repositories and 75k stars show very wide past adoption, much of it from tutorials and learning projects. Downloads grew only 1.23x year over year, against a median of 4.1x, so it is losing share fast to MSW and others. At 1.7M downloads per 4 weeks, it is far below MSW's 135M.
- npm downloadsLast4Weeks: 1.75M now vs 1.42M a year ago; ratio 1.23, well below the median of 4.1.
- dependents repos: 85,674 dependent repos, more than MSW's 11,851.
- peers Mock Service Worker downloads: MSW grew 4.7x to 135M.
GPT-6.2 Sol: 5.6, likely 4.5 to 6.7
The tracked 85,674 dependent repositories show a substantial installed base, above Mock Service Worker and below Nock in this index. Downloads grew from 1.42 million to 1.75 million per four weeks, a 1.23× ratio against the catalog median of 4.1× and Mock Service Worker’s 4.68×. That points to a loss of relative ground despite the project’s large star count. The download figures mix versions and automated installs, so they give an imprecise view of new adoption.
- evidence.dependents: 85,674 tracked repositories and 975 tracked packages.
- evidence.npm: 1,747,878 four-week downloads versus 1,419,893 a year earlier.
- medianDownloadsRatio: The catalog median is 4.1×.
- peers: Mock Service Worker grew 4.68×, and Nock has 130,286 tracked dependent repositories.
- evidence.github.stars: 75,750 cumulative stars.
Vouched for4.4
Who stands behind it being good?
Claude Opus 5.5: 4.0, likely 3.0 to 5.0
It is endorsed widely in tutorials, courses and comparison roundups, and sponsors such as Zuplo and Mintlify back it. But it serves dev-time prototyping, so production endorsements hardly apply. Current comparisons recommend MSW over it for testing, and community discussion is thin: 1 HN story with 2 points and 5 Bluesky posts.
- pkgpulse.com/guides/json-server-vs-msw-vs-miragejs-api-mocking-development-2026: Recommends MSW as primary, json-server only for demos.
- geekflare.com/dev/mock-rest-api: Listed among 2026 mock REST API tools.
- bluesky posts: Only 5 posts, mostly bots, vs 53 for MSW.
GPT-6.2 Sol: 4.8, likely 3.6 to 6.0
React-admin documents a dedicated adapter, and Red Hat published a hands-on example of using JSON Server for local frontend development. A more recent developer report confirms the quick setup and describes friction with delays and error responses. The evidence is strongest for prototypes, with little recent survey or independent benchmark coverage for JSON Server itself.
- marmelab.com/react-admin/DataProviderList.html: React-admin documents and maintains a JSON Server data provider.
- developers.redhat.com/blog/2020/04/28/contract-first-development-create-a-mock-back-end-for-realistic-data-interactions-with-react: An older hands-on example uses it as a local React backend.
- reddit.com/r/webdev/comments/1vh2krq/how_are_you_guys_handling_mock_endpoints_when_the: A developer reports quick setup and difficulty with richer scenarios.
- 2025.stateofjs.com/en-US/libraries/testing: The survey tracks Mock Service Worker and gives no JSON Server satisfaction result.
Safe5.7
How safe is it to depend on?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
No OSV advisories ever, 13 runtime dependencies, and it is normally a devDependency that runs locally. The license changed briefly during the v1 betas and was switched back to MIT in beta.7. The Scorecard is 3.6, with weak code review, token permissions, pinned dependencies and security policy, and one person publishes releases.
- advisories total: 0 advisories.
- scorecard score: 3.6 overall; Code-Review 1, Security-Policy 0.
- github.com/typicode/json-server/releases: Beta.7: 'Switch back to MIT License'.
- npm dependencies: 13 dependencies.
GPT-6.2 Sol: 5.3, likely 4.1 to 6.5
The stable package has a permissive MIT license and no listed direct advisories in the sources checked. Its manifest lists 19 direct runtime dependencies, and downstream advisories show that resolved dependency versions matter. The repository’s 3.6 OpenSSF score, weak workflow permissions and review checks, and missing security policy reduce confidence in future fixes. The default npm beta also has an open report about binding beyond the requested local interface.
- evidence.advisories: The collector found zero direct advisories.
- security.snyk.io/package/npm/json-server/0.17.4: MIT license and no listed direct vulnerabilities for 0.17.4.
- raw.githubusercontent.com/typicode/json-server/v0.17.4/package.json: The stable manifest lists 19 runtime dependencies.
- github.com/wolfi-dev/advisories/blob/main/json-server.advisories.yaml: Downstream packaging records fixes for vulnerable resolved dependencies.
- evidence.scorecard: 3.6 overall, with low code review and zero scores for token permissions and security policy.
- github.com/typicode/json-server/issues/1775: Open host-binding disclosure names beta.15.
Good
- One command turns a JSON file into full CRUD routes with filtering, sorting, pagination and _embed relations.
- It is a real HTTP server, so curl, Postman, mobile apps and any frontend can call it.
- There are no known advisories, it has only 13 dependencies, and the license is MIT again since beta.7.
- It is extremely well known and covered by countless tutorials, so it is easy to explain and to onboard people.
Bad
- The default npm version is a long-running beta, and its notes warn that more breaking changes may come.
- v1 removed features from 0.17, such as --delay, --routes, --middlewares and _limit, so old guides and AI-written code often break.
- It ships no TypeScript types and cannot intercept requests inside the app or a test runner, as MSW does.
- Releases come from one maintainer, the last one was in March 2026, and 619 issues are open.
The numbers
- npm downloads, 4 weeks
- 1.7M +23% in a year
- GitHub stars
- 76k
- Commits, 12 months
- 60
- npm version
- 1.0.0-beta.15 Mar 2026
- Versions, 12 months
- 0
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 3.6 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (typicode/json-server), npm (json-server), 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