Instant OpenAPI mock server with chaos testing (error injection + latency), right from VS Code.
0
stars
3
commits
TypeScript
primary language
Sep 14, 2026
updated
Right-click an OpenAPI spec, get a running mock API in seconds, with built-in chaos testing (error injection + latency) so you can see how your app behaves when the network misbehaves. Works with any project, in any language, it doesn't care whether the spec is yours or a third-party service's (e.g. mocking a vendor API your Go/Python/Rust/whatever app needs to call), only that a .yaml/.yml/.json file somewhere actually looks like an OpenAPI spec.

OpenAPI 3.0 / 3.x specs. Swagger 2.0 is not supported.
.yaml/.yml/.json OpenAPI 3.x file (or run the command and pick one) to spin up a local mock server backed by Prism.Everything runs locally on your machine. No account, no cloud, no billing.
.yaml/.yml/.json in your project (excluding node_modules, vendor, and other common build/dependency dirs), type part of your spec's filename to filter it down.Authorization header if the operation requires auth (bearer/basic/API-key are auto-filled with a working dummy value). Optional query/header params are left out on purpose so the URL doesn't get cluttered, add them yourself if you need them. Edit anything freely, then hit Send Request (a spinner shows while waiting, useful once you've cranked latency up). The history below updates live (it's the same traffic as Recent Requests, with full bodies), click a row to expand its response. Copy as cURL grabs the current request (method, URL, headers, body) as a ready-to-paste curl command.| Setting | Default | Description |
|---|---|---|
microMock.port | 4010 | Preferred local port (falls back to next free port if taken). |
microMock.errorCodes | [] | Array of { code, percent } - each status code's independent chance of being returned instead of the real mock response. Edit via the sidebar rather than by hand. |
microMock.latencyMs | 0 | Artificial delay (ms) added to every response. |
A few fixtures to try Micro Mock against:
test-fixtures/sample.yaml - tiny two-endpoint spec, no auth.test-fixtures/task-manager-api.yaml - realistic multi-resource sample (users, projects, tasks, comments, pagination, filtering, enums, nested objects, required bearer auth).test-fixtures/notes-api.json - JSON-format spec (the others are YAML), uses an API key passed as a query param instead of a header.test-fixtures/petstore.yaml - the real official Swagger Petstore spec (OpenAPI 3.2), oauth2 auth.POST won't be remembered by a later GET)3 commits
TypeScript
98.4%
JavaScript
1.6%
Instant OpenAPI mock server with chaos testing (error injection + latency), right from VS Code.
0
stars
3
commits
TypeScript
primary language
Sep 14, 2026
updated
Right-click an OpenAPI spec, get a running mock API in seconds, with built-in chaos testing (error injection + latency) so you can see how your app behaves when the network misbehaves. Works with any project, in any language, it doesn't care whether the spec is yours or a third-party service's (e.g. mocking a vendor API your Go/Python/Rust/whatever app needs to call), only that a .yaml/.yml/.json file somewhere actually looks like an OpenAPI spec.

OpenAPI 3.0 / 3.x specs. Swagger 2.0 is not supported.
.yaml/.yml/.json OpenAPI 3.x file (or run the command and pick one) to spin up a local mock server backed by Prism.Everything runs locally on your machine. No account, no cloud, no billing.
.yaml/.yml/.json in your project (excluding node_modules, vendor, and other common build/dependency dirs), type part of your spec's filename to filter it down.Authorization header if the operation requires auth (bearer/basic/API-key are auto-filled with a working dummy value). Optional query/header params are left out on purpose so the URL doesn't get cluttered, add them yourself if you need them. Edit anything freely, then hit Send Request (a spinner shows while waiting, useful once you've cranked latency up). The history below updates live (it's the same traffic as Recent Requests, with full bodies), click a row to expand its response. Copy as cURL grabs the current request (method, URL, headers, body) as a ready-to-paste curl command.| Setting | Default | Description |
|---|---|---|
microMock.port | 4010 | Preferred local port (falls back to next free port if taken). |
microMock.errorCodes | [] | Array of { code, percent } - each status code's independent chance of being returned instead of the real mock response. Edit via the sidebar rather than by hand. |
microMock.latencyMs | 0 | Artificial delay (ms) added to every response. |
A few fixtures to try Micro Mock against:
test-fixtures/sample.yaml - tiny two-endpoint spec, no auth.test-fixtures/task-manager-api.yaml - realistic multi-resource sample (users, projects, tasks, comments, pagination, filtering, enums, nested objects, required bearer auth).test-fixtures/notes-api.json - JSON-format spec (the others are YAML), uses an API key passed as a query param instead of a header.test-fixtures/petstore.yaml - the real official Swagger Petstore spec (OpenAPI 3.2), oauth2 auth.POST won't be remembered by a later GET)3 commits
TypeScript
98.4%
JavaScript
1.6%