Quick Start
Pick the setup that matches your stack. All flows share the same mock files.
1. Create a mock file
Create mock/users.get.json:
json
{
"id": 1,
"name": "Ada"
}2. Choose a path
- Vite plugin — recommended for Vite dev and preview.
- Webpack plugin — integrates with webpack-dev-server.
- Hono adapter — run mocks in any Hono runtime.
- Cloudflare Worker — deploy with the Worker entry.
- Node.js API — call the runtime directly in Node.
- Server middleware — plug into existing servers.
Playground defaults to /__mokup in Vite dev.