Create, run, and share mock REST APIs without coding. Boost productivity with an intuitive interface and powerful features.

At a Glance:

Mockoon is an open-source API mocking tool that combines a local desktop application for designing mock APIs with a CLI for headless and CI environments, plus an optional cloud service for team collaboration and data synchronization.

Overview:

Mockoon is a desktop application and CLI for designing and running mock REST APIs locally, without remote deployment or account requirements. It enables developers to simulate API endpoints with configurable responses, status codes, headers, and latencies, reducing dependency on external services during development and testing. The project supports OpenAPI compatibility, proxy forwarding mode, and request logging. A companion CLI allows running mocks in headless environments and CI pipelines, while a serverless package targets cloud function deployments like AWS Lambda and GCP Functions. An optional cloud subscription adds team collaboration, data sync, and cloud deployment capabilities.

Key Decision Points:

  • Local-first desktop tool with CLI: Developers design mock APIs through a desktop application and run them either locally via the GUI or in headless/CI environments through the npm-distributed CLI.

  • Self-hosting option through CLI: The CLI package enables running mock APIs on your own infrastructure without relying on a cloud service, as noted in the project's self-host description.

  • Serverless deployment support: A dedicated serverless NPM package allows running Mockoon APIs in AWS Lambda, GCP Functions, Firebase Functions, and similar cloud function environments.

  • Cloud collaboration is optional and paid: Team synchronization, real-time collaboration, cloud deployments, and AI-powered mocking require a Mockoon Cloud subscription.

  • Package availability across platforms: Desktop installation is supported via Homebrew (macOS), winget/Chocolatey/Windows Store (Windows), and Snap/AUR (Linux).

Core Features:

  • Unlimited mock servers and routes: Create any number of local mock APIs with configurable endpoints without restrictions.

  • Route definition control: Define HTTP methods, status codes, regex-based paths, custom headers, and file serving on each mock route.

  • CLI for headless environments: Run mocks outside the desktop application in CI pipelines or headless server environments via the npm package.

  • OpenAPI compatibility: Import or maintain alignment with OpenAPI specification formats.

  • Proxy forwarding mode: Forward unmatched requests to an upstream service while recording all entering and forwarded requests.

  • JSON templating: Generate dynamic response bodies using templating within mock definitions.

Use Cases:

  • Frontend development without backend dependencies: Developers can simulate API endpoints locally to continue client-side work before backend services are available or when rate limits block access to external APIs.

  • Integration testing in CI pipelines: Teams can run consistent mock servers through the CLI during automated test suites to verify application behavior against predictable API responses, errors, and latencies.

  • Third-party API integration simulation: Developers integrating with paid or rate-limited APIs can mock those services to test error scenarios and edge cases without consuming quotas or waiting on external availability.

  • Onboarding new team members: A pre-configured mock environment provides new developers with a consistent, reliable API surface to test and develop against immediately.

Open-Source Alternative Value:

Mockoon provides an open-source desktop application and CLI for API mocking with the ability to self-host mocks locally or in headless environments without requiring accounts or remote deployments. Unlike SaaS-only mock services, the CLI package allows developers to run mock APIs on their own infrastructure and within CI pipelines using the npm-distributed tool. The project also offers a serverless package for cloud function environments including AWS Lambda and GCP Functions, covering both local development and cloud deployment scenarios without platform lock-in.

分享XLinkedInReddit

相关工具

项目数据

Stars

8,305

Forks

461

许可证

MIT

元数据

替代对象
Postman