aim.laouuu.win is a browser aim trainer with:
- a branded landing page and in-browser trainer
- click and tracking modes
- session history and personal records
- a Cloudflare Worker API for shared leaderboard storage
- a D1 database schema for persistent runs
index.html- frontend appsrc/worker.js- Worker API + asset servingschema.sql- D1 schemawrangler.jsonc- Cloudflare config
- Install dependencies:
npm install-
Create a D1 database and replace
REPLACE_WITH_D1_DATABASE_IDinwrangler.jsonc. -
Apply the schema:
npx wrangler d1 execute aim-web-db --file=schema.sql- Run locally:
npm run dev- Deploy:
npm run deployGET /api/healthGET /api/leaderboard?mode=clickGET /api/leaderboard?mode=trackPOST /api/sessions