Mock any API from Chrome DevTools

wemock records your page's API calls, turns any call into a mock with one click, and serves it back to the page. Switch between an empty list, a server error or a slow network in one click.

Free and open source (MIT). Version 1.6.0. Not on the Chrome Web Store yet: load it from source, as the README explains.

See it in DevTools

The Log: every call, and the mock that answered it
The Log: every call, and the mock that answered it
A mock that answers with code
A mock that answers with code
The Test bar: which mock answers this URL?
The Test bar: which mock answers this URL?
A SignalR hub, mocked with no server
A SignalR hub, mocked with no server
One click to another scenario
One click to another scenario

What it does

Record, then replay

"Mock this" on one call, or "Save as scenario" on a whole list. A call to another site keeps its host.

Scenarios

Keep "empty list", "server down" and "slow network" side by side, and switch in one click, with Undo.

Match and fill

URL patterns, GraphQL names, and conditions on a query, a header or the JSON body. Fill a body with {{params.id}} or {{uuid}}.

Sequences and code

Answer each call differently: pending, pending, done. Or write the reply in JavaScript, run in a sandbox.

WebSocket and SignalR

Mock a socket with a timeline of messages and replies, or turn a real connection into a mock.

Import

Bring in a HAR file from the Network tab, an OpenAPI or Swagger file, or Mokku's export.

Your data stays in your browser

wemock has no server and no analytics. It runs on localhost, and on another site only after you switch it on there.

Read the privacy policy