Skip to main content

HTTP Mock Server Config Generator

Define your API routes visually and generate ready-to-use mock server configuration for MSW, json-server, or WireMock. Set methods, paths, status codes, response bodies, and optional delays to simulate slow endpoints.

✓ 60K+ developers trust DevPlaybook ✓ MSW, json-server, WireMock ✓ Simulate delays & error codes

Frequently Asked Questions

What is MSW (Mock Service Worker)?▼

MSW intercepts network requests at the service worker level in browsers, or using a custom Node server in tests. It lets you mock REST and GraphQL APIs without changing application code. It's the most popular choice for frontend integration tests with React Testing Library or Vitest.

What is json-server?▼

json-server creates a full fake REST API from a JSON file in about 30 seconds. It auto-generates CRUD endpoints for each resource in your db.json. Ideal for rapid prototyping and frontend development when the real backend isn't ready yet.

What is WireMock?▼

WireMock is a flexible API mocking tool available as a standalone server or Java library. It's popular in Java/Spring ecosystems and enterprise environments. It supports request matching by URL, method, headers, and body, as well as response templating and stateful behavior.

When should I use MSW vs json-server?▼

Use MSW for frontend testing (Jest/Vitest + Testing Library) — it intercepts fetch/XHR at the browser level with zero configuration changes. Use json-server for development mocking when you need a quick REST API with CRUD operations accessible from any tool (browser, curl, Postman). Use WireMock for Java/enterprise environments or when you need complex request matching and stateful scenarios.

How do I add a delay to simulate slow APIs?▼

Set the delay field (in milliseconds) on each route. This is useful for testing loading states, skeleton screens, and timeouts in your application. MSW uses the delay() helper from the msw package. json-server supports a global --delay flag. WireMock uses fixedDelayMilliseconds per mapping.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Related Articles

Mar 28, 2026 · 9 min read

MSW 2.0: The Best Way to Mock APIs in Frontend Tests

A complete guide to Mock Service Worker (MSW) 2.0 — setup, request handlers, Vitest and Jest integration, Storybook mocking, and best practices for realistic API mocking in frontend tests.

Mar 21, 2026 · 11 min read

API Mocking for Frontend Development: Complete Guide (2025)

How to use API mocking to develop frontend apps without a real backend. Covers MSW, JSON Server, mock services in Postman, browser-based mock APIs, and testing strategies.

Apr 2, 2026 · 10 min read

API Testing Best Practices 2026: Postman vs Insomnia vs Bruno

Complete guide to API testing in 2026. Compare Postman, Insomnia, and Bruno, learn best practices for REST and GraphQL testing, and build automation pipelines that catch regressions before production.

Mar 28, 2026 · 12 min read

Visual Regression Testing in 2026: Playwright vs Chromatic vs Percy vs Happo

A comprehensive comparison of visual regression testing tools in 2026. Playwright screenshot tests, Chromatic with Storybook, Percy CI integration, and Happo cross-browser testing — with real code examples, pricing breakdowns, and best practices for flake-free tests.

Mar 28, 2026 · 10 min read

Vitest vs Jest vs Mocha: Complete Testing Framework Comparison 2026

A comprehensive comparison of Vitest, Jest, and Mocha for JavaScript and TypeScript projects in 2026. Covers speed benchmarks, configuration, TypeScript support, mocking, code coverage, and migration strategies.

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →