How starry-light/bday_site works
This is a client-side birthday word puzzle: the player enters shared guesses, which are scored across word boards, unlocking memories and eventually a finale. The page also manages hints, guess extensions, and saved progress. Configuration supplies the personalized words and messages; scoring and guess-budget rules live in a separate game module. The README documents browser-local saves and an optional progress tool. UI components outside the game entry and interface are scaffolded, so they are not mapped here.
Main entry points: page.tsx Game interface · main.tsx App entry · useProgressTool.ts Progress tool hook · config.ts Personalized content
Components 10
Game experience
- App entry
app/main.tsx - Game interface
app/page.tsx - Memories and finale
app/page.tsx
Puzzle rules
- Personalized content
app/config.ts - Guess scoring
app/game.mjs - Guess budget
app/game.mjs
Browser integration
- Browser save
- Progress tool hook
app/useProgressTool.ts
Other components
- Player
- Browser tool API
Connections 10
- Player → App entry: opens game
- App entry → Game interface: renders
app/main.tsx - Game interface → Personalized content: loads content
app/page.tsx - Game interface → Guess scoring: scores guesses
app/page.tsx - Game interface → Guess budget: sets guess limit
app/page.tsx - Game interface → Memories and finale: unlocks notes
app/page.tsx - Player → Game interface: enters guesses
- Game interface → Browser save: saves progress
- Game interface → Progress tool hook: uses hook
app/page.tsx - Progress tool hook → Browser tool API: registers tool
app/useProgressTool.ts