{"library":"data-mocks-server","type":"library","category":null,"description":"Data Mocks Server is a JavaScript/TypeScript library designed for creating a standalone mock HTTP server, contrasting with client-side libraries that intercept `fetch` or `XHR` requests. It's built on Express, allowing developers to define API responses and scenarios through configuration rather than network interception. The library is currently at version 10.0.2, with its latest update in July 2024, indicating active maintenance. Releases are not on a fixed schedule but appear when features or bug fixes are available, with significant gaps between major versions like v9 to v10. Key differentiators include its server-first approach, a built-in UI for dynamic scenario switching at runtime, and comprehensive TypeScript support. It's particularly useful for end-to-end testing, local development, and showcasing features without relying on a real backend.","language":"javascript","status":"active","version":"10.0.2","tags":["javascript","mocks","server","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install data-mocks-server","imports":["import { run } from 'data-mocks-server';","import { createExpressApp } from 'data-mocks-server';","import type { Mock } from 'data-mocks-server';"]},{"cmd":"yarn add data-mocks-server","imports":[]},{"cmd":"pnpm add data-mocks-server","imports":[]}],"homepage":"https://www.mock-server.com","github":"https://github.com/kenneth-gray/data-mocks-server","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/data-mocks-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/data-mocks-server/compatibility"}}