Skip to content

Developer platforms · openapi

GitHub API Mock Server

REST v3 API

A local GitHub REST v3 replica for tests and demos. Create repos, open issues, push pull requests — Carbon holds state between calls so bots and workflows can run end-to-end without touching github.com or burning your rate limit.

Quickstart

npx carbon-api emulate --catalog github

Runs on http://localhost:8787 by default. No account, no signup.

Try it

Real HTTP against the local replica.

Create a repo

curl -X POST http://localhost:8787/repos \
  -H 'content-type: application/json' \
  -d '{"name":"example"}'

List them back (state persists)

curl http://localhost:8787/repos

What's covered

Carbon compiles the entire spec — these are just the resources most integrations reach for first.

  • repos
  • issues
  • pulls
  • users

Under the hood

Everything Carbon gives you comes with this emulator — for free.

  • · Stateful CRUD — writes persist across requests.
  • · Snapshots — freeze and restore the whole world with one command.
  • · Chaos presets — inject latency, 5xx, and network errors on demand.
  • · Deterministic — the same requests produce the same responses in CI.