Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings
mswjs

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
@mswjs

Mock Service Worker

Industry standard API mocking for JavaScript.

Mock Service Worker banner

Mock Service Worker is an API mocking library for browser and Node.js that uses a Service Worker to intercept requests that actually happened. This means no request client stubs and unmatched resilience when it comes to request integrity, as your app now performs requests the same way it does in production.

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 thecore module with the essentials that everybody could use, and provide a set of standaloneextensions that enable specific workflows and push the developer experience even further.

Native extensions

PackageDescription
@msw/dataModel and query your mock data (fixtures).
@mswjs/sourceGenerate request handlers from various sources (HAR files, OpenAPI documents).
@mswjs/http-middlewareSpawn an HTTP server from your request handlers.

Third-party extensions

PackageDescription
@msw/playwrightOfficial Playwright integration.
msw-storybook-addonOfficial Storybook add-on.

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.

👉Support Mock Service Worker via GitHub Sponsors

By becoming a baker you help us ensure a bright future for the project. We value and treasure every contribution, big or small. Thank you.

PinnedLoading

  1. mswmswPublic

    Industry standard API mocking for JavaScript.

    TypeScript 17.3k 563

  2. examplesexamplesPublic

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

    712 210

  3. datadataPublic

    Data querying library for testing JavaScript applications.

    TypeScript 951 61

  4. interceptorsinterceptorsPublic

    Low-level network interception library.

    TypeScript 617 148

  5. msw-storybook-addonmsw-storybook-addonPublic

    Mock API requests in Storybook with Mock Service Worker.

    TypeScript 469 43

  6. http-middlewarehttp-middlewarePublic

    Spawn an HTTP server from your request handlers or apply them to an existing server using a middleware.

    TypeScript 121 12

Repositories

Loading
Type
Select type
Language
Select language
Sort
Select order
Showing 10 of 23 repositories

[8]ページ先頭

©2009-2025 Movatter.jp