The full professional Athlete Management System — adapted for founder cognitive performance.
Live Demo · Algorithms · Getting Started
GameDay translates the same performance management tools used by NFL, NBA, and Olympic teams into the knowledge work domain. It combines wearable biometric data (HRV, sleep) with work telemetry (calendar, Slack) to produce sports-science-derived metrics — visualized on a rich dashboard with AI coaching.
- Cognitive Load Score — Weighted daily work stress (meetings 1.5x, deep work 1.0x, context switches 0.3x, Slack 0.05x, email 0.1x)
- ACWR Monitoring — Acute:Chronic Workload Ratio with EWMA smoothing. Sweet spot 0.8-1.3, danger >1.5
- PMC Chart — Performance Management Chart with CTL (fitness), ATL (fatigue), TSB (form) over 90 days
- Readiness Score — Composite of HRV, sleep quality, previous load, and rest recency
- Burnout Risk — Multi-factor probability model with contributing factor breakdown
- AI Coaching — Claude-powered weekly reports, streaming chat, and morning readiness briefs
- Integrations — Oura Ring, Google Calendar, Slack (with Terra API upgrade path)
| Algorithm | Source | Adaptation |
|---|---|---|
| ACWR (Acute:Chronic Workload Ratio) | Gabbett 2016, Williams et al. 2017 | EWMA variant, cognitive load as input |
| PMC (Performance Management Chart) | Coggan & Allen, TrainingPeaks | CTL/ATL/TSB with 1/N decay constant |
| Readiness Score | Oura/WHOOP inspired | HRV (35%) + Sleep (30%) + Load (20%) + Rest (15%) |
| Burnout Risk | Job Demands-Resources model | ACWR + HRV trend + sleep debt + rest days |
| HRV Baseline | Sports science standard | 14-day rolling median (robust to outliers) |
All algorithms are pure TypeScript with 60 unit tests covering edge cases and boundary values.
| Layer | Technology |
|---|---|
| Framework | Next.js 14 (App Router, TypeScript) |
| Database | Supabase (Postgres + RLS + Realtime) |
| Wearable | Oura API v2 / Terra API |
| Work Data | Google Calendar API + Slack API |
| AI | Claude API (coaching, reports) |
| Charts | Recharts + D3 |
| Payments | Stripe ($19.99/mo individual, $49.99/mo team) |
| Deployment | Vercel |
- Node.js 18+
- Supabase project
- API keys for integrations (Oura, Google, Slack, Anthropic, Stripe)
git clone https://github.com/lonexreb/GameDay-AMS.git
cd GameDay-AMS
npm install
cp .env.example .env.local
# Fill in your credentials in .env.localRun the migration against your Supabase project:
# Via Supabase Dashboard SQL editor, paste:
# supabase/migrations/001_initial_schema.sqlnpm run dev # Start dev server at localhost:3000
npm run test # Run 60 algorithm tests
npm run build # Production buildThe project is configured for Vercel with cron jobs in vercel.json:
daily-sync— 7:00 AM daily (pull integrations data)compute-scores— 7:30 AM daily (run algorithms)weekly-report— Monday 6:00 AM (AI coaching report)morning-check— 7:00 AM daily (readiness alerts)
src/
app/ # Next.js App Router pages & API routes
dashboard/ # Main dashboard, coaching, reports, settings
api/
cron/ # Scheduled jobs (sync, compute, report, morning check)
integrations/ # OAuth flows (Oura, Google, Slack)
stripe/ # Checkout, portal, webhook
ai/ # Streaming coaching chat
components/
dashboard/ # 7 visualization widgets
ui/ # Card, Badge primitives
lib/
algorithms/ # ACWR, PMC, readiness, burnout risk, cognitive load
ai/ # Claude API wrapper, prompts, report generator
oura/ # Oura API client & data transform
google-calendar/ # Calendar API client & work metrics extraction
slack/ # Slack API client & message counting
stripe/ # Stripe client & product config
supabase/ # Browser, server, middleware clients
supabase/migrations/ # Database schema with RLS
MIT