In Mock Service Worker we develop an ecosystem of libraries that let you control the network while testing and developing your JavaScript applications. Unlike most API mocking solutions, we utilize Service Worker API so that your requests are intercepted after they "leave" your application. This means that your request client logic gets executed to its full extent, giving you more confidence while writing tests (no more request client stubbing!).
We strongly believe in great developer experience. That's why MSW brings previously unheard uniformity, allowing you to reuse the same mock definitions across multiple tools (Jest, Storybook, Cypress, Express) and environments (browser, Node.js, Electron, React Native). No configurations, no adapters. A single source of truth for the network behavior during the entire development flow.
Watch the "Beyond API mocking" talk from the TestJS Summit 2021 to learn about MSW, what issues it solves, and what makes it stand out.
Why sponsor us?
Mock Service Worker has changed the way hundreds of thousands of developers approach API mocking. We are truly humbled to be a go-to solution for engineers at Google, Microsoft, Spotify, Gatsby, Toyota, and countless others.
By becoming our sponsor you ensure a brighter future for our organization and the mocking ecosystem in general.
As a sponsor, you also get a bunch of benefits listed below the respective sponsor tiers on the right! →
How do we use your contributions?
This project is a result of countless unpaid after-work/weekend hours spent on the mission we believe in—making API mocking better. Even with such a schedule, we were able to pioneer and integrate patterns never before adopted in the ecosystem at such a scale. Imagine what we could do together with proper financial support for our contributors. All contributors.
By sponsoring us you're giving us the budget for the following things:
- Investigate issues;
- Brainstorm, design, and implement features;
- Compensate contributors for their work on the above;
- Write/record educational material on the library and its ecosystem;
- Support the community on Discord, StackOverflow, and Twitter.
Thank you for making these incredible things happen!
10 sponsors are funding mswjs’s work.
Featured work
-
mswjs/data
Data modeling and relation library for testing JavaScript applications.
TypeScript 461 -
mswjs/interceptors
Low-level HTTP/HTTPS/XHR/fetch request interception library.
TypeScript 261 -
mswjs/http-middleware
Spawn an HTTP server from your request handlers or apply them to an existing server using a middleware.
TypeScript 42
Select a tier
$9 a month
Select$20 a month
SelectSponsor
- Get a Sponsor badge on your GitHub profile.
- Get a shoutout from us on Twitter.
$50 a month
Select$150 a month
Select$500 a month
Select🥇 Golden sponsor
- Get your issues/feature requests prioritized by our team.
- Get your GitHub user/organization logo and link featured in the "Gold sponsors" in our README.
- Monthly 1h consulting session with one of our team members. Ask questions, review your setup, or pair program to get the most out of Mock Service Worker in your project.
- Get a special shoutout from us on Twitter.


Supporter