msw

Community

Mock APIs with Mock Service Worker.

Authormgd34msu
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill simplifies API mocking for frontend development and testing, allowing you to simulate network requests and responses without relying on a live backend.

Core Features & Use Cases

  • Network Interception: Mock REST and GraphQL APIs at the network level in both browser and Node.js environments.
  • Request Handlers: Define specific handlers for different HTTP methods (GET, POST, PUT, DELETE, PATCH) and routes, including support for query parameters, headers, and dynamic responses.
  • Testing Integration: Seamlessly integrate with testing frameworks like Vitest and Jest for robust end-to-end and unit testing.
  • Development Workflow: Develop frontend applications independently of backend availability, simulate error conditions, and test loading states.

Quick Start

Use the msw skill to set up API mocking in your React application by running npx msw init public/ --save.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: msw
Download link: https://github.com/mgd34msu/goodvibes-gemini/archive/main.zip#msw

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.