Recommended tech stack — built for scale
This analytics page uses simulated data. When you go live, replace each widget with a real data source. The stack below is optimised for high traffic, low cost, and minimal server load — static files on CDN handle 99% of requests, the database only sees writes.
Hosting & CDN
☁️
Cloudflare Pages
Free
🔒
DDoS + SSL
Included
🌍
Global edge CDN
Included
Database & Realtime
🗄️
Supabase Postgres
Free tier
⚡
Supabase Realtime
Built-in
🔴
Upstash Redis (online count)
Free tier
API & Payments
⚙️
Supabase Edge Functions
$0–$25/mo
💳
Stripe Checkout
2.9% + $0.30
📦
Cloudflare Workers KV
Free tier
Why this handles massive traffic:
Static HTML + JS on Cloudflare Pages = unlimited bandwidth at zero server cost. Supabase free tier handles 50K monthly active users with connection pooling built-in. Online count uses Upstash Redis INCR/DECR — sub-millisecond, no DB hit. Leaderboard reads are cached in Cloudflare Workers KV at the edge → ~0ms globally. The only database writes are score submissions and session creation, which happen rarely relative to reads.
Scale path: Free → Supabase Pro ($25/mo) supports 1M+ API calls/day. Add read replicas for leaderboard if needed. Cloudflare handles any DDoS automatically.