Skip to content
JS
Package

msw

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

v2.15.0, 8 Jul 2026MITESM + CommonJSTypes: BundledDev servers and API mockingTesting
$ npm install msw

Key numbers

As of 25 Sept 2026
Weekly downloads
14.4m
+159% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
18
Direct, from package.json
Last release
2 months ago
v2.15.0
GitHub stars
18.2k
628 forks
Open issues / PRs
33 / 4
Contributors
-
Commits, last 52 weeks
117

Downloads

Last week 2026-09-15 to 2026-09-21
010m20m30mSept 2025Mar 2026Sept 2026High 21.1m (25 Aug 2026)Low 3.9m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

14,417,590 downloads last week, 74,689,837 in the last month. The 12-month change of +159% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
34298 in total
Latest version
2.15.0, 8 Jul 20262 months ago
First published
18 Nov 2018
Last push to GitHub
24 Sept 2026same day as the snapshot
Repository archived
No
Open issues
33
Open pull requests
4
Commits, last 52 weeks
117
Dependents on npm
511

Major versions

  1. v2 first release 2.0.0, 23 Oct 2023
  2. v1 first release 1.0.0, 25 Jan 2023
  3. v0 first release 0.1.0, 18 Nov 2018

Recent releases

VersionPublished
2.15.08 Jul 2026
2.14.77 Jul 2026
2.14.611 May 2026
2.14.58 May 2026
2.14.47 May 2026
2.14.34 May 2026
2.14.229 Apr 2026
2.14.129 Apr 2026
2.14.029 Apr 2026
2.13.624 Apr 2026
2.13.523 Apr 2026
2.13.416 Apr 2026
2.13.314 Apr 2026
2.13.28 Apr 2026
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=18
Runtimes
-
Unpacked size (npm)
5.8 MB
Dependencies (18)
yargscookiegraphqlrettimestatusestype-festoutvariantpicocolorsuntil-asynctough-cookiepath-to-regexp@types/statusesis-node-processheaders-polyfill@inquirer/confirm@mswjs/interceptorsstrict-event-emitter@open-draft/deferred-promise
Peer dependencies (1)
typescript
npm install msw

CDN

jsDelivr: 5.4m requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/msw@2.15.0/
  • unpkghttps://unpkg.com/msw@2.15.0/
  • esm.shhttps://esm.sh/msw@2.15.0
PackageWeekly downloadsGzipLast releaseModuleComparison
json-server356.8k-6 months agoESM onlymsw vs json-server
miragejs264.2k-2 years agoESM + CommonJSmsw vs miragejs
responselike24.6m-11 months agoESM only-
xhr-mock161.6k-6 years agoCommonJS-
@web/config-loader221.4k-2 months agoESM + CommonJS-
@web/parse5-utils195.5k-2 months agoESM + CommonJS-
@web/browser-logs164k-2 months agoESM + CommonJS-

Related

Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.