Infrastructure · Ramble2Script
The piece that turns R2S from "tool I run on my machine" into "thing anyone can use." A Cloudflare Worker that holds the Groq API key server-side and rate-limits requests per user — without it, the key would be sitting in client JS and abuse would burn through credits in hours.
Each request gets authenticated against a Supabase JWT, checked against a KV-stored rate limit, then forwarded to Groq. Lean — under 200 lines, deploys instantly via Wrangler. This was the gate between R2S as a personal tool and R2S as something other people could touch.