API Mock & Scenario Builder
Local contract simulationTurn OpenAPI or HAR into success, failure and latency scenarios with reusable test handlers.
How to use it
- 01
Import the contract
Paste OpenAPI JSON or YAML, open a HAR file, or use the complete example without contacting any captured host.
- 02
Design and run scenarios
Configure status, latency, response, probability and network failures, then simulate requests against the local contract.
- 03
Reuse the mocks
Export MSW handlers, Playwright routes, Vitest checks, a Worker example or a portable scenario manifest.
Frequently asked questions
Does this publish a hosted mock API?
No. The static page simulates locally and generates code that you run in your own development or test environment.
Will imported HAR requests be replayed?
No. Captures are parsed locally and never sent to their original hosts automatically.
Are captured credentials included in exports?
Known sensitive headers, query fields and token-shaped values are redacted before preview and generation, but you should still review every export.
Is contract validation exhaustive?
No. The simulator checks a practical local subset of request requirements and JSON Schema response structure; your production validator remains authoritative.
Related tools
Keep working with other focused browser utilities.