Skip to content
@mswjs

Mock Service Worker

Seamless REST/GraphQL API mocking for JavaScript applications.

Mock Service Worker banner

Mock Service Worker is an API mocking library for browser and Node.js that uses Service Workers to allow your requests to actually happen with no stubs, down to each tiniest request client detail, and intercept them at the network level.

Ecosystem

We favor composition in both how we write our code and how we distribute it. That's why instead of building a single monolithic package that's responsible for too many things, we distribute the core module with the essentials that everybody could use, and provide a set of standalone extensions that enable specific workflows and push the developer experience even further.

Native extensions

Third-party extensions

Support us!

This project is the result of hundreds of hours of work that our contributors spend so that you could enjoy the best API mocking experience there is to offer. If you'd like us to bring new features and mitigate issues more effectively, consider supporting us.

By becoming a baker you help us ensure a bright future for the project. Remember that any contribution counts. Thank you.

Pinned

  1. msw Public

    Seamless REST/GraphQL API mocking library for browser and Node.js.

    TypeScript 7k 195

  2. examples Public

    Examples of Mock Service Worker usage with various frameworks and libraries.

    JavaScript 245 81

  3. data Public

    Data modeling and relation library for testing JavaScript applications.

    TypeScript 195 10

  4. Low-level HTTP/HTTPS/XHR/fetch request interception library.

    TypeScript 159 35

  5. Mock API requests in Storybook with Mock Service Worker.

    JavaScript 112 13

  6. mswjs.io Public

    Official website and documentation for the Mock Service Worker library.

    TypeScript 54 64

Repositories