Test your reaction time against real F1 drivers. Tap the moment the lights go out — just like a real Grand Prix start.
Zero dependencies. Single HTML file. Under 30KB. 100% free on Cloudflare.
- Realistic 3D light panel with glow effects
- Authentic F1 start sequence (5 lights → lights out → GO!)
- False start detection
- Real F1 driver reaction time comparisons
- Global leaderboard (Cloudflare KV)
- Sound effects via Web Audio API (no audio files)
- Racing car animation on successful reaction
- Native share (mobile) / clipboard copy (desktop)
- Mobile-first responsive design
- Keyboard + touch + click support
Go to dash.cloudflare.com and sign up (free).
Option A: Git integration (recommended)
- Push this repo to GitHub
- In Cloudflare Dashboard → Pages → Create a project → Connect to Git
- Select this repo, set build output to
/(root) - Deploy
Option B: Direct upload
npx wrangler pages deploy . --project-name f1-lightsout- In Cloudflare Dashboard → Workers & Pages → KV
- Create a namespace called
LEADERBOARD - Go to your Pages project → Settings → Functions → KV namespace bindings
- Add binding: Variable name =
LEADERBOARD, KV namespace = the one you created
That's it! The /functions/api/leaderboard.js file automatically becomes your API endpoint.
npx wrangler pages dev . --kv LEADERBOARDOpens at http://localhost:8788
index.html → The entire game (HTML + CSS + JS, ~25KB)
functions/api/leaderboard.js → Cloudflare Pages Function (leaderboard API)
worker/index.js → Standalone Worker version (alternative)
$0/month on Cloudflare free tier:
- Pages: Unlimited static requests
- Functions: 100,000 requests/day
- KV: 100,000 reads/day, 1,000 writes/day
MIT