#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
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| Rank | Project | Score |
|---|---|---|
| 1 | bunJavaScript and TypeScript runtime with bundler, test runner and package manager | 94 out of 100 |
| 2 | coolifySelf-hosted Heroku and Vercel alternative that deploys apps and databases over SSH | 93 out of 100 |
| 3 | strapiHeadless CMS that generates REST and GraphQL APIs from content models | 92 out of 100 |
| #4 | traefikHTTP reverse proxy and load balancer that auto-discovers routes from orchestrators | 92 out of 100 |
| #5 | appwriteBackend with auth, databases, storage, functions and an MCP server for agents | 92 out of 100 |