How It Works
mockd runs at the edge, close to wherever your requests originate. Each project is isolated with its own state, so your endpoints, rules, and logs never interfere with each other.
Request Flow
Section titled “Request Flow”- A request arrives at
<project>.mockd.sh/<path> - mockd routes it to the correct project based on the subdomain
- The path and method are matched to an endpoint, mock rules are evaluated, and the configured response is returned
- The request is logged automatically
- Connected WebSocket clients receive the new log entry in real time
Per-Project Isolation
Section titled “Per-Project Isolation”Each project operates independently with its own:
- Endpoints and mock rules — no conflicts between projects
- Request logs — scoped to the project
- WebSocket connections — live updates only for the relevant project
- Storage — dedicated data store per project
Global Distribution
Section titled “Global Distribution”mockd is deployed globally at the edge. Your mock endpoints respond with low latency regardless of where the request originates.