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,即可验证所有权并自行管理介绍。
一分钟完成验证正在加载完整 README。 以下为已保存的摘录。
Invite-only site for the Winter Arc fitness competition: landing page, personal invite links,
daily reminder emails, a group arena where everyone's fighter brawls and trash-talks, a live
leaderboard with practice streaks, an admin panel for entering results, certificates and
shareable posters.
Built with Next.js 14, Supabase (database) and any SMTP mailbox (Gmail works). Hosted on Vercel.
All of it fits in free tiers for a group of 7.查看完整 README ↗Invite-only site for the Winter Arc fitness competition: landing page, personal invite links, daily reminder emails, a group arena where everyone's fighter brawls and trash-talks, a live leaderboard with practice streaks, an admin panel for entering results, certificates and shareable posters.
Built with Next.js 14, Supabase (database) and any SMTP mailbox (Gmail works). Hosted on Vercel. All of it fits in free tiers for a group of 7.
Everything about the competition lives in lib/season.ts: dates, events,
scoring caps, the weekly training plan, drills and awards. Edit it, push, and the site, emails
and admin panel follow. Scoring rules are tested in lib/scoring.test.ts (npm test).
Scoring types:
per_unit: points for every unit up to a cap. Long run is 10 pts per km, capped at 10 km.time: full 100 at or under a target time, minus points per step slower, with a floor for finishing.Every event is worth 100, so nobody's specialty outweighs the rest.
supabase/schema.sql and run it. It's safe to run again after updates. From Project Settings > API, copy the
project URL and the service_role key..env.example:
SITE_URL: only needed outside Vercel; on Vercel, links use the project's production address automaticallySUPABASE_URL, SUPABASE_SERVICE_ROLE_KEYADMIN_PASSWORD: what you'll type to open /adminSESSION_SECRET, CRON_SECRET: any long random stringsSMTP_HOST=smtp.gmail.com, SMTP_PORT=465, SMTP_USER, SMTP_PASS (the app password), MAIL_FROM
Deploy./admin, sign in, add each invitee's name and email, then press Email invite
(or Copy link to send it yourself on WhatsApp). The daily reminder goes out at 6:00 IST to
everyone who accepted (vercel.json, schedule 30 0 * * * in UTC).When people accept their invite they answer honest questions about themselves (how long they've
trained, toughest challenge, what they want to prove, most embarrassing workout moment, longest run,
most push-ups) and optional fun ones (tone, fighter name, signature move, excuse, guilty snack, hype
song, early bird or night owl, rival). Friends roast each other with those answers plus real stats. Lines live in lib/trash.ts,
questions in lib/profile.ts. Anyone can change their answers at /profile.
One quote shows per day, in a strip above the arena and in the daily email. Add or remove quotes in Admin > Bro talk; friends can add their own (up to 10 each) from the arena page. Three built-in starters rotate until the first quote is added.
| Page | Who | What |
|---|---|---|
/ | Everyone | Landing page. Personal welcome and confetti for invitees. |
/i/<token> | Invitee | Personal invite link. Remembers them and opens the page. |
/profile | Accepted invitees | Edit catchphrase and personality answers. |
/board | Accepted invitees, admin | The arena (group brawl and shared trash talk), live table, practice log, streak. |
/admin | Admin | Participants and invites, result entry per event category, baseline test, broadcast emails, awards. |
/certificate/<id> | That athlete, admin | Printable A4 certificate (print or save as PDF). |
/api/poster/<id> | Invitees, admin | 1080×1350 PNG poster for stories. /api/poster/board is the group poster. |
npm install
cp .env.example .env.local # fill in values
npm run dev