How nathann-275/jumpshot_dailygame works
Jumpshot is a browser-based basketball trivia arcade with a daily game and a separate live-versus mode. The daily flow presents shared NBA player prompts and league trivia, scores accepted answers, and saves a browser-local attempt and personal best. Versus uses a frontend to join matchmaking and play timed matches; a Cloudflare Worker coordinates queues and Durable Object matches using an exported question bank. Frontend implementation was not sampled, so its component links reflect README descriptions; backend links are limited to relationships visible in the Worker excerpt.
Main entry points: game.js Daily Game UI · index.mjs Live Match · versus.js Versus Client · versus.html Versus Page
Components 17
Daily Trivia
- Daily Game UI
dist/game.js - Browser Storage
dist/game.js
Versus Frontend
- Versus Page
dist/versus.html - Versus Client
dist/versus.js - Worker Endpoint Config
dist/versus-config.js
Versus Backend
- Worker API
worker/index.mjs - Matchmaking Queue
worker/index.mjs - Live Match
worker/index.mjs - Match State Storage
worker/index.mjs
Question Content
- Player Prompts
dist/players.js - Trivia Questions
dist/questions.js - League Questions
dist/league-questions.js - Dated Trivia
dist/dated-trivia.js - Versus Question Bank
worker/bank.json
Other components
- Player
- Web Browser
- Cloudflare Durable Objects
Connections 18
- Player → Daily Game UI: plays daily
README.md - Daily Game UI → Player Prompts: presents prompts
README.md - Daily Game UI → Trivia Questions: selects questions
README.md - Daily Game UI → League Questions: draws league trivia
README.md - Daily Game UI → Dated Trivia: includes dated prompts
README.md - Daily Game UI → Browser Storage: saves attempt
README.md - Player → Versus Page: opens versus
README.md - Versus Page → Versus Client: loads client
- Versus Client → Worker Endpoint Config: reads endpoint
- Versus Client → Worker API: sends match requests
README.md - Worker API → Matchmaking Queue: dispatches queue requests
worker/index.mjs - Worker API → Live Match: dispatches match requests
worker/index.mjs - Matchmaking Queue → Live Match: initializes assignment
worker/index.mjs - Live Match → Match State Storage: reads and saves state
worker/index.mjs - Live Match → Versus Question Bank: selects and checks answers
worker/index.mjs - Matchmaking Queue → Cloudflare Durable Objects: uses durable storage
- Live Match → Cloudflare Durable Objects: runs as durable object
- Versus Client → Web Browser: runs in