The API is written in Go (Gin). Each limiting strategy (token bucket, sliding window, quota and AI spend) is one Lua script that Redis runs atomically, so concurrent requests cannot overshoot a limit.
PostgreSQL stores accounts, API keys and usage history. Request logs are batched and flushed in the background, and a Prometheus-format metrics endpoint reports the service's health.
The dashboard is React with Vite, React Router and Chart.js. Auth uses JWTs with TOTP two-factor. Stripe and Razorpay billing code exists, but paid plan upgrades are not wired up yet.
SDKs for Node.js (published on npm), Go and Python wrap the API and fail open by default; the Node.js and Python SDKs also retry. A Cloudflare Workers limiter runs checks at the edge.
GitHub Actions runs on every pull request and every push to main: the Go build, vet and tests with the race detector, the frontend build, a syntax check of the edge workers, Terraform validation and an SDK package check. The API runs on Render as a Docker image and the dashboard on Vercel. The repository also holds a Terraform setup for AWS (ECS Fargate, RDS, ElastiCache and autoscaling) and a manual deploy workflow for it that signs in to AWS with OIDC instead of stored keys. Neither has been run yet.