# Mock Service Worker (MSW) vs Nock

| Attribute | Mock Service Worker (MSW) | Nock |
|---|---|---|
| **vioscaleAI score** | 60.5 (79% (high)) | 55.7 (67% (medium)) |
| activity.commits_last_30d | 15 | 3 |
| adoption.dependent_repos | 11,851 | 130,286 |
| adoption.github_stars | 18,290 | 13,128 |
| content.faq | `[{"answer":"An API mocking library that intercepts network requests at the browser and Node.js levels, allowing consistent mock responses across testing frameworks, tools, and applications without requiring client-specific stubs or configuration. It is indexed under API Mocking.","source":"https://mswjs.io","question":"What is Mock Service Worker (MSW)?","confidence":0.6},{"answer":"Mock Service Worker (MSW) is open source, so it can be self-hosted and used at no licence cost. It is released under the MIT licence. Pricing changes often, so verify at source before relying on it.","source":"https://mswjs.io","question":"Is Mock Service Worker (MSW) free to use?","confidence":0.6},{"answer":"Mock Service Worker (MSW) supports the web and a command-line interface. Platforms we have not confirmed are simply not listed here rather than ruled out.","source":"https://mswjs.io","question":"What platforms does Mock Service Worker (MSW) support?","confidence":0.6},{"answer":"We have confirmed 8 integrations for Mock Service Worker (MSW), including Vitest, Playwright, Storybook, React Native, Express, fetch, axios and react-query. This is what we could verify from public sources, so the vendor may support others we have not indexed.","source":"https://mswjs.io","question":"What does Mock Service Worker (MSW) integrate with?","confidence":0.6},{"answer":"Yes. Mock Service Worker (MSW) is published under the MIT licence, a permissive licence that generally allows commercial use and modification. Licence terms can change between releases, so verify against the repository for the version you intend to use.","source":"https://github.com/mswjs/msw","question":"Is Mock Service Worker (MSW) open source?","confidence":0.95}]` | `[{"answer":"An open-source library that allows developers to test modules making HTTP requests without external dependencies by mocking server responses. It is indexed under API Mocking.","source":"https://github.com/pricing","question":"What is Nock?","confidence":0.6},{"answer":"Nock is open source, so it can be self-hosted and used at no licence cost. It is released under the MIT licence. Pricing changes often, so verify at source before relying on it.","source":"https://github.com/pricing","question":"Is Nock free to use?","confidence":0.6},{"answer":"Yes. Nock is published under the MIT licence, a permissive licence that generally allows commercial use and modification. Licence terms can change between releases, so verify against the repository for the version you intend to use.","source":"https://github.com/nock/nock","question":"Is Nock open source?","confidence":0.95}]` |
| description.long | An open-source API mocking library that uses the Service Worker API to intercept network requests in browsers and Node.js, enabling developers to mock REST, GraphQL, and WebSocket APIs for testing and development without modifying application code. | A Node.js library that intercepts HTTP requests in tests, allowing you to test modules that make HTTP calls in isolation without hitting real external services. |
| features.capabilities | `{"deployment":"embedded_library","open_source":true,"mocking_mode":"dynamic_templating","pricing_model":"open_source","market_segment":"dev-tool","openapi_import":true,"ci_cd_integration":true,"stateful_scenarios":true}` | `{"deployment":"embedded_library","open_source":true,"mocking_mode":"dynamic_templating","pricing_model":"open_source","market_segment":"dev-tool","proxy_passthrough":true}` |
| integrations.count | 8 | - |
| integrations.list | `[{"name":"Vitest"},{"name":"Playwright"},{"name":"Storybook"},{"name":"React Native"},{"name":"Express"},{"name":"fetch"},{"name":"axios"},{"name":"react-query"},{"name":"Hono","native":true},{"name":"Fastify","native":true}]` | - |
| language.primary | TypeScript | JavaScript |
| license.spdx | MIT | MIT |
| market.availability | `{"primaryMarkets":[],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}` | - |
| platform.support | `{"cli":true,"web":true}` | - |
| pricing | `{"type":"open_source","summary":"Free and open source","freeTier":true,"sourceUrl":"https://mswjs.io","retrievedAt":"2026-10-14T21:33:51.343Z"}` | `{"type":"open_source","freeTier":true,"sourceUrl":"https://github.com/pricing","retrievedAt":"2026-09-13T19:29:56.350Z"}` |
| pricing.free_tier | yes | yes |
| pricing.model | open_source | open_source |
| pricing.price_level | free | free |
| pricing.transparent | yes | - |
| release.cadence_days | 2 | 12 |
| release.history | `[{"url":"https://github.com/mswjs/msw/releases/tag/v3.0.3","date":"2026-10-10T01:37:25Z","type":"stable","version":"v3.0.3"},{"url":"https://github.com/mswjs/msw/releases/tag/v3.0.2","date":"2026-10-03T01:30:56Z","type":"stable","version":"v3.0.2"},{"url":"https://github.com/mswjs/msw/releases/tag/v3.0.1","date":"2026-09-30T12:36:57Z","type":"stable","version":"v3.0.1"},{"url":"https://github.com/mswjs/msw/releases/tag/v3.0.0","date":"2026-09-28T15:40:54Z","type":"stable","version":"v3.0.0"},{"url":"https://github.com/mswjs/msw/releases/tag/v2.15.0","date":"2026-07-08T01:43:13Z","type":"stable","version":"v2.15.0"},{"url":"https://github.com/mswjs/msw/releases/tag/v2.14.7","date":"2026-07-07T18:24:49Z","type":"stable","version":"v2.14.7"},{"url":"https://github.com/mswjs/msw/releases/tag/v2.14.6","date":"2026-05-11T09:41:54Z","type":"stable","version":"v2.14.6"},{"url":"https://github.com/mswjs/msw/releases/tag/v2.14.5","date":"2026-05-08T01:51:55Z","type":"stable","version":"v2.14.5"},{"url":"https://github.com/mswjs/msw/releases/tag/v2.14.4","date":"2026-05-07T12:26:03Z","type":"stable","version":"v2.14.4"},{"url":"https://github.com/mswjs/msw/releases/tag/v2.14.3","date":"2026-05-04T17:14:11Z","type":"stable","version":"v2.14.3"},{"url":"https://github.com/mswjs/msw/releases/tag/v2.14.2","date":"2026-04-29T15:37:39Z","type":"stable","version":"v2.14.2"},{"url":"https://github.com/mswjs/msw/releases/tag/v2.14.1","date":"2026-04-29T15:11:07Z","type":"stable","version":"v2.14.1"},{"url":"https://github.com/mswjs/msw/releases/tag/v2.14.0","date":"2026-04-29T14:12:53Z","type":"stable","version":"v2.14.0"},{"url":"https://github.com/mswjs/msw/releases/tag/v2.13.6","date":"2026-04-24T15:53:44Z","type":"stable","version":"v2.13.6"},{"url":"https://github.com/mswjs/msw/releases/tag/v2.13.5","date":"2026-04-23T01:46:05Z","type":"stable","version":"v2.13.5"},{"url":"https://github.com/mswjs/msw/releases/tag/v2.13.4","date":"2026-04-16T16:25:47Z","type":"stable","version":"v2.13.4"},{"url":"https://github.com/mswjs/msw/releases/tag/v2.13.3","date":"2026-04-14T01:44:10Z","type":"stable","version":"v2.13.3"},{"url":"https://github.com/mswjs/msw/releases/tag/v2.13.2","date":"2026-04-08T11:18:18Z","type":"stable","version":"v2.13.2"},{"url":"https://github.com/mswjs/msw/releases/tag/v2.13.1","date":"2026-04-07T18:14:15Z","type":"stable","version":"v2.13.1"},{"url":"https://github.com/mswjs/msw/releases/tag/v2.13.0","date":"2026-04-06T12:37:48Z","type":"stable","version":"v2.13.0"}]` | `[{"url":"https://github.com/nock/nock/releases/tag/v15.0.1","date":"2026-10-06T20:53:29Z","type":"stable","version":"v15.0.1"},{"url":"https://github.com/nock/nock/releases/tag/v15.0.0-beta.16","date":"2026-10-05T19:23:05Z","type":"prerelease","version":"v15.0.0-beta.16"},{"url":"https://github.com/nock/nock/releases/tag/v15.0.0","date":"2025-09-29T21:26:04Z","type":"prerelease","version":"v15.0.0"},{"url":"https://github.com/nock/nock/releases/tag/v15.0.0-beta.15","date":"2026-09-21T19:47:59Z","type":"prerelease","version":"v15.0.0-beta.15"},{"url":"https://github.com/nock/nock/releases/tag/v14.0.17","date":"2026-07-30T18:31:48Z","type":"stable","version":"v14.0.17"},{"url":"https://github.com/nock/nock/releases/tag/v15.0.0-beta.14","date":"2026-07-22T20:30:03Z","type":"prerelease","version":"v15.0.0-beta.14"},{"url":"https://github.com/nock/nock/releases/tag/v15.0.0-beta.13","date":"2026-07-22T20:25:54Z","type":"prerelease","version":"v15.0.0-beta.13"},{"url":"https://github.com/nock/nock/releases/tag/v14.0.16","date":"2026-06-26T07:56:17Z","type":"stable","version":"v14.0.16"},{"url":"https://github.com/nock/nock/releases/tag/v15.0.0-beta.12","date":"2026-05-13T17:49:47Z","type":"prerelease","version":"v15.0.0-beta.12"},{"url":"https://github.com/nock/nock/releases/tag/v15.0.0-beta.11","date":"2026-05-07T19:33:41Z","type":"prerelease","version":"v15.0.0-beta.11"},{"url":"https://github.com/nock/nock/releases/tag/v14.0.15","date":"2026-05-07T14:32:05Z","type":"stable","version":"v14.0.15"},{"url":"https://github.com/nock/nock/releases/tag/v14.0.14","date":"2026-04-30T19:55:09Z","type":"stable","version":"v14.0.14"},{"url":"https://github.com/nock/nock/releases/tag/v14.0.13","date":"2026-04-20T20:49:07Z","type":"stable","version":"v14.0.13"},{"url":"https://github.com/nock/nock/releases/tag/v14.0.12","date":"2026-04-05T20:18:44Z","type":"stable","version":"v14.0.12"},{"url":"https://github.com/nock/nock/releases/tag/v15.0.0-beta.10","date":"2026-02-27T11:45:30Z","type":"prerelease","version":"v15.0.0-beta.10"},{"url":"https://github.com/nock/nock/releases/tag/v15.0.0-beta.9","date":"2026-02-14T22:32:01Z","type":"prerelease","version":"v15.0.0-beta.9"},{"url":"https://github.com/nock/nock/releases/tag/v15.0.0-beta.8","date":"2026-02-09T20:35:05Z","type":"prerelease","version":"v15.0.0-beta.8"},{"url":"https://github.com/nock/nock/releases/tag/v14.0.11","date":"2026-02-09T19:51:20Z","type":"stable","version":"v14.0.11"},{"url":"https://github.com/nock/nock/releases/tag/v15.0.0-beta.7","date":"2025-11-29T20:46:37Z","type":"prerelease","version":"v15.0.0-beta.7"},{"url":"https://github.com/nock/nock/releases/tag/v15.0.0-beta.6","date":"2025-08-26T19:32:51Z","type":"prerelease","version":"v15.0.0-beta.6"}]` |
| security.scorecard | 6.2 | 5.4 |
| security.trust_center | - | https://github.com/security |
| security.vulnerabilities | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=npm&package_name=msw&per_page=100","last_12m":0,"max_severity":null}` | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=npm&package_name=nock&per_page=100","last_12m":0,"max_severity":null}` |

## Capabilities (API Mocking)

| Capability | Mock Service Worker (MSW) | Nock |
|---|:--:|:--:|
| **Capabilities** |  |  |
| Mocking mode | Dynamic templating | Dynamic templating |
| Stateful scenarios | ✓ | - |
| Fault chaos injection | - | - |
| Openapi import | ✓ | - |
| Proxy passthrough | - | ✓ |
| Admin API | - | - |
| Deployment | Embedded library | Embedded library |
| Legacy protocol virtualization | - | - |
| Collaboration sharing | - | - |
| Ci cd integration | ✓ | - |
| Open source | ✓ | ✓ |
| Market segment | Dev tool | Dev tool |
| Pricing model | Open source | Open source |

*Source: vioscaleAI. Generated 2026-10-16T18:33:30.989Z. "-" = undocumented, not absent.*
