msw
npmv2.15.0TypeScriptSeamless REST/GraphQL API mocking library for browser and Node.js.
Overview
msw is an npm package that seamless REST/GraphQL API mocking library for browser and Node.js. The latest version is 2.15.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need seamless REST/GraphQL API mocking library for browser and Node.js and value a focused solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (63 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of msw.
Dependencies
Runtime (18)
Peer (1)
Dev (44)
Used by
Popular packages that depend on msw.
The official, opinionated, batteries-included toolset for efficient Redux development
libSQL driver for TypeScript and JavaScript
Vitest module mocker implementation
Seamless REST/GraphQL API mocking library for browser and Node.js.
Alternatives to msw
The React Framework
Delightful JavaScript Testing.
Delightful JavaScript Testing.
Delightful JavaScript Testing.
Better streaming static file server with Range and conditional-GET support
Fast, unopinionated, minimalist web framework
Promise based HTTP client for the browser and node.js
LRU and FIFO caches for Client or Server
fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS
Fast and low overhead web framework, for Node.js
Lightweight Jest compatible spy implementation
Browser running for Vitest using your browser of choice
Frequently installed together
Prettier is an opinionated code formatter
TypeScript definitions for node
An extremely fast JavaScript and CSS bundler and minifier.
React is a JavaScript library for building user interfaces.
Native-ESM powered web dev build tool
Promise based HTTP client for the browser and node.js
Next generation testing framework powered by Vite
Official React bindings for Redux
A JavaScript implementation of many web standards
Lightweight Jest compatible spy implementation
HTTP server cookie parsing and serialization
HTTP status utility
Version history
| Version | Published | License |
|---|---|---|
| 2.15.0latest | 11 days ago | MIT |
| 2.14.7 | 12 days ago | MIT |
| 2.14.6 | 2 months ago | MIT |
| 2.14.5 | 2 months ago | MIT |
| 2.14.4 | 2 months ago | MIT |
| 2.14.3 | 2 months ago | MIT |
| 2.14.2 | 2 months ago | MIT |
| 2.14.1 | 2 months ago | MIT |
| 2.14.0 | 2 months ago | MIT |
| 2.13.6 | 2 months ago | MIT |
| 2.13.5 | 2 months ago | MIT |
| 2.13.4 | 3 months ago | MIT |
| 2.13.3 | 3 months ago | MIT |
| 2.13.2 | 3 months ago | MIT |
| 2.13.1 | 3 months ago | MIT |
| 2.13.0 | 3 months ago | MIT |
| 2.12.14 | 4 months ago | MIT |
| 2.12.13 | 4 months ago | MIT |
| 2.12.12 | 4 months ago | MIT |
| 2.12.11 | 4 months ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install msw?
Run `npm install msw` to add msw to your npm project.
What license is msw released under?
msw is distributed under the MIT license.
How popular is msw?
msw has approximately 0 downloads per week and 4 known dependent packages.