JS

json-server

Full fake REST API from a JSON file in seconds

Developer Tools & Git ★ 75.7k stars Easy setup MIT

json-server is an open-source tool that creates a full fake REST API from a single JSON file with zero coding. It is widely used for prototyping and self-hosted mock backends during development.

Key features

  • Instant REST API
  • JSON file backend
  • Full CRUD support
  • Custom routes

Pros & cons

Strengths

  • Zero-code setup
  • Instant REST endpoints
  • Great for prototyping

Trade-offs

  • Not production-grade
  • Node.js required

Is json-server secure?

OSV.dev has no published security advisories for json-server's repository. No known vulnerabilities is not proof of security: it means none have been publicly catalogued.

Source: OSV.dev, checked 2026-10-14. How this is measured.

json-server replaces

Health badge

Maintain json-server? Add its health score to your README. The badge links back to this page.

SelfHostIndex: 79 · good

Markdown
[![SelfHostIndex health score for json-server](https://selfhostindex.com/badge/json-server.svg)](https://selfhostindex.com/app/json-server/)
HTML
<a href="https://selfhostindex.com/app/json-server/"><img src="https://selfhostindex.com/badge/json-server.svg" alt="SelfHostIndex health score for json-server"></a>
reStructuredText
.. image:: https://selfhostindex.com/badge/json-server.svg
   :alt: SelfHostIndex health score for json-server
   :target: https://selfhostindex.com/app/json-server/

The score is recomputed on every nightly rebuild from public repository data — see how it is calculated.

Compare json-server

3 head-to-head comparisons.

Similar developer tools & git apps