AI-Native Signals
10 structured event types (CIRCUIT_BREAKER_OPENED, HIGH_LATENCY, ERROR_RATE_SPIKE…) that AI agents can reason about directly — no noisy logs, no dashboards.
Detects failures, analyzes root causes with Claude, and auto-heals 80% of incidents — in under 10 minutes.
npm install -g flexgate-proxy
flexgate init # generates config/flexgate.json
flexgate migrate # sets up the database schema
flexgate start # starts gateway on :3001, Admin UI on :3000| Feature | FlexGate | Kong | AWS API GW | Nginx |
|---|---|---|---|---|
| Admin UI | ✅ Built-in, free | ✅ Enterprise only | ✅ Paid | ❌ |
| AI-native events | ✅ | ❌ | ❌ | ❌ |
| npm installable | ✅ | ❌ | ❌ | ❌ |
| Circuit breakers | ✅ Built-in | ✅ Plugin | ❌ | ❌ |
| PostgreSQL backend | ✅ | ✅ | ✅ | ❌ |
| Open source | ✅ MIT | ✅ / Enterprise | ❌ | ✅ |
Incoming Request
│
▼
┌──────────────────────────────────────┐
│ FlexGate Proxy │
│ │
│ CORS ──► Rate Limit ──► Auth │
│ │ │
│ Route Matching │
│ │ │
│ Circuit Breaker │
│ │ │
│ Upstream Request │
│ │ │
│ Metrics + Structured Logs │
└──────────────────────────────────────┘
│ │
▼ ▼
Response AI Event Bus
│
AI Incident Record
│
Claude Analysis
(root cause + fix)jade (4 CVEs), upgraded http-proxy-middleware to v3, morgan to 1.10.1GET/PUT/POST /api/settings with validation, sanitization, and backup/api/ai-incidents with Claude integrationALLOWED_ORIGINS environment variableSee the full Changelog.
Beta notice: Not recommended for production use yet. Report issues on GitHub.
npm install -g flexgate-proxy
flexgate init # generates config/flexgate.json
flexgate migrate # sets up the database schema
flexgate start # starts gateway on :3001, Admin UI on :3000FlexGate is a production-grade reverse proxy and API gateway built on Node.js. It sits in front of your upstream services and gives you intelligent traffic control, real-time observability, and AI-native incident response — all in one package.
Stop copy-pasting logs into Claude. FlexGate emits 10 structured event types (CIRCUIT_BREAKER_OPENED, HIGH_LATENCY, ERROR_RATE_SPIKE, ...) that AI agents can reason about directly — no dashboards, no noisy logs.
SSRF protection, HMAC-SHA256 API keys, tiered rate limiting (global / admin / auth), restricted CORS via ALLOWED_ORIGINS, and 0 npm vulnerabilities.
Per-upstream circuit breaking with configurable thresholds and automatic recovery. Exponential backoff retries with jitter. Never let one bad upstream take down everything.
Prometheus metrics, Winston structured JSON logs, Server-Sent Events for live dashboard streaming, and full PostgreSQL persistence for every request.
Full React dashboard built-in: manage routes, webhooks, logs, metrics, settings, and AI incidents from a single URL at http://localhost:3000.
~$5/day for AI-assisted incident response vs $50–500/day for Grafana + PagerDuty + on-call. Clean, pre-digested signals mean fewer tokens and less hallucination risk.
| Feature | FlexGate | Kong | AWS API GW | Nginx |
|---|---|---|---|---|
| Admin UI | ✅ Built-in, free | ✅ Enterprise only | ✅ Paid | ❌ |
| AI-native events | ✅ | ❌ | ❌ | ❌ |
| npm installable | ✅ | ❌ | ❌ | ❌ |
| Circuit breakers | ✅ Built-in | ✅ Plugin | ❌ | ❌ |
| PostgreSQL backend | ✅ | ✅ | ✅ | ❌ |
| Open source | ✅ MIT | ✅ / Enterprise | ❌ | ✅ |
Incoming Request
│
▼
┌──────────────────────────────────────┐
│ FlexGate Proxy │
│ │
│ CORS ──► Rate Limit ──► Auth │
│ │ │
│ Route Matching │
│ │ │
│ Circuit Breaker │
│ │ │
│ Upstream Request │
│ │ │
│ Metrics + Structured Logs │
└──────────────────────────────────────┘
│ │
▼ ▼
Response AI Event Bus
│
AI Incident Record
│
Claude Analysis
(root cause + fix)| Getting Started | Install, configure, run your first gateway |
| Guides | Routes, webhooks, Admin UI, observability, traffic control |
| AI Features | AI events, incident response playbooks, cost control |
| API Reference | Full REST API — all endpoints with request/response |
| CLI Reference | flexgate init, start, migrate, status |
| Architecture | System design, threat model, trade-offs |
| Deployment | AWS EC2, cloud comparison, production hardening |
| Contributing | Dev setup, project structure, PR guidelines |
jade (4 CVEs), upgraded http-proxy-middleware to v3, morgan to 1.10.1GET/PUT/POST /api/settings with validation, sanitization, and backup/api/ai-incidents with Claude integrationALLOWED_ORIGINS environment variableSee the full Changelog.
Beta notice: Not recommended for production use yet. Report issues on GitHub.