{"library":"mock-json-server","type":"library","category":null,"description":"Mock JSON Server is a Node.js package designed to create simple, configurable mock REST APIs using a single JSON file. Released as version 1.3.6, with its last update approximately six years ago, it offers a straightforward solution for frontend developers needing temporary API backends during development or for prototyping. Unlike more feature-rich alternatives that dynamically generate endpoints from top-level JSON keys, `mock-json-server` requires explicit path and HTTP method definitions within its configuration JSON. It provides basic CRUD-like capabilities by returning predefined data for specific routes and methods, and supports programmatic control (start, reload, stop) in addition to a command-line interface. Its primary differentiators are its minimal setup and explicit configuration, making it suitable for simple mocking scenarios where fine-grained control over static responses per route and method is desired.","language":"javascript","status":"maintenance","version":"1.3.6","tags":["javascript","JSON","mock","server","reload","express","mock-json-server"],"install":[{"cmd":"npm install mock-json-server","imports":["import mockServer from 'mock-json-server'; // For ESM environments","const mockServer = require('mock-json-server');\nmockServer.start(data, port);","npx mock-json-server data.json --port=3000"]},{"cmd":"yarn add mock-json-server","imports":[]},{"cmd":"pnpm add mock-json-server","imports":[]}],"homepage":null,"github":"https://github.com/ajoelp/mock-json-server","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/mock-json-server","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/mock-json-server/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}