# dreamhead/moco

Easy Setup Stub Server

Repository: https://github.com/dreamhead/moco
Canonical: https://ross.abutalabs.com/products/dreamhead-moco
Language: Java
License: MIT
License Family: permissive
Last push: 2026-05-10T02:14:56+00:00

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 81, release rhythm 48, longevity 100
- inputs: {"age_days": 5067, "days_push": 116, "days_rel": 135, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4445, forks 1080 (observed 2026-08-28T04:08:50.382455+00:00)

## What it is
Moco is an easy-setup stub framework for the JVM that spins up mock HTTP, REST, WebSocket, and SSE servers from simple JSON configuration files. It eliminates the need to deploy WARs to application servers when stubbing external HTTP-based integrations during development and testing.

## Use cases
- mock a REST API for integration tests
- stub third-party HTTP services during development
- simulate websocket and SSE endpoints
- spin up a fake server without deploying a WAR
- configure mock responses from a JSON file

## When to choose
- you need quick, config-driven HTTP stubs on the JVM
- you want to avoid deploying WARs just to mock a web service
- you need to stub REST, WebSocket, or SSE endpoints for testing

## When to avoid
- you need a general-purpose production web server
- you work outside the JVM ecosystem and prefer a non-Java mock tool
- you need contract-testing features like consumer-driven contracts

## Facets
- artifact type: framework
- maturity: active
- function: http-server, mocking, testing, api-framework, websocket
- domain: testing, web-development, developer-tools, apis
- platform: jvm, cli, cross-platform
- tags: stub-server, mock-server, http-stub, integration-testing, service-virtualization

## Member repositories
- dreamhead/moco (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:50.382455+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:20:48.548596+00:00, confidence not recorded.
  - readme: https://github.com/dreamhead/moco (fetched 2026-08-28T04:08:50.382455+00:00, sha 550be40cf038)
- Data as of 2026-08-30T08:39:29.467469+00:00.
