Install
msw
The industry standard for API mocking in JavaScript.
3.0.8Latest, 26 Nov 2026
151MDownloads, last month
0Advisories on the latest
0Advisories, all versions
MITLicence
18KStars
6.2/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
In the news
- Mocking an API you don't own: patching fetch/XHR in the page, then exporting the mock to Playwright and MSW dev.to, 3 Dec 2026
- msw-fetch-mock: Undici-Style Fetch Mocking for MSW dev.to, 26 Nov 2026
- From a Single OpenAPI Spec to Typed Fetch, TanStack Query v5 Hooks, and MSW v2 Mocks in Minutes dev.to, 24 Nov 2026
- Mocking APIs for frontend development: MSW vs Prism vs spec-driven mocks powerduck.com, 30 Oct 2026
- 🚀Supercharging Docusaurus with MSW: Mock APIs for Live, Interactive Docs dev.to, 21 Sep 2025
On Hacker News
- MSW 2.0 – Mock Service Worker 188 points, 55 comments, 23 Oct 2023
Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.