Infrastructure · Ramble2Script
A server-side proxy that holds the Groq API key and adds per-user rate limiting — the unlock for public beta. Without it, the API key would be exposed in client JS, and abuse would burn through credits within hours.
The Worker authenticates each request via Supabase JWT, checks usage against a KV-stored rate limit, then forwards the request to Groq. Built lean — fewer than 200 lines, deploys instantly via Wrangler. This was the gate between R2S as a personal tool and R2S as something other people could touch.