{"repo":"mswjs/sveltekit","free":true,"listed":false,"github":"https://github.com/mswjs/sveltekit","clone":"git clone https://github.com/mswjs/sveltekit.git","description":"Mock API requests in SvelteKit with Mock Service Worker.","language":"JavaScript","stars":12,"topics":["api","mock","msw","network","svelte","sveltekit"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"sv community add-on: @msw/sveltekit [!IMPORTANT] Svelte maintainers have not reviewed community add-ons for malicious code. Use at your discretion. Usage You can create a new SvelteKit project with this add-on using the following command: Or integrate MSW add-in into an existing project with this one: What you get - msw added as a dev dependency. - src/msw/handlers.ts or src/msw/handlers.js with shared request handlers. - Optional browser setup in src/msw/browser and src/hooks.client . - Optional Node setup in src/msw/node and src/hooks.server . - Browser worker configuration in package.json . Options environments Choose where MSW should run. This is a multiselect option. Default: browser,node Browser worker If you enable browser mocking, generate the service worker after installing dependencies:","default_branch":null,"files":null,"tree":[],"storefront":"/r/mswjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mswjs/sveltekit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}