Skip to content

Mocking GUIThe Mocking GUI for MSW

Manage your API mocks with an intuitive GUI panel.

What is Mocking GUI?

Mocking GUI is a GUI library based on MSW (Mock Service Worker). It provides an intuitive interface to easily mock and test APIs during development.

Key Features

  • Zero Config: Seamless integration with MSW.
  • Intuitive Interface: Manage handlers without complex code.
  • Swagger Automation: Generate mocks instantly from OpenAPI/Swagger.
  • Type Safe: Full TypeScript support.

Quick Start

Start by installing the package in your project.

bash
pnpm add @kakaocloud/mocking-gui

Initialize MSW configuration:

bash
npx msw init <PUBLIC_DIR> [options]

Wrap your application with MockingGUIBoundary:

tsx
import { MockingGUIBoundary } from '@kakaocloud/mocking-gui/browser';

function App() {
  return (
    <MockingGUIBoundary>
      <YourAppContent />
    </MockingGUIBoundary>
  );
}
Read the Documentation →

Examples

Check out our examples to get started quickly.

Next.js (App Router)

Example using Next.js App Router with Mocking GUI.

View Example →

React (Vite)

Simple React SPA example built with Vite.

View Example →

Released under the MIT License.