#186186th of 204 in Backends, databases and hosting

json-server

Fake REST API served from a single JSON or JSON5 file

Stars
75.7k
License
MIT
Last commit
Mar 2026
Last release
Mar 2026
Language
JavaScript
Stars, last 29 weeks+673
25 Apr 2026: 75,073 stars2 May 2026: 75,094 stars9 May 2026: 75,124 stars16 May 2026: 75,159 stars23 May 2026: 75,191 stars30 May 2026: 75,216 stars6 Jun 2026: 75,237 stars13 Jun 2026: 75,281 stars20 Jun 2026: 75,307 stars27 Jun 2026: 75,331 stars4 Jul 2026: 75,355 stars11 Jul 2026: 75,377 stars18 Jul 2026: 75,393 stars25 Jul 2026: 75,421 stars1 Aug 2026: 75,441 stars8 Aug 2026: 75,467 stars15 Aug 2026: 75,483 stars22 Aug 2026: 75,500 stars29 Aug 2026: 75,521 stars5 Sept 2026: 75,542 stars12 Sept 2026: 75,559 stars19 Sept 2026: 75,579 stars26 Sept 2026: 75,594 stars3 Oct 2026: 75,608 stars10 Oct 2026: 75,638 stars17 Oct 2026: 75,658 stars24 Oct 2026: 75,678 stars31 Oct 2026: 75,688 stars7 Nov 2026: 75,716 stars14 Nov 2026: 75,746 stars

75,073 on 25 Apr 202675,746 on 14 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

json-server is an npm package that turns a db.json or db.json5 file into a REST API with no code. Array keys get full CRUD routes, object keys get GET/PUT/PATCH, and it supports filtering, sorting, pagination, embedding and serving static files. The README documents the current v1 beta, which has breaking changes from 0.17.4.

Who it is for: Frontend developers who need a mock REST API for prototypes and tests

Strengths

  • Starts with one command: npx json-server db.json, on port 3000 by default
  • Query operators include gt, lt, in, contains and startsWith, plus _sort, _embed and _where
  • Pagination returns first, prev, next, last, pages and items metadata
  • Serves ./public and extra static directories via the -s flag

Weaknesses

  • v1 docs are labeled beta, with breaking changes expected
  • Data lives in a flat JSON file, so it is a mock rather than a production backend
  • v1 forces ids to strings and replaces _expand and _limit, which breaks 0.x clients
  • The --delay option was removed in v1

What it needs

  • no GPU
  • Needs Node.js, npm
  • port 3000

Also in Backends, databases and hosting

See all 204
Also in Backends, databases and hosting
RankProjectScore
1bunJavaScript and TypeScript runtime with bundler, test runner and package manager96.7k starscustom license94 out of 100
2coolifySelf-hosted Heroku and Vercel alternative that deploys apps and databases over SSH66.2k starsApache-2.093 out of 100
3strapiHeadless CMS that generates REST and GraphQL APIs from content models Live demo ↗ (opens in a new tab)73.5k starscustom license92 out of 100
#4traefikHTTP reverse proxy and load balancer that auto-discovers routes from orchestrators65.6k starsMIT92 out of 100
#5appwriteBackend with auth, databases, storage, functions and an MCP server for agents Live demo ↗ (opens in a new tab)58.2k stars+653 (+1.1%) in 30 daysBSD-3-Clause92 out of 100