counterfact/api-simulator ? reverse-engineered prompt

Reverse engineered prompt

Build me a tool that takes an OpenAPI spec and turns it into a local mock API I can run right away.

I want to point it at an OpenAPI URL or file, have it generate editable routes and sample response types, then start a local server I can use while the real backend is still being built. It should be easy to customize responses for happy paths, errors, and weird edge cases, and it should support shared state across requests so I can simulate more realistic behavior. If possible, let me choose some endpoints to proxy to a real backend and keep the rest mocked.

I’d also like a simple way to inspect and try the API in a browser, like a Swagger page, and clear startup instructions so I can run it in one command from a fresh folder. If you need to look up current docs or best practices online, feel free to.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab