For Developers

FluxGate

Open-source API gateway for microservices. Ship faster with zero-config routing, inline rate limiting, and a hot-reload plugin runtime.

fluxgate init --template=express-ts
fluxgate dev --mock-db=sqlite
✓ 12 routes mounted | 3 plugins active | 0ms cold start
Read the Docs View GitHub Repo
Developer Experience

Stop wrestling with boilerplate. Start shipping endpoints.

FluxGate handles the heavy lifting so you can focus on business logic. Automatic request validation, OpenAPI spec generation, and structured logging are baked into the core.

Zero-Config Request Parsing

Automatically deserialize JSON, form-data, and multipart payloads. FluxGate validates against your Zod or Pydantic schemas before your handler ever runs, catching type mismatches at the edge.

Inline OpenAPI Generation

Decorate your route handlers with @fluxgate.route to auto-generate versioned OpenAPI 3.1 specs. Syncs directly with Swagger UI and Postman collections on every npm run build.

Structured JSON Logging

Every request gets a trace ID, latency bucket, and correlation context. Output integrates natively with Datadog, Loki, and CloudWatch without extra middleware.

Local Testing & Simulation

Simulate production traffic on your machine.

Reproduce edge cases before they hit staging. FluxGate’s local simulator mirrors your exact gateway configuration, including rate limits, circuit breakers, and header transformations.

Traffic Replay Engine

Export production request payloads with fluxgate export --env=prod and replay them locally. Test idempotency keys, retry logic, and pagination edge cases without touching a live database.

Deterministic Mock Services

Spin up fluxgate mock --service=payment-v2 to simulate third-party APIs with configurable TTL, latency injection, and fault tolerance. Perfect for testing circuit breaker thresholds.

Hot-Reload Configuration

Change rate limits, CORS policies, or JWT validation rules in your YAML config and see them apply instantly. No container rebuilds, no gateway restarts.

Plugin SDK

Extend the gateway without forking the core.

Write custom middleware in TypeScript, Go, or Rust. The Plugin SDK provides a typed lifecycle API with isolated memory pools, ensuring your custom logic never blocks the main event loop.

Typed Lifecycle Hooks

Hook into onRequest, onResponse, and onError with strict TypeScript interfaces. Access request headers, response bodies, and auth tokens without casting or unsafe wrappers.

Isolated Execution Context

Plugins run in sandboxed WebAssembly modules or separate worker threads. A memory leak in your custom rate-limiter plugin won’t crash your invoice service.

Public Registry & CLI

Publish plugins to npm @fluxgate/plugins or install community packages like @fluxgate/stripe-webhook-verify and @fluxgate/graphql-batch with a single CLI command.

Explore Plugin SDK Browse Community Plugins