apirrone/reachy-mini-simon-api
0
Reachy Mini Simon — leaderboard API
Tiny FastAPI service that backs the leaderboard of reachy_mini_simon_js.
POST /score— authenticated via the caller's HF OAuth token (passed asAuthorization: Bearer …). Validates the user, keeps their single best score per difficulty, persists to the public dataset `apirrone/reachy-mini-simon-scores`.
- Reads (
GET …/scores.json) go straight to the public dataset — no trip through this Space — same pattern as the music-quiz backend.
Setup (once)
- Create the dataset repo:
hf repo create reachy-mini-simon-scores --type=dataset Initial scores.json content: {} (the service will populate it).
- Generate an HF write token at https://huggingface.co/settings/tokens (scope:
writeonapirrone/reachy-mini-simon-scores). - Add it as a Space secret named
HF_TOKENon this Space.
