Side project · dartlead.app
Dartlead
A darts tournament app with brackets, scoring and live standings - built for a real local league and running in production. In development: an AI assistant that answers questions about the rules, the app and the league's own stats.
live at dartlead.app →Down the stack
Each line sits at the layer it belongs to.
- stackReact 19 and Vite on Supabase - Postgres, auth and realtime in one - deployed on Vercel and installable as a PWA.
- uiLive scoring from any phone at the venue: dart by dart or by three-dart visit, with checkout suggestions, bust detection and undo.
- logicRun a tournament as groups plus a play-off bracket or as a straight knockout, up to 64 players.
- logicLeagues on top of one-off tournaments: members, registrations and a season leaderboard.
- authOrganiser, scorer and player roles, Google sign-in, and a bilingual EN/SK interface.
- dataBrackets, standings and leaderboards update as the legs come in, on every device watching.
- dataDarts statistics throughout - three-dart averages, checkouts, 180s, leg differences - plus end-of-tournament awards you can share as an image.
- aiIn development: an assistant in English or Slovak. A LangGraph graph rewrites follow-ups into standalone questions, routes each one, then answers from the docs, from live stats, or both - and politely refuses off-topic ones.
- aiRules and how-to questions go through RAG: hand-written docs embedded with Gemini into Supabase pgvector, answers that cite their sources and say "I don't know" when the docs don't cover it.
- aiStats questions go to 12 Python tools - player lookup tolerant of accents, typos and Slovak declension, head-to-heads, standings, podiums. Counting and sorting happen in code, not in the model.
- authThe tools run with the signed-in user's Supabase JWT, so row-level security still decides what the assistant can see. A FastAPI service streams steps, tool calls, sources and text to a lazy-loaded chat widget.
- evalsBuilt eval-first: Langfuse tracing and a 61-case dataset scored by deterministic checks plus a hand-calibrated LLM-as-judge - which caught an invented benchmark. Models were picked on that set by accuracy and cost.
- infraBuilt for a real local league and in use at dartlead.app.