awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
dreamhead avatar

dreamhead/moco

0
View on GitHub↗
4,446 stars·1,084 forks·Java·MIT·16 views

Moco

moco is a multi-protocol mock server and programmable API stub used to simulate HTTP, REST, WebSocket, and Server-Sent Events endpoints. It enables the creation of fake backend services to facilitate development and integration testing without requiring a live server.

The project distinguishes itself through its ability to act as a network traffic replay tool, capturing real request-response pairs via a proxy and playing them back locally. It also supports bidirectional communication simulations, including WebSocket server simulation and SSE stream simulation with configurable delivery delays.

The tool provides a broad set of capabilities for request matching and response management, including attribute-based filtering, structured data validation via JSONPath and XPath, and hierarchical resource modeling. It supports dynamic content generation through templates and sequential response state machines, and can simulate network conditions using artificial latency.

The server can be executed as a standalone service and is primarily configured using structured JSON files.

Features

  • API Simulation and Mocking - Provides a comprehensive tool for simulating API responses across multiple protocols to replace external backend dependencies.
  • Programmable Response Logic - Implements programmable request matching and response logic via JSON configurations or custom code.
  • JSON-Driven Configurations - Uses JSON files to define server behavior, request matching, and response payloads.
  • REST API Mock Servers - Simulates RESTful endpoints by mapping resource paths and HTTP methods to predefined responses.
  • WebSocket Clients and Servers - Simulates a WebSocket server that provides bidirectional communication and responses based on request content.
  • Request Matching Engines - Matches incoming requests against defined patterns based on headers, bodies, and parameters to select responses.
  • Server-Sent Events - Implements a Server-Sent Events simulator that streams multiple events to clients with configurable delivery delays.
  • API Integration Testing - Facilitates automated verification of how systems handle various API responses and sequential workflows.
  • HTTP Mock Servers - Executes a standalone HTTP or HTTPS server that serves predefined mock responses from configuration files.
  • Mock Behavior Configuration - Defines server behavior and response payloads using structured JSON files instead of hard-coded logic.
  • Programmatic Response Generation - Generates responses programmatically based on incoming request details instead of using static payloads.
  • Multi-Protocol Dispatchers - Routes incoming traffic across HTTP, WebSocket, and Server-Sent Events using a unified handling mechanism.
  • Frontend-Driven Development - Enables an iterative frontend development workflow by providing simulated backend responses and network latency.
  • Multi-Protocol Servers - Handles requests and responses across multiple diverse protocols including HTTP, REST, WebSocket, and Server-Sent Events.
  • Resource Hierarchy Models - Maps nested URI segments to specific resource entities and their associated response sets.
  • Structural Data Validators - Validates request bodies against XML or JSON structures using XPath and JSONPath to ensure correct request matching.
  • Proxy Traffic Captures - Acts as a proxy to capture remote server traffic and record it for future local simulation.
  • API Request Filters - Filters incoming requests based on URI, method, parameters, headers, cookies, or body content to match specific stubs.
  • Request Proxying - Forwards requests to a remote server and records responses for local offline playback.
  • Sequential Response Queues - Returns a predefined sequence of different responses for the same request to simulate server state transitions.
  • Network Traffic Replay Tools - Captures real request-response pairs via a proxy and replays them locally for offline debugging.
  • SSE Stream Simulators - Simulates SSE endpoints that stream multiple events to clients with configurable delivery delays.
  • Hierarchical Resource Routes - Creates sub-resources using nested URI paths to represent complex entity relationships in a mock API.
  • Network Latency Simulators - Introduces configurable artificial delays before sending responses to simulate slow network conditions.
  • WebSocket Mocking Tools - Provides a simulator for bidirectional WebSocket communication, including connection messages and event-driven responses.
  • Traffic Recorders - Captures live HTTP request-response pairs to generate local mock definitions and replay traffic.
  • Response Templating - Uses templates with variables, random numbers, and timestamps to inject dynamic content into mock responses.
  • Testing Frameworks - Concise web services for stubs and mocks.

