leaderboard.txt
Add a leaderboard to my game. Stack: <stack>.

Understand first: anything the browser sends can be edited. Tell me
honestly which of these fits my situation:
- Local-only high scores. No server, no cheating problem.
- Server-submitted scores, accepting that some will be fake, with
  basic sanity limits.
- Server-authoritative, where the server simulates or validates the
  run. Say what that costs me to build.

For the option you recommend, implement it with:
- Rate limiting per player and per IP.
- A plausibility check rejecting impossible scores and impossible
  times, with the thresholds explained.
- Name filtering, and a length limit.
- Pagination, plus "your rank" for players outside the top page.

Decide up front how much cheating you can live with. A casual game's leaderboard being a bit fictional is fine; building server-authoritative scoring for it is weeks you didn't need to spend.