Comparison

Mock Service Worker (MSW) vs Nock

No clear leader: Mock Service Worker (MSW) (60.5) and Nock (55.7) are within the 5-point margin; treat as a tie. The attribute-by-attribute breakdown below, with a source and date on every value, is the honest way to compare them.

Machine formatsMarkdownJSONGraphQLMarkdown is open. JSON and GraphQL need a free key.
Mock Service Worker (MSW)61
Nock56
Score
vioscaleAI score
Mock Service Worker (MSW)61 / 100high · 79%
Nock56 / 100medium · 67%
Pricing
Free tier
Mock Service Worker (MSW)✓
Nock✓
Model
Mock Service Worker (MSW)open_source
Price level
Mock Service Worker (MSW)free
Nockfree
Transparent
Mock Service Worker (MSW)✓
Nock–
Integrations
Count
Mock Service Worker (MSW)8
Nock–
Adoption
Dependent repos
Mock Service Worker (MSW)11,851
Github stars
Mock Service Worker (MSW)18,290
Nock13,128
Activity
Commits last 30d
Mock Service Worker (MSW)15
Nock3
Release
Cadence days
Mock Service Worker (MSW)2
Nock12
History
Mock Service Worker (MSW)20 items
License
Spdx
Mock Service Worker (MSW)MIT
NockMIT
Language
Primary
Mock Service Worker (MSW)TypeScript
Market
Availability
Mock Service Worker (MSW)Available worldwide
Nock–
Content
Faq
Mock Service Worker (MSW)5 items

Capabilities

Feature-by-feature on the axes that matter for api mocking. “-” means undocumented, not absent.

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

What each one is

The product in its own terms, so the numbers below have context.

Mock Service Worker (MSW)

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.

Independently observed

Nock

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.

Independently observed

Pricing

List pricing as published by each vendor, with the date we read it. Always verify at the source before you buy.

Mock Service Worker (MSW)

Open sourceFree tier

Free and open source

as of verify ↗

Nock

Open sourceFree tier
as of verify ↗

Platform & deployment

Where each product runs and how it can be hosted. A dash means undocumented, not unsupported.

Platforms
Web
Mock Service Worker (MSW)✓
Nock–
CLI
Mock Service Worker (MSW)✓
Nock–

Integrations

What each product connects to. Counts come from the vendor's own integration directory where one exists.

Mock Service Worker (MSW)

10 total
  • Vitest
  • Playwright
  • Storybook
  • React Native
  • Express
  • fetch
  • axios
  • react-query
  • Hono
  • Fastify
Independently observed

Nock

Not documented yet.

Still deciding?

Mock Service Worker (MSW) or Nock: which one depends on you

A composite score cannot know your constraints. Describe them and both get re-weighted against what you actually need, with the evidence behind every position.

Free to run, no account needed to start. How the evaluation works

Comparison generated from independently-sourced facts. Every value links to its source and retrieval date. See the method.