Skip to content
All projects
🎯Live2026

ShuttleSense

AI badminton rally analyser with pose estimation

Private repository · demo on request

ShuttleSense samples frames from a clip (more for longer clips), runs MediaPipe pose estimation for posture metrics, tracks player movement into a court coverage heatmap, detects the camera angle and then asks Claude for a structured coaching report at one of three depths (Haiku, Sonnet or Opus).

The part I spent the most time on is the AI proxy. Prompts are built server-side from a few structured parameters, the model list is allowlisted, and every call is tied to an analysis attempt whose call count is capped atomically in Postgres, so the endpoint cannot be turned into a general-purpose LLM relay. Token totals are written by the server from OpenRouter's responses, so a browser cannot under-report what a run cost.

Anonymous visitors get one free analysis (matched by IP or fingerprint), then buy $1 credit codes. Every attempt, whether completed, failed, rejected or abandoned, is logged with stage, error, device and token usage. Admin access is a magic-link session, and sample frames go to private storage through signed URLs.

Related

esc