A modern web-based UI for managing Mockoon mock API environments. Built with Next.js 16, React 19, and Tailwind CSS.
Features β’ Installation β’ Usage β’ Development β’ API Reference
- π¨ Modern UI - Clean, dark-themed interface with real-time log streaming
- π Mockoon Powered - Built on top of Mockoon for reliable API mocking
- π Environment Management - Create, edit, and manage multiple mock API environments
- π Route Configuration - Full support for HTTP methods, headers, responses, and callbacks
- π Data Buckets - Create and manage reusable data buckets for your mocks
- π OpenAPI Import - Import OpenAPI/Swagger specifications to auto-generate mock environments
- π Real-time Logs - Server-Sent Events (SSE) powered live log streaming
- π³ Docker Ready - Includes Dockerfile and docker-compose for containerized deployment
- π Dark Mode - Built-in theme support with dark mode by default
- Bun >= 1.0.0 (recommended) or Node.js >= 18
- PM2 (installed as dependency)
git clone https://github.com/yourusername/mockoon-cli-ui.git
cd mockoon-cli-uibun installbun run devOpen http://localhost:3000 with your browser to access the UI.
- Click the "+" button in the sidebar to create a new environment
- Configure the environment name, hostname, and port
- Add routes, responses, and data buckets as needed
- Click the import button in the sidebar
- Paste your OpenAPI/Swagger JSON specification
- The environment will be automatically created with all routes
- Use the play/stop buttons to start and stop individual mock servers
- View real-time logs in the log panel at the bottom
- Monitor server status in the sidebar
| Command | Description |
|---|---|
bun run dev |
Start development server |
bun run build |
Build for production |
bun run start |
Start production server |
bun run lint |
Run ESLint |
bun run test |
Run tests |
bun run test:watch |
Run tests in watch mode |
bun run test:coverage |
Run tests with coverage report |
mockoon-cli-ui/
βββ app/ # Next.js App Router
β βββ api/ # API routes
β β βββ action/ # PM2 process control
β β βββ environments/ # CRUD operations
β β βββ logs/ # Log streaming (SSE)
β βββ layout.tsx # Root layout
β βββ page.tsx # Home page
βββ components/ # React components
β βββ Dashboard.tsx # Main application component
β βββ RouteEditor.tsx # Route configuration editor
β βββ RouteList.tsx # Route listing component
β βββ Sidebar.tsx # Environment sidebar
β βββ LogPanel.tsx # Real-time log viewer
β βββ ...
βββ data/ # Environment JSON files
βββ lib/ # Utility libraries
βββ scripts/ # Server scripts
βββ types/ # TypeScript definitions
βββ images/ # Static images
- Next.js 16 - React framework with App Router
- React 19 - UI library
- Tailwind CSS 4 - Utility-first CSS
- Monaco Editor - Code editor for responses
- Mockoon - API mocking engine
- PM2 - Process manager for mock servers
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/environments |
List all environments |
POST |
/api/environments/create |
Create new environment |
POST |
/api/environments/import |
Import environment from JSON |
POST |
/api/environments/import-openapi |
Import from OpenAPI spec |
PUT |
/api/environments/update |
Update environment settings |
DELETE |
/api/environments?filename= |
Delete environment |
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/environments/routes |
Get routes for environment |
POST |
/api/environments/routes |
Add new route |
PUT |
/api/environments/routes |
Update route |
DELETE |
/api/environments/routes |
Delete route |
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/action |
Get server status |
POST |
/api/action |
Start/stop servers |
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/logs/stream |
SSE stream for real-time logs |
docker-compose up -ddocker build -t mockoon-cli-ui .
docker run -p 3000:3000 mockoon-cli-ui| Variable | Description | Default |
|---|---|---|
NODE_ENV |
Environment mode | development |
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Mockoon - The amazing API mocking tool this project is built upon
- Next.js - The React framework for production
- Tailwind CSS - For the beautiful styling
Made with β€οΈ by the Mockoon CLI UI contributors




