Open source • MIT or Apache-2.0

Comprehensive API mocking for REST, gRPC, GraphQL & WebSockets

Spin up realistic mock services in minutes. Generate intelligent synthetic data with RAG, inject latency & failures, and manage everything in a modern admin UI.

# Install (example) $ cargo install mockforge-cli
MockForge Admin UI screenshot

Features developers care about

Everything you need to simulate complex services and ship faster, without waiting on real backends.

Multi‑Protocol

Mock HTTP REST, gRPC, GraphQL, and WebSocket endpoints with a unified interface. Includes HTTP Bridge for automatic gRPC-to-REST conversion.

Advanced Data Synthesis

RAG-driven intelligent data generation with smart field inference, deterministic seeding, relationship awareness, and template tokens like {{uuid}} and {{faker.email}}.

Latency & Fault Injection

Operation‑aware latency/failure profiles to test real‑world conditions.

Record & Replay

Capture live traffic and replay scenarios to debug and benchmark.

Extensible Plugins

Add custom generators, data sources, and overrides with a clean plugin system.

Modern Admin UI

Web‑based interface for managing servers, overrides, and metrics.

How it works

  1. 1

    Define your API & rules

    Describe endpoints and schemas. Configure latency/failure profiles and overrides per operation.

  2. 2

    Generate realistic data

    Use built‑in tokens ({{uuid}}, {{now}}, etc.) or plug in custom generators.

  3. 3

    Run & iterate

    Start the mock server, inspect requests in the Admin UI, and fine‑tune behaviors as you build.

# Quick start (example)
$ mockforge init
✔ Created mockforge.yaml

# Add an endpoint override
$ mockforge add /users/{id} --status 200 \
  --body '{ "id": "{{uuid}}", "name": "{{name}}" }'

# Run server
$ mockforge serve --port 8080
Listening on http://localhost:8080
“MockForge let our frontend team build weeks faster by simulating gRPC services with realistic data.”

— Engineer, Early Adopter

Ready to build without waiting on backends?

Get the repo, run the quick start, and start shipping faster.

FAQ

Is MockForge open source?
Yes. It’s open‑source and permissively licensed. Contributions are welcome.
Which protocols are supported?
HTTP/REST, gRPC, and WebSockets out of the box. More via plugins.
Can I use it in CI?
Absolutely. Spin up MockForge alongside your tests to provide stable, realistic endpoints.
Does it support record/replay?
Yes. Capture live traffic, store fixtures, and replay them deterministically.