You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A high-performance, self-healing API gateway with intelligent rate limiting, circuit breaking, real-time analytics, and a modern React dashboard. Routes requests to microservices, enforces security policies, and provides centralized monitoring.
Built with Node.js, Express, MongoDB, Redis, React, and Socket.io.
Features
Gateway Core
Request Routing & Proxying — path-based routing with wildcard support, weighted round-robin load balancing, and header injection (X-Gateway-Id, X-Request-Id, X-Trace-Id)
Adaptive Rate Limiting — Redis-backed token bucket with per-client/IP/API-key limits that dynamically adjust based on backend health and circuit state
Circuit Breaker — three-state (CLOSED → OPEN → HALF_OPEN) breaker with configurable failure threshold, auto-recovery, and real-time alert notifications
Health Monitoring — periodic HTTP probes with health scores (0–100), status classification (healthy/degraded/unhealthy), and automatic unhealthy-backend exclusion
DDoS Protection — auto-disables routes exceeding a configurable requests-per-minute threshold
Distributed Tracing — W3C Traceparent-compatible trace ID propagation with end-to-end latency measurement
Structured Logging — Winston logger with async MongoDB persistence, 30-day TTL, and per-request structured data
Analytics Aggregation — background aggregation into minute/hour/day buckets with percentile calculations (p50/p95/p99)
Client Behavior Profiling — tracks request patterns, violation counts, and behavior scores with automatic blocking of abusive clients
Alert System — creates alerts for circuit breaker changes, DDoS events, and high error rates; dispatches via dashboard, email (SMTP), and webhooks
Authentication & Security
better-auth integration with email/password, JWT sessions, and admin roles
API Key authentication with SHA-256 hashing and scoped access
Helmet.js security headers, CORS, input sanitization, and request body size limits
Real-time Dashboard
Socket.io WebSocket server with /dashboard namespace for live traffic, latency, error, circuit, alert, and log events
SSE fallback for live log streaming
Overview — metric cards, live traffic chart, top endpoints, circuit breaker status, recent alerts
A high-performance API Gateway with intelligent rate limiting, authentication, and real-time analytics. Routes requests to microservices, enforces security policies, and provides centralized monitoring. Built with Node.js, Redis, and PostgreSQL.