{"id":13625379,"url":"https://github.com/mswjs/examples","last_synced_at":"2025-05-15T02:05:35.358Z","repository":{"id":38134467,"uuid":"264636930","full_name":"mswjs/examples","owner":"mswjs","description":"Examples of Mock Service Worker usage with various frameworks and libraries.","archived":false,"fork":false,"pushed_at":"2024-11-14T11:33:22.000Z","size":4190,"stargazers_count":701,"open_issues_count":24,"forks_count":212,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-04-15T00:47:20.782Z","etag":null,"topics":["api","example","examples","graphql","handler","interceptor","mock-service-worker","mocking","msw","request","response","rest","usage"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mswjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"mswjs","open_collective":"mswjs"}},"created_at":"2020-05-17T10:23:47.000Z","updated_at":"2025-04-04T15:04:15.000Z","dependencies_parsed_at":"2023-01-21T13:20:17.129Z","dependency_job_id":"a132fa78-8963-462a-a799-25a584ee99b6","html_url":"https://github.com/mswjs/examples","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mswjs%2Fexamples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mswjs%2Fexamples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mswjs%2Fexamples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mswjs%2Fexamples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mswjs","download_url":"https://codeload.github.com/mswjs/examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254259369,"owners_count":22040819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","example","examples","graphql","handler","interceptor","mock-service-worker","mocking","msw","request","response","rest","usage"],"created_at":"2024-08-01T21:01:54.775Z","updated_at":"2025-05-15T02:05:35.326Z","avatar_url":"https://github.com/mswjs.png","language":null,"readme":"# Examples\n\nA collection of usage examples of [Mock Service Worker](https://github.com/mswjs/msw).\n\n### JavaScript frameworks\n\n- [Angular](./examples/with-angular) (Jest, Cypress)\n- Next.js\n- React Native\n- [Remix](./examples/with-remix) (Playwright)\n- SolidJS\n- [Svelte](./examples/with-svelte/) (Vitest, Playwright)\n- [Vue](./examples/with-vue) (Vitest, Cypress)\n\n### Test frameworks\n\n- Cypress\n- [Jest](./examples/with-jest)\n- [Jest (JSDOM)](./examples/with-jest-jsdom)\n- [Karma](./examples/with-karma)\n- [Playwright](./examples/with-playwright)\n- [Vitest](./examples/with-vitest) / [Vitest (CommonJS)](./examples/with-vitest-cjs)\n\n### Other tools\n\n- Storybook\n\n## Reading examples\n\nEach example is a standalone repository featuring the usage of MSW with a certain framework or tool. Follow the instructions written in the `README.md` of respective examples to integrate MSW with those particular technologies. Some examples have separate instructions for client-side and server-side integrations. You can choose either or _both_, depending on where you wish to gain control over the network with MSW. **We highly recommend implementing both client-side and server-side interception** to guarantee seamless development and testing experience.\n\n## Cloning examples\n\nEach example can be forked immediately with CodeSandbox. To do so, click on the \"Edit on CodeSandbox\" button in the `README.md` of the respective example. This will load it in the cloud, allowing you to experiment with the integration and create reproduction cases easier.\n\n![Edit in CodeSandbox example](./edit-in-codesandbox.jpg)\n","funding_links":["https://github.com/sponsors/mswjs","https://opencollective.com/mswjs"],"categories":["Others"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmswjs%2Fexamples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmswjs%2Fexamples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmswjs%2Fexamples/lists"}