How jeremiasreinoso/puntajenewcom2026 works
PuntajeNewcom is a browser-based tournament scoring and management application. Its domain supports category setup, team and zone management, match-result entry, standings and tie handling, qualification into a final zone, and final rankings; +60/+68 categories use a single round-robin zone. The sampled app.js is a substantial UI implementation, while the modular service and domain layers are also present. The excerpts do not establish that app.js invokes that service, so they are shown separately. Storage wiring from the service is documented as a repository port but not shown as a direct call.
Main entry points: tournament-service.js Tournament Service · tournament.js Tournament Rules · state-schema.js State Schema · standings.js Standings and Ties
Components 14
Tournament UI
- Tournament Interface
app.js
Use Cases
- Tournament Service
src/application/tournament-service.js - Teams and Zones
src/application/tournament-service.js - Match Results
src/application/tournament-service.js
Tournament Rules
- Qualification Flow
src/domain/tournament.js - Final Rankings
src/domain/tournament.js - Tournament Rules
src/domain/tournament.js - Standings and Ties
src/domain/standings.js - Scoring Rules
src/domain/scoring.js - Domain Errors
src/domain/errors.js - Tournament Constants
src/domain/constants.js
State Persistence
- Local Storage Repository
src/infrastructure/local-storage-repository.js - State Schema
src/infrastructure/state-schema.js
Other components
- Organizer
Connections 21
- Organizer → Tournament Interface: manages tournament
app.js - Tournament Service → Tournament Rules: uses rules
src/application/tournament-service.js - Tournament Service → Standings and Ties: computes standings
src/application/tournament-service.js - Tournament Service → Scoring Rules: uses scoring
src/application/tournament-service.js - Tournament Service → Domain Errors: raises errors
src/application/tournament-service.js - Tournament Service → Tournament Constants: uses constants
src/application/tournament-service.js - Tournament Service → Local Storage Repository: loads and saves
- Local Storage Repository → State Schema: normalizes state
src/infrastructure/local-storage-repository.js - Local Storage Repository → Tournament Constants: reads settings
src/infrastructure/local-storage-repository.js - State Schema → Tournament Constants: validates values
src/infrastructure/state-schema.js - State Schema → Scoring Rules: validates results
src/infrastructure/state-schema.js - State Schema → Tournament Rules: checks migration
src/infrastructure/state-schema.js - Tournament Rules → Standings and Ties: ranks zones
src/domain/tournament.js - Tournament Rules → Tournament Constants: uses formats
src/domain/tournament.js - Standings and Ties → Scoring Rules: derives points
src/domain/standings.js - Standings and Ties → Domain Errors: uses errors
- Scoring Rules → Domain Errors: throws rule errors
src/domain/scoring.js - Teams and Zones → Tournament Service: handled by
src/application/tournament-service.js - Match Results → Tournament Service: handled by
src/application/tournament-service.js - Qualification Flow → Tournament Rules: implemented by
src/domain/tournament.js - Final Rankings → Tournament Rules: implemented by
src/domain/tournament.js