json-server

JSON Server is a tool that allows you to create a complete REST API server using a JSON or JSON5 file. It is installed with npm and allows HTTP requests to be made in the local environment by starting from the command line. It also directly supports advanced interrogation capabilities such as filtering, sorting, and pagination.

JS

typicode · DevOps / Build / Infra

STARS75.7K
FORKS7.3K
COMMITS1.0K
CONTRIBUTORS96
VERSIONv1.0.0-beta.9
UPDATED7 mo ago
JavaScriptMock APIPrototipRestMIT

Common commercial products in this category: GitHub Actions, CircleCI, Atlassian Bamboo

What can it do?
  • You can start a REST API on the local server by creating db.json or db.json5 file
  • You bring the records associated with the _embed parameter (e.g. the comments of a post) together in one request.
  • You can run advanced queries for filtering, sorting, and pagination operations on data
Heads up
  • • High number of open issues (723)
User reviews
  • • NeutralGitHub Issue

    custom resource id

    “Currently, an option to set a custom id is provided using commandline option `--id id` Is it possible to make id set to a format something like this : `--id resource_id` where resource is the name of the resource... So when you run `json-server db.json --id resource_id`, the…”

  • • NeutralGitHub Issue

    Has the --delay option been removed?

    “I'm attempting to simulate a delayed response from my server for development purposes using json-server. I used the following command to start the server, intending to introduce a 5000ms delay to responses: `json-server --delay 5000 --watch data/cities.json --port 8000` However,…”

GitHub

Verified against README · Oct 25, 2026 · source

My note

Alternative pages

More in: DevOps / Build / Infra

  • Vite★ 83,632 · yesterday
  • act★ 72,499 · 2 days ago
  • Traefik★ 65,419 · today
  • Gitea★ 58,791 · today
  • Prettier★ 52,383 · today
  • Gogs★ 47,914 · 3 days ago