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
Everything you need to simulate complex services and ship faster, without waiting on real backends.
Mock HTTP REST, gRPC, GraphQL, WebSocket, and SMTP endpoints with a unified interface. Includes HTTP Bridge for automatic gRPC-to-REST conversion.
AI-powered intelligent data generation with RAG, smart field inference, deterministic seeding, relationship awareness, data drift simulation, and template tokens like {{uuid}} and {{faker.email}}.
Operation‑aware latency/failure profiles to test real‑world conditions.
Capture live traffic and replay scenarios to debug and benchmark.
Add custom generators, data sources, and overrides with a clean plugin system.
Web‑based interface for managing servers, overrides, and metrics.
Validate incoming requests against OpenAPI specs with deep schema resolution, supporting path, query, header, cookie, and body parameters.
Generate narrative-driven WebSocket events for real-time testing scenarios.
Enterprise-grade security with AES-256/ChaCha20 encryption for sensitive configurations.
Define your API & rules
Describe endpoints and schemas. Configure latency/failure profiles and overrides per operation.
Generate realistic data
Use built‑in tokens ({{uuid}}, {{now}}, etc.) or plug in custom generators.
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
Get the repo, run the quick start, and start shipping faster.