Mohock lives in your menu bar and serves mock responses straight from your OpenAPI spec. Paste a URL or choose a file, click Create, and every endpoint is answering on localhost.

OpenAPI or Swagger, from a URL or a file.
api.roastery.example/openapi.yamlEvery endpoint gets a response built from the spec itself.
10 endpoints mockedEach project gets its own mock server on localhost.
curl localhost:4010/v2/menu 200Realistic data from your spec, consistent from one request to the next. Nothing to write before your app can start calling it.

See what was mocked, what passed through, and what slipped past, each call as it happens.

Edit the JSON, regenerate the data, or serve an error instead.

Errors, empty states, slow networks, and declined payments, one switch away.

Mohock runs sandboxed, so it can’t change your Mac or your Simulators. The helper makes those changes for you. This allows you to continue calling the real API addresses, while Mohock answers.
mohock -- npm run dev to mock just that program.When the spec changes, Re-sync shows what was added, changed, or removed before you apply it.
Edited responses, custom endpoints, and settings survive every re-sync.
Add an endpoint that isn't in the spec yet, or force a status code on one that is.
An optional local proxy lets clients you configure be mocked over HTTPS, with the rest passed through.
Turn mocking on or off for a project right from the menu bar.
Your specs, mocks, and traffic stay on your Mac. No account, no analytics.
It is on its way to the Mac App Store. Until then, your spec is safe where it is.
Coming soon to theMac App Store