A descriptive analytics site for the 2026 Shanghai International & Bilingual Schools Parents' Badminton Spring League (团体赛 — team competition only).
Live: https://badminton.inturious.com
.
├── data/ # Python data pipeline: SQLite schema, ingestion, analysis, JSON export
├── web/ # Next.js 16 static site that consumes tournament.json
└── 2026年国际双语学校-秩序册5.19.pdf # Official rulebook (source of truth for format & tiebreakers)
python seed.py seed_2026.yaml --fresh— seed teams, players, groups into SQLitepython ingest.py ties_2026.yaml --replace— ingest tie/rubber data with validationpython analyze.py— print descriptive analyticspython export_json.py— producetournament.jsonfor the web app
Source data: WeChat mini-program screenshots in data/src/, manually transcribed into data/ties_2026.yaml.
Single-page tournament microsite:
- Hero: tournament title, podium summary, journey-to-podium chart
- Standings: per-group tables with rulebook tiebreakers
- Team Spotlight: interactive dropdown, full roster + ties + pair deployments
- Pair Leaderboards: tournament-wide pair rankings per discipline
cd web
pnpm install
pnpm dev # http://localhost:3000
pnpm build # production build
web/public/tournament.json is the static data file. It's committed directly (regenerated from data/ whenever the Python pipeline runs).
Hosted on Vercel from this GitHub repo. The Vercel project's root directory is web/. Pushing to main triggers a redeploy.