尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗Mobile-first fantasy F1 draft pool for 4 players. Each race weekend you draft 5 drivers; lowest cumulative finishing positions wins the season (golf-style scoring).
docs/superpowers/specs/2026-06-06-f1-fantasy-draft-pool-design.mddocs/superpowers/plans/2026-06-06-m1-draft-core.mdNext.js 16 (App Router) · TypeScript · Tailwind v4 · Vitest · Supabase (Postgres + Realtime) · Vercel.
npm install
cp .env.local.example .env.local # then paste your Supabase values
npm run dev
.env.local needs:
NEXT_PUBLIC_SUPABASE_URL= # Project URL from Supabase → Settings → API
NEXT_PUBLIC_SUPABASE_ANON_KEY= # anon public key (JWT, ~200+ chars)
SUPABASE_SERVICE_ROLE_KEY= # service_role key (JWT, ~200+ chars) — server only
SUPABASE_DB_URL= # Postgres connection string for migrations + sync script
F1_SEASON=2024
npm run db:apply # creates tables + seeds the 4 players via SUPABASE_DB_URL
npm run sync:season # fetches Jolpica + OpenF1 for every round of F1_SEASON, upserts to DB
db:apply is idempotent (CREATE IF NOT EXISTS, ON CONFLICT DO NOTHING). sync:season runs through round 24, breaking on the first empty round.
Results are synced manually — there is no scheduled or automatic sync. The commissioner hits the Sync button on /admin (which POSTs to /api/sync) to refresh a round. OpenF1 keeps a session on its paid real-time tier until ~30 min after it ends, so syncing within that window stores the provisional finishing order; syncing again once Jolpica's official classification posts (penalties applied) overwrites it.
/) — tap a player; the choice persists in localStorage./admin, commissioner only) — Sync a round, set draft order, open the draft, undo, close & score./draft) — straight 1-2-3-4 order for 5 rounds. Picks broadcast live to all devices via Supabase Realtime. Anyone can pick on behalf of an absent player; the actor is stamped separately./standings) — cumulative golf scoring across every race marked complete.A driver scores their finishing position (winner = 1, 20th = 20). A player's weekly total is the sum of their 5 drivers. Season total adds across weeks. Lower is better.
| Script | What it does |
|---|---|
npm run dev | Next dev server on http://localhost:3000 |
npm run build | Production build + typecheck |
npm test | Vitest run (pure parser / scoring / draft engine tests) |
npm run db:apply | Apply migration + seed via direct Postgres |
npm run sync:season | Backfill a full F1 season via Jolpica + OpenF1 |
See Vercel + env-var steps in MORNING.md for the current bootstrap state.
src/lib/f1/parse.ts, src/lib/scoring/score.ts, src/lib/draft/engine.ts are pure (no I/O) and carry the unit tests.src/lib/f1/sync.ts and src/lib/draft/service.ts own all DB / realtime I/O.src/components/* are presentational; src/app/**/page.tsx wires data + context.