PROVIDER - API mocking on desktop and CLI
Mockoon
Mockoon offers API mocking on desktop and CLI, generating a full route set from 1 OpenAPI import with 5 dynamic response capabilities and CI-run mocks for contract checks under MIT across 3 platforms; the gaps are paid collaboration and limited stateful APIs.
4.1pts
Detailed Notes
Pros 5 items
Cons 4 items
Service Overview
Mockoon is a tool focused on API mocking, offering both a graphical desktop client and a CLI for pipelines.
In the development tools category it is the interface simulation layer: front-end and test teams move forward against the contract before the backend exists.
Key Strengths
- Two form factors: desktop plus CLI
- OpenAPI import: whole route set in 1 go
- Dynamic responses: 5 template families
- CI ready: automated contract checks
- Cross-platform open source: 3 systems
Product Ecosystem
Platform capabilities
Route and response definition, templating and random data, latency and fault injection, CORS and proxy modes, OpenAPI import and export plus environment variables.
Integrations
Pairs with Postman, Bruno, Playwright and Jest, while the CLI plugs into GitHub Actions and GitLab CI.
Typical scenarios
Parallel front-end and backend work, offline integration with third-party APIs, failure and latency drills and contract regression tests.
Limitations
- Paid tiers: team collaboration is a subscription
- State handling: stateful APIs are limited
- Scale boundary: route sprawl raises management cost
- Protocol scope: HTTP and HTTPS only
Use Cases
- Parallel front-end and backend work (★★★★★): the core value
- Failure drills (★★★★☆): latency and faults are easy
- Contract regression (★★★★☆): CLI fits pipelines
- Stateful business simulation (★★☆☆☆): capability is limited
Pricing
| Item | Price | Notes |
|---|---|---|
| Desktop and CLI | $0 | MIT licensed with full features |
| Cloud | Per user subscription | Team sharing and cloud sync |
| Enterprise support | Contact sales | Private deployment and support |
FAQ
How is it different from Postman mocks?
Mockoon runs entirely locally, keeps data inside your network and the desktop app is free without limits.
Can the CLI run in CI?
Yes, the CLI serves mocks headlessly and exports logs.
Does it support HTTPS?
Yes, certificates can be configured for local HTTPS mocking.
Is an account required?
No, the desktop app works fully offline.
Code Examples
# Start a mock server with the CLI
npx @mockoon/cli start \
--data ./mock-data.json \
--port 3000
# Run headless in CI
npx @mockoon/cli start --data ./mock-data.json --port 3000 --daemon-off
// Route definition excerpt
{
"method": "get",
"endpoint": "users/:id",
"responses": [
{
"statusCode": 200,
"body": "{\"id\":\"{{urlParam 'id'}}\",\"name\":\"{{faker 'person.fullName'}}\"}"
}
]
}
Community & Resources
- Website: https://mockoon.com/
- Documentation: https://mockoon.com/docs/latest/
- Source repository: https://github.com/mockoon/mockoon
Articles
- 01 GitLab CI/CD Best Practices: From Beginner to Production-Grade Pipelines 07-18
- 02 Prometheus Monitoring System Setup: From Metric Collection to Alert Notifications 07-18
- 03 Ansible Automation Ops Guide: From Configuration Management to Application Deployment 07-18
- 04 Docker Beginner Tutorial: From Installation to Containerized Web Deployment 07-18
- 05 API Integration Guide: REST vs GraphQL Comparison and Selection 07-18
- 06 GitHub Actions CI/CD Tutorial: Automated Build, Test, and Deployment 07-18
- 07 Docker Compose Multi-Container Deployment: Building Complete Application Orchestration 07-18
- 08 Kubernetes Deployment Guide for Beginners: Building a K8s Cluster from Scratch 07-18
- 09 Best VS Code Extensions 2026: Boost Your Development Productivity 07-18
- 10 Frontend Toolchain 2026: Vite / Next.js / Tailwind CSS Ecosystem 07-18