Lightweight mock API server. Define endpoints in YAML, run instantly.
- Hot reload — edit
config.ymland changes apply immediately - Response templates, faker, stateful mocking, rate limiting
- Single binary, no dependencies
Docker
docker run -v $(pwd)/config.yml:/config.yml ghcr.io/saku0512/specter -c /config.ymlHomebrew (macOS / Linux)
brew tap Saku0512/specter https://github.com/Saku0512/specter
brew install spectercurl (macOS / Linux)
curl -fsSL https://raw.githubusercontent.com/Saku0512/specter/main/install.sh | bashPowerShell (Windows)
irm https://raw.githubusercontent.com/Saku0512/specter/main/install.ps1 | iexspecter init # generate config.yml
specter -c config.yml # start the serverroutes:
- path: /users
method: GET
response:
- id: 1
name: Alice- Config reference — routes, matching, templates, faker, state, rate limiting, …
- CLI reference — flags, env vars,
init/gen/validate/record - Introspection API —
/__specter/requests,/__specter/state
See config.example.yml for a full working example.
MIT