OpenAthlete
AGPLv3 endurance training platform: EU-oriented hosting, transparent CTL/ATL/TSB logic in code, self-hosting, and full export. Built in Grenoble.
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證FPL Decision: Fantasy Premier League analytics and decision support
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
Personal Fantasy Premier League analytics and decision-support application. A static Next.js front
end on Cloudflare, with Supabase Postgres and Edge Functions behind it.
Live at fpldecision.com.檢視完整 README ↗Personal Fantasy Premier League analytics and decision-support application. A static Next.js front end on Cloudflare, with Supabase Postgres and Edge Functions behind it.
Live at fpldecision.com.
roadmap.md, as is
docs/sources/fpl_app_phase_wise_build_plan.md, the original
architecture document phases 0–4 were built fromAn expected-points model runs in Postgres over the FPL API's data, and the front end turns it into decisions rather than dashboards:
TeamState, with a
replacement finder for any single pickTwo rules shape the numbers throughout. Where FPL zeroes a field between seasons, the term is dropped and the remaining weights renormalised, with a note in the UI next to the figure — never multiplied by zero and quietly shrunk. And a number is labelled for what it is: downgrades are called downgrades, an assumption is shown as its own term, and an empty result set says so rather than ranking five worse options.
main by Cloudflare's Git integrationnpm install
cp .env.example .env.local # fill in your Supabase project URL + publishable key
npm run dev
Open http://localhost:3000.
The browser only ever reads, and only over the publishable key — every write path is an Edge Function running with the service role, so the client bundle needs no other secret.
npx tsc --noEmit # typecheck — run before every commit
npm run lint
npm run build # static export to out/ — must pass before pushing
app/ — routes (/ /team /players /fixtures /news /builder /scenarios
/transfers /compare /status)lib/ — the model layer: team-state.ts plus the optimiser, lineup, scoring, squad-score,
transfer and transfer-optimiser engines. All pure, so they are testable without React or networkcomponents/ — UI components (shadcn/ui-style primitives in components/ui)supabase/migrations/ — versioned schema changessupabase/functions/ — Edge Functions (ingestion, predictions). Deno, and deliberately excluded
from tsconfig and eslint, or tsc --noEmit breaks on Deno globals.github/workflows/ — CI only (ci.yml). The deploy lives on Cloudflarewrangler.jsonc — Cloudflare Worker config: static assets from out/, no server scriptPushing to main triggers a Cloudflare build from the Git integration: npm run build, then
wrangler deploy serves out/ as static assets per wrangler.jsonc. Node comes from .nvmrc.
NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY must be Cloudflare Build
variables, not runtime bindings — a static export bakes them in at build time, and
lib/supabase/client.ts calls createClient at module scope, so a missing one fails the build
outright rather than degrading. The same two values are GitHub Secrets for ci.yml, which builds as
a quality gate without deploying.
Two things the Cloudflare setup wizard gets wrong for this project: it defaults the build command to
the OpenNext adapter (npx opennextjs-cloudflare build), which targets server-rendered Next and
fails on a static export, and it offers no base path — correctly, since the site is served from a
domain root. There is deliberately no basePath in next.config.ts any more.
Every schema change is a versioned SQL file in supabase/migrations/, applied to the Supabase
project and committed here. Migrations and function deploys go through the Supabase MCP OAuth
integration — the database password is never requested, stored, or accepted.
Source code is MIT; written content, branding and third-party data are excluded. See LICENSE.