Boardsesh
Kilter·Tension·MoonBoard와 연동해 세션 추적·LED 제어·함께 등반
칼프가 미니 후프에서 시도한 모든 슛을 카메라가 자동으로 기록해 성공·실패·필드골 비율·최장 연속 기록을 보여줍니다
Every shot Kalp takes at the mini hoop in his room, counted automatically by a camera and logged here: makes, misses, field goal percentage and longest streak.
스포츠·피트니스TypeScript · CSSGitHub @KalpKan온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
Hoops Analytics is a personal basketball shooting tracker: a web dashboard (live at
https://hoops.kalpkan.com) that shows shot maps, session stats and progress, fed by a
Supabase backend. The iPhone capture app is a stub (two SwiftUI files, no working
capture yet); today shots reach the backend through the ingest API described below.README 전문 보기 ↗Hoops Analytics is a personal basketball shooting tracker: a web dashboard (live at https://hoops.kalpkan.com) that shows shot maps, session stats and progress, fed by a Supabase backend. The iPhone capture app is a stub (two SwiftUI files, no working capture yet); today shots reach the backend through the ingest API described below.
apps/mobile - iPhone app stub (SwiftUI). Planned, not functional yetapps/web - Next.js dashboard for Vercelsupabase - database schema (the hoops schema in the shared Supabase project "platform"), policies, and Edge Functionspackages/contracts - shared TypeScript event contracts and generated types/functions/v1/hoops-ingest-shotx-device-api-key, upserts the session row, and inserts the shot event idempotently by client event idhoops.shot_events; SQL views in the hoops schema (session_summaries etc.) expose the same metrics for SQL consumers/api/dashboard), computes every number in apps/web/lib/dashboard-data.ts (pure, unit-tested against an independent Python ground truth in tests/), and refreshes every 5 seconds400/api/health returns {ok, db, service} (db: ok | skipped | error, HTTP 503 on error) for the uptime monitorx-device-api-key to the Edge Functionid is the canonical client event id and must be stable across retries for idempotent ingestionstarted_at is set from the first accepted event in a session and moves earlier if an earlier shot arrives latereFG% is a bounded mini-hoop proxy (v2, 2026-09-18): 100 * (made + 0.5 * swishes) / (attempts + 0.5 * swishes). The v1 formula divided by attempts only and reached 150 % on a single swishconsistency is max(0, min(100, 100 - 2 * sample_stddev(FG% of the sessions shown))), computed on the same rows as the Session History table; it is "n/a" for a single sessionhoops.overall_analytics view is no longer used by the pageSUPABASE_URLSUPABASE_ANON_KEYSUPABASE_SERVICE_ROLE_KEYINGEST_API_KEYPlus NEXT_PUBLIC_POSTHOG_KEY and NEXT_PUBLIC_POSTHOG_HOST for analytics. Names are listed in
.env.example; never commit values. For the Edge Functions, INGEST_API_KEY (and optionally
POSTHOG_KEY) are Supabase Edge Function secrets; SUPABASE_URL and SUPABASE_SERVICE_ROLE_KEY
are injected by Supabase automatically.
Written for a non-developer. You should not normally need any of this: the site deploys itself and the settings are already in place.
How to run this on your computer
npx pnpm install.npx pnpm --filter @basketball-stat-tracker/web dev and open http://localhost:3000.
Without a .env file you will see the "Demo data" banner and sample shots, which is fine.npx pnpm test (unit tests for the metric math against tests/fixtures/, the chart, the banners and the ingest validation). To check the live page against the ground truth: curl -s https://hoops.kalpkan.com/api/dashboard > /tmp/p.json && python3 tests/compute-expected-metrics.py --check /tmp/p.json.How to deploy this
main branch on GitHub redeploys the dashboard on Vercel
(project v0-basketball-analytics-dashboard, team "Kk's projects"). Nothing to click.npx vercel --prod --yes from this folder.hoops. To change the database, add a new numbered file in supabase/migrations/ and
apply it (an agent does this with the portfolio-ops runbook "Add a schema to Supabase
Project B"). To redeploy a function: npx supabase functions deploy hoops-ingest-shot
(or health) with your Supabase access token in the shell.Where the settings live
| Setting | Where |
|---|---|
SUPABASE_URL, SUPABASE_ANON_KEY, SUPABASE_SERVICE_ROLE_KEY, INGEST_API_KEY, NEXT_PUBLIC_POSTHOG_KEY, NEXT_PUBLIC_POSTHOG_HOST | Vercel -> project v0-basketball-analytics-dashboard -> Settings -> Environment Variables |
INGEST_API_KEY, POSTHOG_KEY (for the Edge Functions) | Supabase -> project "platform" -> Edge Functions -> Secrets |
| Database tables and views | Supabase -> project "platform" -> Table Editor, schema hoops |
Domain hoops.kalpkan.com | Cloudflare DNS (record) and Vercel project Settings -> Domains |
| Uptime and keep-alive monitors | UptimeRobot, status page https://stats.uptimerobot.com/a6n3Wx3PBp |
The full operating manual for all of Kalp's sites is the portfolio-ops skill in the
KalpKan/portfolio repo (skills/portfolio-ops/).
{
"id": "0f548d8d-f932-4e8d-a8e4-2fa07aaf6af0",
"deviceId": "iphone-15-pro",
"sessionId": "4c95d8e0-5d9b-4c44-9da0-0ceee3124f8f",
"sessionTitle": "Bedroom mini hoop",
"capturedAt": "2026-04-15T22:14:10.000Z",
"result": "made",
"x": 0.52,
"y": 0.41,
"confidence": 0.94,
"frameId": "frame-00128",
"swish": true
}