How henriquegpb/rodada works
Rodada is a Portuguese daily-games platform: players open a shared daily challenge, submit guesses, and see feedback and a result. The README describes the gameplay contract, browser-side engine validation, saved plays, and the social layer of accounts, groups, rankings, streaks, and achievements. The graph includes the documented game families and the principal backend branches. Most API and service source was not excerpted, so those relationships are included only where the README documents them; no unsampled implementation details are assumed.
Main entry points: api HTTP API routes · engines.ts Engine registry · schema.ts Postgres data · service.ts Play service
Components 32
Daily play
- Game route
app/[game]/page.tsx - Game screen
components/game/game-screen.tsx - Play service
lib/plays/service.ts - Browser play storage
lib/plays/store.ts - Results and stats
lib/stats.ts
Game engines
- Daily challenge selection
lib/daily/seed.ts - Engine registry
games/engines.ts - Geography games
games/_shared/geo/engine.ts - Multiword modes
games/_shared/multiword/engine.ts - Palavra engine
games/palavra/engine.ts - Capital engine
games/capital/engine.ts - Escala engine
games/escala/create-engine.ts - Incomum engine
games/incomum/engine.ts - Word matching
games/incomum/match.ts - Difficulty tiers
games/incomum/tiers.ts - Ordem engine
games/ordem/engine.ts - Ordem rules
games/ordem/rules.ts - Sentido engine
games/sentido/engine.ts - Trilha solver
games/trilha/solver.ts - Rainhas engine
games/rainhas/create-engine.ts
Social features
- Ranking interface
components/ranking/ranking-screen.tsx - Groups interface
components/ranking/groups-screen.tsx - Profile interface
components/profile/profile-screen.tsx - Achievements
lib/achievements.ts
Backend
- HTTP API routes
app/api - Play validation
server/plays.ts - Accounts and auth
server/accounts.ts - Groups
server/groups.ts - Rankings
server/rankings.ts - Profiles
server/profiles.ts - Postgres data
server/db/schema.ts
Other components
- Player
Connections 30
- Player → Game route: opens challenge
- Game route → Game screen: shows game
- Game screen → Play service: submits guesses
- Play service → Engine registry: calls engine
- Engine registry → Geography games: dispatches
games/engines.ts - Engine registry → Multiword modes: dispatches
games/engines.ts - Engine registry → Palavra engine: dispatches
games/engines.ts - Engine registry → Capital engine: dispatches
games/engines.ts - Geography games → Daily challenge selection: selects daily
games/_shared/geo/engine.ts - Multiword modes → Daily challenge selection: selects daily
games/_shared/multiword/engine.ts - Palavra engine → Daily challenge selection: selects daily
games/palavra/engine.ts - Capital engine → Daily challenge selection: selects daily
games/capital/engine.ts - Play service → Browser play storage: saves locally
- Play service → Results and stats: scores results
- Player → Ranking interface: views rankings
- Player → Groups interface: manages groups
- Player → Profile interface: views profile
- Results and stats → Achievements: tracks achievements
- Game screen → HTTP API routes: syncs completed play
- HTTP API routes → Play validation: routes play requests
- Play validation → Engine registry: rechecks guesses
- HTTP API routes → Accounts and auth: routes account requests
- HTTP API routes → Groups: routes group requests
- HTTP API routes → Rankings: routes ranking requests
- HTTP API routes → Profiles: routes profile requests
- Play validation → Postgres data: stores plays
- Accounts and auth → Postgres data: stores accounts
- Groups → Postgres data: stores groups
- Rankings → Postgres data: reads ranking data
- Profiles → Postgres data: reads profile data