Overview
Mock Service Worker intercepts requests at the network level using Service Workers in browsers and native Node.js modules. No server setup required, works in any framework.
When to use it
When you want to mock APIs at the network level without changing your application code. Perfect for both browser and Node.js environments.
Details
Languages & Runtimes
TypeScriptJavaScript
Node.jsBrowser
Categories
HTTP Interception
Spec Support
OpenAPI
Best For
Seamlessly mocking APIs in tests and development with client-side interception