Skip to content
JS
Comparison

msw vs miragejs

Dev servers and API mockingPackage data 25 Sept 2026
mswv2.15.0, 8 Jul 2026

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

$ npm install msw
miragejsv0.1.48, 30 Oct 2023

A client-side server to help you build, test and demo your JavaScript app

$ npm install miragejs
MetricmswmiragejsDifference
Weekly downloads14,417,590264,223msw 54.6x higher
12-month download growth+159%+10%msw +149 pts
Gzip size---
Minified size---
Dependencies184msw 14 more
Unpacked size5.8 MB2.2 MBmiragejs 2.6x smaller
Latest release2.15.0, 8 Jul 20260.1.48, 30 Oct 2023msw 2.7 years more recent
Releases, last 12 months34--
First published18 Nov 2018--
GitHub stars18,2245,531msw 3.3x higher
Open issues33186miragejs 153 more
Open pull requests427miragejs 23 more
Contributors---
Commits, last 52 weeks1170msw higher
TypeScript typesBundledBundledSame
Module formatESM + CommonJSESM + CommonJSSame
Runtimes---
LicenseMITMITSame

Green marks the smaller size or the more recent release. Bold marks the higher count, with no judgement implied. Sizes are for the whole package per Bundlephobia. Growth compares the average of the last 4 weeks with the first 4 weeks of the 52-week series.

msw14.4m latest weekmiragejs264.2k latest week
Week of 23 Sept 2025Week of 15 Sept 2026
Weekly npm downloads, 52 weeks. Y axis starts at zero. Values are not smoothed.

msw

Major versions
  1. 0.1.018 Nov 2018
  2. 1.0.025 Jan 2023
  3. 2.0.023 Oct 2023
Last 5 releases
  1. 2.15.08 Jul 2026
  2. 2.14.77 Jul 2026
  3. 2.14.611 May 2026
  4. 2.14.58 May 2026
  5. 2.14.47 May 2026
298 releases in total, 34 in the last 12 months

miragejs

Major versions
  1. -
Last 5 releases
  1. -
Release count not fetched
msw

-

miragejs

-

msw

-

miragejs

-

  • Module formatBoth ESM + CommonJS
  • Need TypeScript types in the package itselfBoth
  • Node.js version requirementmsw: >=18; miragejs: 6.* || 8.* || >= 10.* (engines field in package.json)
  • Need the more recent releasemsw (2.15.0 on 8 Jul 2026 vs 0.1.48 on 30 Oct 2023)
  • Higher weekly npm downloadsmsw (14.4m vs 264.2k)

Each line is generated from the data above.

msw: msw npm registry, msw npm downloads, msw GitHub, msw jsDelivr. Data fetched 25 Sept 2026.
miragejs: miragejs npm registry, miragejs npm downloads, miragejs GitHub. Data fetched 25 Sept 2026.

Indexability: Indexed.