qmetrics.net

JSON Server

Zero-code mock REST API from JSON data files

JSON Server turns a JSON or JSON5 database file into a REST API for local prototyping. It supports filtering, sorting, pagination, embedding relations, and static assets.

Overview

JSON Server is a tool that serves a fake REST API from a simple data file such as db.json or db.json5 without writing server code. After installation you create the data file, start the process, and call standard HTTP routes against collections and single-object resources.

Query features include field operators for comparisons and text matching, sort parameters, pagination with page and per-page limits, embed parameters for related records, and structured where filters. IDs are handled as strings and auto-generated when missing.

The server can expose files from a public directory and optionally additional static paths for HTML, scripts, and images used alongside the API. Documentation notes behavioral differences when moving from older major versions, including pagination and relationship parameter names.

It is oriented toward frontend and test workflows that need a stand-in backend while a real service is still under development.

Key features

  • REST routes from JSON files
  • JSON5 database support
  • Rich query operators
  • Sort and pagination
  • embed related resources
  • where JSON filter objects
  • Built-in static file serving
  • Array and singular resources

Use cases

  • Frontend prototype backends
  • Contract testing during UI work
  • Demo apps without a real API
  • Teaching REST client integration
  • Local mock data for SPAs

Tags

Similar software

axios

Promise-based HTTP client for browser and Node.js

Axios is a promise-based HTTP client for JavaScript environments in the browser and Node.js. It supports common request methods, configurable defaults, and interceptors for request and response handling.

★ 109.5k⟳ 2 days agoMIT

FastAPI

Python web framework for building APIs with type hints

FastAPI is a Python web framework for building APIs using standard type hints. It builds on Starlette and Pydantic and generates interactive OpenAPI documentation for the endpoints you define.

★ 105.1k⟳ 9 days agoMIT

OmniRoute

OpenAI-compatible AI gateway with provider routing

OmniRoute exposes one endpoint that routes chat requests across many LLM providers with quota-aware fallback and compression.

★ 90.7k⟳ todayMIT

Hoppscotch

Web, desktop and CLI API development ecosystem

Hoppscotch lets developers send HTTP, WebSocket, GraphQL, and related API requests from a lightweight client. Collections, environments, teams, and sync help organize testing across devices.

★ 81k⟳ 5 days agoMIT
Open Source Alternative to:Postman

NestJS

Progressive TypeScript framework for Node.js backends

Nest organizes Node server apps with modules, dependency injection, and first-party packages for auth, data, queues, and observability.

★ 77.2k⟳ todayMIT

Protobuf

Language-neutral structured data serialization format

Protocol Buffers is Google's extensible, language-neutral mechanism for serializing structured data, with a compiler and per-language runtimes.

★ 72.2k⟳ 3 days agoBSD-3-Clause