Coherent data, real hop timing
Generates schema-validated JSON with matching names, emails, addresses and locales (en-IN, en-US, de-DE and 4 more), delayed by the actual hop chain behind each route.
Mocks, chaos and load simulation. All in one.
Serve OpenAPI mocks with realistic data, multi-hop gateway → service → cache → database timing, live chaos, and what-if load simulation — from one kaanal.yaml and one local port.
$kaanal demo{
"id": 42,
"firstName": "Siddharth",
"lastName": "Rao",
"email": "siddharth.rao81@example.com",
"phone": "+91 9385785563",
"city": "Kochi",
"state": "Kerala",
"pincode": "682001",
"status": "active"
}Traditional mock servers reply in 0 ms, hiding spinners, timeouts and retry storms. Kaanal shares one topology and replay engine across live mocks and virtual-time simulation.
Generates schema-validated JSON with matching names, emails, addresses and locales (en-IN, en-US, de-DE and 4 more), delayed by the actual hop chain behind each route.
Inject latency, 5xx errors, TCP resets, malformed bodies, hangs, or rate limits at any node or route. Stack named scenarios with TTLs, or cycle UI states with kaanal cycle.
Sweep traffic until p99 or errors cross your SLO, inspect per-node queues and wire bandwidth, and run kaanal sim plan to compare cloud sizing estimates.
Illustrative queueing preview. In Kaanal, kaanal sim sweep and Studio run the full discrete-event engine over your exact kaanal.yaml, including queues, timeouts, retries, breakers and cloud cost estimates.
Edit kaanal.yaml by hand or visually on the Studio canvas. Drive the exact same running instance from your terminal, Playwright tests, or CI scripts.
version: 1
seed: 42
port: 8080
nodes:
nginx:
type: gateway
flavor: nginx
proc: { p50: 1ms, p99: 3ms }
app:
type: service
spec: openapi.yaml
proc: { p50: 5ms, p99: 20ms }
db:
type: database
flavor: postgres
ops:
read: { p50: 4ms, p99: 20ms }
write: { p50: 8ms, p99: 40ms }
scan: { p50: 30ms, p99: 150ms }
edges:
- { from: nginx, to: app, net: { p50: 1ms, p99: 2ms } }
- { from: app, to: db, net: { p50: 1ms, p99: 2ms } }
endpoints:
"GET /health": { override: { status: 200, body: { ok: true } } }
traffic:
steady:
rps: 80
journeys:
- { endpoint: "GET /users/{id}", weight: 1 }# Run the built-in shop with a live chaos bar
kaanal demo
# Or generate kaanal.yaml from your own OpenAPI 3.0 file
kaanal init openapi.yaml
kaanal up -d
curl -i http://localhost:8080/users/42Compose monoliths or multi-tier microservices with concurrency limits, connection pools, NIC bandwidth, retries, circuit breakers and replicas.
Optional reverse proxy or API gateway (nginx, Envoy). Pays proc first and hosts static endpoints.
Backend microservice backed by an OpenAPI 3.0 spec, with slots, queues, CPUs and retries.
Service with inline read/write/scan ops, or outgoing database edges, or both together.
Behavioural store with read/write/scan latencies, connection pools and flavor presets.
Redis or Memcached hit/miss model. Fails open on chaos so misses fall through to the database.
Third-party HTTP dependency with its own latency, baseline error rate, pool and token bucket.
Local RS256 identity provider: serves signed JWTs on POST /login and keys at /.well-known/jwks.json.
Distributes calls across targets with round-robin, random, weighted, least-conn or p2c balancing.
Object store (S3, GCS, Blob) modelling first-byte latency, byte throughput and request limits.
Same seed produces the same response bodies and sequential failure patterns locally and in CI.
Binds 127.0.0.1 by default, guards control routes with a 256-bit Bearer token and Host checks, and makes zero outbound calls.
No real-person datasets are bundled; generated emails always use @example.com (RFC 2606).