CoolFace
Apppublic

apirrone/reachy-mini-simon-api

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
App README

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 as Authorization: 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)

  1. 1.Create the dataset repo:
   hf repo create reachy-mini-simon-scores --type=dataset

Initial scores.json content: {} (the service will populate it).

  1. 1.Generate an HF write token at https://huggingface.co/settings/tokens (scope: write on apirrone/reachy-mini-simon-scores).
  2. 2.Add it as a Space secret named HF_TOKEN on this Space.