{"adoption": {"forks": 619, "observed_at": "2026-08-28T04:11:26.400897+00:00", "stars": 18168}, "canonical_url": "https://ross.abutalabs.com/products/msw", "card": {"archived": false, "artifact_type": "library", "description": "Industry standard API mocking for JavaScript.", "domain": ["testing", "web-development", "frontend", "developer-tools", "apis"], "enriched": true, "function": ["mocking", "testing", "http-client", "graphql", "websocket", "developer-tools"], "health_score": 96, "homepage": "https://mswjs.io", "language": "TypeScript", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["mswjs/msw"], "name": "mswjs/msw", "platform": ["browser", "cross-platform"], "pushed_at": "2026-07-24T08:54:35+00:00", "repo": "mswjs/msw", "stars": 18168, "tags": ["api-mocking", "service-worker", "request-interception", "mock-service-worker", "test-utils", "storybook", "nodejs", "web-server"], "topics": ["msw", "mock", "mocking-framework", "service-worker", "mock-service-worker", "mocking", "mocking-library", "api-mocking", "devtools", "api", "mswjs"], "urls": [], "use_cases": ["mock rest api responses in jest or vitest tests", "intercept fetch and axios requests during development", "mock graphql queries for frontend testing", "reuse api mocks across storybook and e2e tests", "simulate network delays and error responses", "develop frontend before backend api exists", "mock websocket connections in tests"], "what_it_is": "Mock Service Worker (MSW) is an API mocking library for JavaScript that intercepts HTTP, GraphQL, and WebSocket requests in browsers via the Service Worker API and in Node.js via class extension. It lets you define request handlers once and reuse the same mocks across development, unit/integration/e2e tests, Storybook, and demos.", "when_to_avoid": ["you only need simple function/module mocking rather than network-level mocking", "you're mocking non-HTTP protocols or backend-to-backend gRPC services", "you need contract testing against real API specifications"], "when_to_choose": ["you need environment-agnostic mocks reusable across browser and Node.js", "you want mocks that don't patch your app code and stay visible in DevTools", "you're testing frontends that talk to REST, GraphQL, or WebSocket APIs", "you want a single source of truth for network behavior across tools"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/msw", "repo": "mswjs/msw", "role": "main", "score": 90}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:11:26.400897+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T17:02:08.115217+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "96bd2a0cb81425d1b23cd914c7bae931be5efe189ad5148bd54add117253e771", "fetched_at": "2026-08-28T04:11:26.400897+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mswjs/msw"}, {"content_hash": "de2eb2dc6f92472f62d4350ef57e46bfe33a303685a8719121fc286626192928", "fetched_at": "2026-08-29T08:00:27.347389+00:00", "kind": "homepage", "missing": false, "url": "https://mswjs.io"}, {"content_hash": "b9af0b92c640f3cae2ab7411cd48a285387d521d39036834f83dd56e27f5ae19", "fetched_at": "2026-08-29T08:00:27.356647+00:00", "kind": "site_page", "missing": false, "url": "https://mswjs.io/docs"}, {"content_hash": "70e1d18f6a4a14cfc12bdc9fa0eb256a6da7ea39f8cbf82b068ddccc5d2392b2", "fetched_at": "2026-08-29T08:00:27.358819+00:00", "kind": "site_page", "missing": false, "url": "https://mswjs.io/docs/quick-start"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:11:26.400897+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T17:02:08.115217+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "96bd2a0cb81425d1b23cd914c7bae931be5efe189ad5148bd54add117253e771", "fetched_at": "2026-08-28T04:11:26.400897+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mswjs/msw"}, {"content_hash": "de2eb2dc6f92472f62d4350ef57e46bfe33a303685a8719121fc286626192928", "fetched_at": "2026-08-29T08:00:27.347389+00:00", "kind": "homepage", "missing": false, "url": "https://mswjs.io"}, {"content_hash": "b9af0b92c640f3cae2ab7411cd48a285387d521d39036834f83dd56e27f5ae19", "fetched_at": "2026-08-29T08:00:27.356647+00:00", "kind": "site_page", "missing": false, "url": "https://mswjs.io/docs"}, {"content_hash": "70e1d18f6a4a14cfc12bdc9fa0eb256a6da7ea39f8cbf82b068ddccc5d2392b2", "fetched_at": "2026-08-29T08:00:27.358819+00:00", "kind": "site_page", "missing": false, "url": "https://mswjs.io/docs/quick-start"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T17:02:08.115217+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "96bd2a0cb81425d1b23cd914c7bae931be5efe189ad5148bd54add117253e771", "fetched_at": "2026-08-28T04:11:26.400897+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mswjs/msw"}, {"content_hash": "de2eb2dc6f92472f62d4350ef57e46bfe33a303685a8719121fc286626192928", "fetched_at": "2026-08-29T08:00:27.347389+00:00", "kind": "homepage", "missing": false, "url": "https://mswjs.io"}, {"content_hash": "b9af0b92c640f3cae2ab7411cd48a285387d521d39036834f83dd56e27f5ae19", "fetched_at": "2026-08-29T08:00:27.356647+00:00", "kind": "site_page", "missing": false, "url": "https://mswjs.io/docs"}, {"content_hash": "70e1d18f6a4a14cfc12bdc9fa0eb256a6da7ea39f8cbf82b068ddccc5d2392b2", "fetched_at": "2026-08-29T08:00:27.358819+00:00", "kind": "site_page", "missing": false, "url": "https://mswjs.io/docs/quick-start"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:11:26.400897+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:11:26.400897+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:11:26.400897+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T17:02:08.115217+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "96bd2a0cb81425d1b23cd914c7bae931be5efe189ad5148bd54add117253e771", "fetched_at": "2026-08-28T04:11:26.400897+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mswjs/msw"}, {"content_hash": "de2eb2dc6f92472f62d4350ef57e46bfe33a303685a8719121fc286626192928", "fetched_at": "2026-08-29T08:00:27.347389+00:00", "kind": "homepage", "missing": false, "url": "https://mswjs.io"}, {"content_hash": "b9af0b92c640f3cae2ab7411cd48a285387d521d39036834f83dd56e27f5ae19", "fetched_at": "2026-08-29T08:00:27.356647+00:00", "kind": "site_page", "missing": false, "url": "https://mswjs.io/docs"}, {"content_hash": "70e1d18f6a4a14cfc12bdc9fa0eb256a6da7ea39f8cbf82b068ddccc5d2392b2", "fetched_at": "2026-08-29T08:00:27.358819+00:00", "kind": "site_page", "missing": false, "url": "https://mswjs.io/docs/quick-start"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:11:26.400897+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:11:26.400897+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T17:02:08.115217+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "96bd2a0cb81425d1b23cd914c7bae931be5efe189ad5148bd54add117253e771", "fetched_at": "2026-08-28T04:11:26.400897+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mswjs/msw"}, {"content_hash": "de2eb2dc6f92472f62d4350ef57e46bfe33a303685a8719121fc286626192928", "fetched_at": "2026-08-29T08:00:27.347389+00:00", "kind": "homepage", "missing": false, "url": "https://mswjs.io"}, {"content_hash": "b9af0b92c640f3cae2ab7411cd48a285387d521d39036834f83dd56e27f5ae19", "fetched_at": "2026-08-29T08:00:27.356647+00:00", "kind": "site_page", "missing": false, "url": "https://mswjs.io/docs"}, {"content_hash": "70e1d18f6a4a14cfc12bdc9fa0eb256a6da7ea39f8cbf82b068ddccc5d2392b2", "fetched_at": "2026-08-29T08:00:27.358819+00:00", "kind": "site_page", "missing": false, "url": "https://mswjs.io/docs/quick-start"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:11:26.400897+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:11:26.400897+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:11:26.400897+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T17:02:08.115217+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "96bd2a0cb81425d1b23cd914c7bae931be5efe189ad5148bd54add117253e771", "fetched_at": "2026-08-28T04:11:26.400897+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mswjs/msw"}, {"content_hash": "de2eb2dc6f92472f62d4350ef57e46bfe33a303685a8719121fc286626192928", "fetched_at": "2026-08-29T08:00:27.347389+00:00", "kind": "homepage", "missing": false, "url": "https://mswjs.io"}, {"content_hash": "b9af0b92c640f3cae2ab7411cd48a285387d521d39036834f83dd56e27f5ae19", "fetched_at": "2026-08-29T08:00:27.356647+00:00", "kind": "site_page", "missing": false, "url": "https://mswjs.io/docs"}, {"content_hash": "70e1d18f6a4a14cfc12bdc9fa0eb256a6da7ea39f8cbf82b068ddccc5d2392b2", "fetched_at": "2026-08-29T08:00:27.358819+00:00", "kind": "site_page", "missing": false, "url": "https://mswjs.io/docs/quick-start"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:11:26.400897+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:11:26.400897+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T17:02:08.115217+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "96bd2a0cb81425d1b23cd914c7bae931be5efe189ad5148bd54add117253e771", "fetched_at": "2026-08-28T04:11:26.400897+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mswjs/msw"}, {"content_hash": "de2eb2dc6f92472f62d4350ef57e46bfe33a303685a8719121fc286626192928", "fetched_at": "2026-08-29T08:00:27.347389+00:00", "kind": "homepage", "missing": false, "url": "https://mswjs.io"}, {"content_hash": "b9af0b92c640f3cae2ab7411cd48a285387d521d39036834f83dd56e27f5ae19", "fetched_at": "2026-08-29T08:00:27.356647+00:00", "kind": "site_page", "missing": false, "url": "https://mswjs.io/docs"}, {"content_hash": "70e1d18f6a4a14cfc12bdc9fa0eb256a6da7ea39f8cbf82b068ddccc5d2392b2", "fetched_at": "2026-08-29T08:00:27.358819+00:00", "kind": "site_page", "missing": false, "url": "https://mswjs.io/docs/quick-start"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T17:02:08.115217+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "96bd2a0cb81425d1b23cd914c7bae931be5efe189ad5148bd54add117253e771", "fetched_at": "2026-08-28T04:11:26.400897+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mswjs/msw"}, {"content_hash": "de2eb2dc6f92472f62d4350ef57e46bfe33a303685a8719121fc286626192928", "fetched_at": "2026-08-29T08:00:27.347389+00:00", "kind": "homepage", "missing": false, "url": "https://mswjs.io"}, {"content_hash": "b9af0b92c640f3cae2ab7411cd48a285387d521d39036834f83dd56e27f5ae19", "fetched_at": "2026-08-29T08:00:27.356647+00:00", "kind": "site_page", "missing": false, "url": "https://mswjs.io/docs"}, {"content_hash": "70e1d18f6a4a14cfc12bdc9fa0eb256a6da7ea39f8cbf82b068ddccc5d2392b2", "fetched_at": "2026-08-29T08:00:27.358819+00:00", "kind": "site_page", "missing": false, "url": "https://mswjs.io/docs/quick-start"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T17:02:08.115217+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "96bd2a0cb81425d1b23cd914c7bae931be5efe189ad5148bd54add117253e771", "fetched_at": "2026-08-28T04:11:26.400897+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mswjs/msw"}, {"content_hash": "de2eb2dc6f92472f62d4350ef57e46bfe33a303685a8719121fc286626192928", "fetched_at": "2026-08-29T08:00:27.347389+00:00", "kind": "homepage", "missing": false, "url": "https://mswjs.io"}, {"content_hash": "b9af0b92c640f3cae2ab7411cd48a285387d521d39036834f83dd56e27f5ae19", "fetched_at": "2026-08-29T08:00:27.356647+00:00", "kind": "site_page", "missing": false, "url": "https://mswjs.io/docs"}, {"content_hash": "70e1d18f6a4a14cfc12bdc9fa0eb256a6da7ea39f8cbf82b068ddccc5d2392b2", "fetched_at": "2026-08-29T08:00:27.358819+00:00", "kind": "site_page", "missing": false, "url": "https://mswjs.io/docs/quick-start"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T17:02:08.115217+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "96bd2a0cb81425d1b23cd914c7bae931be5efe189ad5148bd54add117253e771", "fetched_at": "2026-08-28T04:11:26.400897+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mswjs/msw"}, {"content_hash": "de2eb2dc6f92472f62d4350ef57e46bfe33a303685a8719121fc286626192928", "fetched_at": "2026-08-29T08:00:27.347389+00:00", "kind": "homepage", "missing": false, "url": "https://mswjs.io"}, {"content_hash": "b9af0b92c640f3cae2ab7411cd48a285387d521d39036834f83dd56e27f5ae19", "fetched_at": "2026-08-29T08:00:27.356647+00:00", "kind": "site_page", "missing": false, "url": "https://mswjs.io/docs"}, {"content_hash": "70e1d18f6a4a14cfc12bdc9fa0eb256a6da7ea39f8cbf82b068ddccc5d2392b2", "fetched_at": "2026-08-29T08:00:27.358819+00:00", "kind": "site_page", "missing": false, "url": "https://mswjs.io/docs/quick-start"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 94, "longevity": 100, "rhythm": 80}, "computed_at": "2026-09-03T02:39:23.370411+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2850, "days_push": 40, "days_rel": 57, "gap_med": 3.0, "n_releases_24m": 87}, "score": 90, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}