Skip to content

Reference

Type surface and API contracts. The tutorial is the place to start; this section is for lookup.

PageCovers
EndpointsEndpointHandle<T> (ListHandle / RecordHandle), MockrServer
Handlershandler({ body, query, params, fn }), ctx, ctx.forward()
WebSocketws({...}), WsEndpoint, WsHandle, hooks, schemas
Middlewarelogger / delay / auth / errorInjection, custom pre / post
ScenariosNamed server states, programmatic + HTTP control
Proxy & forwardPass-through, ctx.forward() mutate-then-return
RecorderChrome extension, recorder.mocksDir, server file patching
CLI--port / --proxy / --recorder / --tui
ConfigMockrConfig shape, top-level options

MIT License