api-mock-server

Create mock API servers with MSW, json-server, or custom handlers.

Updated Jan 24, 2026
One-click install
npx skills add https://github.com/Camilo8902/GabyCosmetics --skill api-mock-server-camilo8902
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-mock-server
Source: https://github.com/Camilo8902/GabyCosmetics/tree/main/.claude/skills/api-mock-server
Command: npx skills add https://github.com/Camilo8902/GabyCosmetics --skill api-mock-server-camilo8902

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies the process of creating mock API servers, enabling developers to test applications in isolation without relying on actual backend services.

Core Features & Use Cases

  • Flexible Mocking: Supports MSW (Mock Service Worker) for browser and Node.js, and json-server for REST APIs.
  • Customizable Handlers: Define specific request/response behaviors, including delays, error states, and GraphQL endpoints.
  • Fixture Generation: Utilize factories with libraries like Faker to create realistic test data.
  • Use Case: When developing a frontend application, use this Skill to simulate API responses for user data, product listings, or order processing, allowing parallel development of frontend and backend.

Quick Start

Use the api-mock-server skill to set up MSW with the provided handlers.

Frequently Asked Questions about api-mock-server

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up an API mock server for frontend development?

You can create an API mock server using this Skill by configuring MSW for browser and Node.js environments or json-server for REST APIs, allowing parallel frontend and backend development.

Can I mock GraphQL endpoints with MSW for testing?

Yes, you can mock GraphQL endpoints with MSW. The Skill supports customizable handlers that define specific request and response behaviors for GraphQL queries in both browser and Node.js testing environments.

What is the best way to generate realistic test fixtures for API mocking?

The best way to generate realistic test fixtures is by utilizing factories with libraries like Faker. This Skill facilitates fixture generation to create mock data that accurately simulates real API responses for your development needs.

Does this API mocking approach support simulating error states and network delays?

Yes, this API mocking approach supports simulating error states and network delays. You can define specific request and response behaviors through custom handlers to thoroughly test how your application handles adverse network conditions.

When should I use MSW versus json-server for mock APIs?

Use MSW when you need to intercept network requests at the service worker level in browsers or Node.js, and use json-server when you need a quick REST API mock server. This Skill supports both for flexible API mocking.