awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
typicode avatar

typicode/json-server

0
View on GitHub↗
75,614 星标·7,268 分支·JavaScript·MIT·6 次浏览

Json Server

json-server is a development toolset used to simulate a full REST API from a JSON file. It functions as a customizable mock API server that allows for the simulation of CRUD operations and resource relationships without the need to write backend code.

The project enables rapid prototyping by generating a fake backend that persists data changes back to a local JSON file. It distinguishes itself by providing a static asset file server to deliver local documents, images, and stylesheets alongside the mock API endpoints.

The server includes capabilities for data querying, such as parameter-based filtering, pagination, and sorting. It also supports resource relationship management through relational data embedding and offers extensibility via a middleware-based request pipeline for custom logic and authentication.

Features

  • Dynamic REST API Generators - Generates a full RESTful API dynamically from a local JSON file to simulate a backend.
  • API Mocking Servers - Functions as a local mocking server that simulates CRUD operations and complex query filtering.
  • JSON-Based Persistence - Persists application data as structured JSON files on the local filesystem.
  • Data Query Filters - Implements field-based criteria and logical operators for narrowing down data sets via API requests.
  • Query Parameter Filters - Transforms URL query parameters into filters, sorts, and pagination logic for data retrieval.
  • Relational Resource Mapping - Allows fetching related data by embedding child resources or expanding parent references in a single request.
  • Data Mocking - Simulates API responses and resource relationships using static JSON data files.
  • Mock State Management - Performs standard CRUD operations on collection arrays and singular object resources via HTTP methods.
  • Relational Data Embedding - Resolves links between different JSON collections by embedding child objects or expanding parent references.
  • Query Filters - Supports range-based constraints, slicing, and sorting to retrieve specific subsets of data.
  • Automatic Endpoint Mapping - Maps URL paths to JSON arrays based on the keys found in the source file to create automatic endpoints.
  • Local Development Servers - Provides a lightweight local server to manage stateful CRUD operations and resource relationships.
  • API Mocking - Provides a tool for simulating API responses to facilitate frontend development without a live backend.
  • Mocking Tools - Generates a full mock REST API directly from a JSON file.
  • Pagination - Splits large data collections into smaller, manageable pages using page and per-page parameters.
  • API Route Customization - Provides configuration options to map custom URL paths to specific JSON resources.
  • Middleware-Based Request Pipelines - Processes incoming HTTP requests through a modular chain of pluggable functions for custom logic.
  • Rapid Prototyping - Enables a rapid prototyping workflow by simulating server responses to iterate on features quickly.
  • Custom Middleware Implementations - Supports custom middleware and request handlers for authentication, validation, and response behaviors.
  • Frontend Integration Testing - Simulates a predictable local data source to test how frontend applications handle various API responses.
  • API Debugging and Mocking - Creates fake REST APIs with zero coding.
  • 开发者工具 - Mock REST API generator for rapid prototyping.
  • HTTP Clients - Instant mock REST API from JSON files.
  • Testing and Debugging - Tool for serving REST APIs from static JSON files.
  • 测试框架 - Zero-code REST API mock server.
  • 模拟数据( Mock ) - Listed in the “模拟数据( Mock )” section of the Awesome Frontend awesome list.
  • Node.js - Listed in the “Node.js 项目” section of the Great Open Source Project awesome list.

Star 历史

typicode/json-server 的 Star 历史图表typicode/json-server 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

typicode/json-server 是做什么的?

json-server is a development toolset used to simulate a full REST API from a JSON file. It functions as a customizable mock API server that allows for the simulation of CRUD operations and resource relationships without the need to write backend code.

typicode/json-server 的主要功能有哪些?

typicode/json-server 的主要功能包括:Dynamic REST API Generators, API Mocking Servers, JSON-Based Persistence, Data Query Filters, Query Parameter Filters, Relational Resource Mapping, Data Mocking, Mock State Management。

typicode/json-server 有哪些开源替代品?

typicode/json-server 的开源替代品包括: mockoon/mockoon — Mockoon is an HTTP API simulation platform and design tool used to create fake API endpoints that simulate server… easy-mock/easy-mock — Easy Mock is a tool for API mocking and simulation that allows for the creation of fake server responses using… miragejs/miragejs — Mirage JS is a browser-based mock server and client-side API simulator designed for JavaScript application… nuysoft/mock — Mock is a JavaScript API mocking tool and network request interceptor designed to decouple front-end development from… codeigniter4/codeigniter4 — CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web… theorchid/platform — Platform is a framework for building back-office applications and administrative dashboards using Laravel. It…

Json Server 的开源替代方案

相似的开源项目,按与 Json Server 的功能重合度排序。
  • mockoon/mockoonmockoon 的头像

    mockoon/mockoon

    8,080在 GitHub 上查看↗

    Mockoon is an HTTP API simulation platform and design tool used to create fake API endpoints that simulate server responses without a backend. It functions as an OpenAPI mock server tool and a JSON API mocking utility, allowing for the rapid iteration of API contracts and the generation of response templates. The project distinguishes itself through a combination of stateful mocking, using a local JSON database to simulate CRUD operations, and the ability to run as a headless API mock server via a command line interface. It supports real-time collaborative editing and AI-assisted prototyping

    TypeScriptapiapplicationdesktop
    在 GitHub 上查看↗8,080
  • easy-mock/easy-mockeasy-mock 的头像

    easy-mock/easy-mock

    9,026在 GitHub 上查看↗

    Easy Mock is a tool for API mocking and simulation that allows for the creation of fake server responses using schemas. It enables the generation of mock API data and the implementation of OpenAPI specifications to align development with technical contracts. The project supports collaborative API design through a shared workspace where team members can synchronize and manage mock endpoints. It also features specification-driven bootstrapping, which automatically constructs mock environments by importing standard API definition files. The system provides API development proxying to forward re

    JavaScriptdata-generatoreasy-mockjavascript
    在 GitHub 上查看↗9,026
  • miragejs/miragejsmiragejs 的头像

    miragejs/miragejs

    5,527在 GitHub 上查看↗

    Mirage JS is a browser-based mock server and client-side API simulator designed for JavaScript application development. It functions as a mocking tool that intercepts network requests to simulate backend API behavior, allowing developers to build and test frontend interfaces without requiring live backend infrastructure. The tool provides a simulation layer that mimics REST endpoints to facilitate rapid prototyping of user flows and application logic. It enables the creation of fake server responses directly within the web browser to verify how an application handles various data scenarios an

    JavaScript
    在 GitHub 上查看↗5,527
  • nuysoft/mocknuysoft 的头像

    nuysoft/Mock

    19,607在 GitHub 上查看↗

    Mock is a JavaScript API mocking tool and network request interceptor designed to decouple front-end development from back-end progress. It functions as an API simulation tool and mock data generator, allowing developers to build user interfaces and high-fidelity prototypes by mimicking the request and response cycle without a live server. The system provides a mechanism for intercepting outgoing HTTP calls and returning simulated data. It enables front-end prototyping by generating synthetic datasets to validate application behavior during automated testing cycles and development. Capabilit

    JavaScript
    在 GitHub 上查看↗19,607
查看 Json Server 的所有 30 个替代方案→