Star history

Star history chart for dreamhead/mocoStar history chart for dreamhead/moco

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Moco

Similar open-source projects, ranked by how many features they share with Moco.
  • mock-server/mockserver-monorepoM

    mock-server/mockserver-monorepo

    4,897View on GitHub↗

    This project is a multi-protocol API simulation and mocking system designed to replace external dependencies during development and testing. It provides an API mocking server, a network traffic proxy, and specialized simulators for language model services and identity providers. The system distinguishes itself through deep AI simulation capabilities, including the emulation of language model providers and Model Context Protocol servers using JSON-RPC 2.0. It supports multi-turn conversational logic, state tracking for AI chat APIs, and the visualization of agent execution through call graphs

    Java
    View on GitHub↗4,897
  • getsentry/responsesgetsentry avatar

    getsentry/responses

    4,350View on GitHub↗

    Responses is a Python mocking library designed to intercept outgoing HTTP calls made with the Requests library to return predefined simulated responses. It functions as a request verification framework and a network simulation tool, allowing for the verification of application behavior against various API response patterns without making real network calls. The project distinguishes itself through a traffic recorder that captures real network interactions and saves them to files for deterministic replay. It further enables the simulation of complex network scenarios, including the triggering

    Pythontag-production
    View on GitHub↗4,350
  • alisoftware/ohhttpstubsAliSoftware avatar

    AliSoftware/OHHTTPStubs

    5,068View on GitHub↗

    OHHTTPStubs is an HTTP network mocking library and request interceptor used to simulate server responses for testing application behavior without a live backend. It functions as a network request stubbing tool that captures outgoing network calls and replaces them with predefined mock data, custom status codes, and headers. The library distinguishes itself through its ability to simulate a wide range of network conditions, including artificial latency and connection failures. It supports dynamic response sequencing, allowing the tool to return a series of different responses for the same requ

    Objective-Ciosmockmock-server
    View on GitHub↗5,068
  • pgte/nockpgte avatar

    pgte/nock

    13,108View on GitHub↗

    Nock is a Node.js HTTP mocking library used to intercept outgoing network requests and return predefined responses. It functions as a network request interceptor and HTTP mock server, allowing developers to simulate external API behavior for automated testing without making live network calls. The project includes an API fixture recorder to capture real network interactions and save them as reusable data files for playback. It also features a network latency simulator that introduces artificial delays to outgoing HTTP responses to verify timeout handling and race conditions. The library prov

    JavaScript
    View on GitHub↗13,108
See all 30 alternatives to Moco→

Frequently asked questions

What does dreamhead/moco do?

moco is a multi-protocol mock server and programmable API stub used to simulate HTTP, REST, WebSocket, and Server-Sent Events endpoints. It enables the creation of fake backend services to facilitate development and integration testing without requiring a live server.

What are the main features of dreamhead/moco?

The main features of dreamhead/moco are: API Simulation and Mocking, Programmable Response Logic, JSON-Driven Configurations, REST API Mock Servers, WebSocket Clients and Servers, Request Matching Engines, Server-Sent Events, API Integration Testing.

What are some open-source alternatives to dreamhead/moco?

Open-source alternatives to dreamhead/moco include: mock-server/mockserver-monorepo — This project is a multi-protocol API simulation and mocking system designed to replace external dependencies during… getsentry/responses — Responses is a Python mocking library designed to intercept outgoing HTTP calls made with the Requests library to… alisoftware/ohhttpstubs — OHHTTPStubs is an HTTP network mocking library and request interceptor used to simulate server responses for testing… pgte/nock — Nock is a Node.js HTTP mocking library used to intercept outgoing network requests and return predefined responses. It… requestly/requestly. wiremock/wiremock — WireMock is a suite of tools for service virtualization, providing mock servers for HTTP APIs and WebSocket…