# hemacharankodhanda/vitap-sports architecture

> Architecture diagram of the GitHub repository hemacharankodhanda/vitap-sports, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hemacharankodhanda/vitap-sports
- Repository: https://github.com/hemacharankodhanda/vitap-sports

## Overview

VIT-AP Sports is a Flutter campus sports platform. Its user workflow spans university-restricted access, match and team management, live multisport scoring, tournament participation and results, then spectator views and player rankings. The README also documents recruitment, profiles, honours, and campus-scoped tournaments. Source excerpts are limited to Android platform setup, so relationships below rely on documented README capabilities and architecture; unsampled implementation details are not inferred.

Main entry points: [`lib/features/tournaments/presentation`](https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/tournaments/presentation) (Tournament workflows), [`lib/main.dart`](https://github.com/hemacharankodhanda/vitap-sports/blob/main/lib/main.dart) (Flutter app), [`lib/features/scoring/presentation`](https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/scoring/presentation) (Scoring console), [`lib/features/matches`](https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/matches) (Match management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App foundation"]
  node_flutter["Flutter app<br/>[main.dart]"]
  node_auth["University access"]
  node_router["App navigation<br/>[app_router.dart]"]
end

subgraph group_matches["Matches and scoring"]
  node_matches["Match management"]
  node_scoring_ui["Scoring console"]
  node_live_scorer["Live scoring service"]
  node_sport_engines["Sport scoring engines"]
  node_scorecards["Spectator scorecards"]
end

subgraph group_tournaments["Tournament operations"]
  node_tournament_ui["Tournament workflows"]
  node_tournament_service["Tournament service"]
  node_format_engines["Format engines"]
  node_standings["Standings engine"]
end

subgraph group_community["Teams and community"]
  node_teams["Team management"]
  node_free_agents["Free-agent directory"]
  node_feed["Sports feed<br/>[feed_screen.dart]"]
end

subgraph group_outcomes["Profiles and rankings"]
  node_profiles["Player profiles"]
  node_leaderboards["Campus leaderboards"]
end

node_student(("Campus user"))
node_supabase[("Supabase")]

node_student -->|"uses"| node_flutter
node_flutter -->|"starts access"| node_auth
node_flutter -->|"navigates"| node_router
node_student -->|"manages matches"| node_matches
node_matches -->|"stores match data"| node_supabase
node_student -->|"records events"| node_scoring_ui
node_scoring_ui -->|"scores by sport"| node_sport_engines
node_scoring_ui -->|"publishes scoring"| node_live_scorer
node_live_scorer -->|"broadcasts updates"| node_supabase
node_student -->|"views scores"| node_scorecards
node_scorecards -->|"receives live updates"| node_supabase
node_student -->|"joins tournaments"| node_tournament_ui
node_tournament_ui -->|"submits entries"| node_tournament_service
node_tournament_service -->|"persists tournament data"| node_supabase
node_tournament_ui -->|"generates draws"| node_format_engines
node_tournament_ui -->|"shows standings"| node_standings
node_student -->|"manages teams"| node_teams
node_teams -->|"stores team data"| node_supabase
node_student -->|"finds players"| node_free_agents
node_student -->|"views campus updates"| node_feed
node_student -->|"views career stats"| node_profiles
node_supabase -->|"aggregates match results"| node_profiles
node_student -->|"views rankings"| node_leaderboards
node_leaderboards -->|"reads rankings"| node_supabase

click node_flutter "https://github.com/hemacharankodhanda/vitap-sports/blob/main/lib/main.dart"
click node_auth "https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/auth"
click node_router "https://github.com/hemacharankodhanda/vitap-sports/blob/main/lib/core/router/app_router.dart"
click node_matches "https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/matches"
click node_scoring_ui "https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/scoring/presentation"
click node_live_scorer "https://github.com/hemacharankodhanda/vitap-sports/blob/main/lib/features/scoring/data/live_scorer_service.dart"
click node_sport_engines "https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/scoring/engines"
click node_scorecards "https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/scorecards"
click node_tournament_ui "https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/tournaments/presentation"
click node_tournament_service "https://github.com/hemacharankodhanda/vitap-sports/blob/main/lib/features/tournaments/data/tournament_service.dart"
click node_format_engines "https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/tournaments/engines"
click node_standings "https://github.com/hemacharankodhanda/vitap-sports/blob/main/lib/features/tournaments/engines/standings_engine.dart"
click node_teams "https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/teams"
click node_free_agents "https://github.com/hemacharankodhanda/vitap-sports/blob/main/lib/features/free_agents/screens/free_agents_screen.dart"
click node_feed "https://github.com/hemacharankodhanda/vitap-sports/blob/main/lib/features/feed/screens/feed_screen.dart"
click node_profiles "https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/profile"
click node_leaderboards "https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/leaderboard"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_flutter,node_auth,node_router,node_student toneBlue
class node_matches,node_scoring_ui,node_live_scorer,node_sport_engines,node_scorecards,node_supabase toneAmber
class node_tournament_ui,node_tournament_service,node_format_engines,node_standings toneMint
class node_teams,node_free_agents,node_feed toneRose
class node_profiles,node_leaderboards toneIndigo
```

## Components

### App foundation

- [Flutter app](https://github.com/hemacharankodhanda/vitap-sports/blob/main/lib/main.dart): `lib/main.dart`
- [University access](https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/auth): `lib/features/auth`
- [App navigation](https://github.com/hemacharankodhanda/vitap-sports/blob/main/lib/core/router/app_router.dart): `lib/core/router/app_router.dart`

### Matches and scoring

- [Match management](https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/matches): `lib/features/matches`
- [Scoring console](https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/scoring/presentation): `lib/features/scoring/presentation`
- [Live scoring service](https://github.com/hemacharankodhanda/vitap-sports/blob/main/lib/features/scoring/data/live_scorer_service.dart): `lib/features/scoring/data/live_scorer_service.dart`
- [Sport scoring engines](https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/scoring/engines): `lib/features/scoring/engines`
- [Spectator scorecards](https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/scorecards): `lib/features/scorecards`

### Tournament operations

- [Tournament workflows](https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/tournaments/presentation): `lib/features/tournaments/presentation`
- [Tournament service](https://github.com/hemacharankodhanda/vitap-sports/blob/main/lib/features/tournaments/data/tournament_service.dart): `lib/features/tournaments/data/tournament_service.dart`
- [Format engines](https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/tournaments/engines): `lib/features/tournaments/engines`
- [Standings engine](https://github.com/hemacharankodhanda/vitap-sports/blob/main/lib/features/tournaments/engines/standings_engine.dart): `lib/features/tournaments/engines/standings_engine.dart`

### Teams and community

- [Team management](https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/teams): `lib/features/teams`
- [Free-agent directory](https://github.com/hemacharankodhanda/vitap-sports/blob/main/lib/features/free_agents/screens/free_agents_screen.dart): `lib/features/free_agents/screens/free_agents_screen.dart`
- [Sports feed](https://github.com/hemacharankodhanda/vitap-sports/blob/main/lib/features/feed/screens/feed_screen.dart): `lib/features/feed/screens/feed_screen.dart`

### Profiles and rankings

- [Player profiles](https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/profile): `lib/features/profile`
- [Campus leaderboards](https://github.com/hemacharankodhanda/vitap-sports/tree/main/lib/features/leaderboard): `lib/features/leaderboard`

### Other components

- **Campus user**
- **Supabase**

## Connections

- Campus user → Flutter app: uses (evidence: `README.md`)
- Flutter app → University access: starts access (evidence: `README.md`)
- Flutter app → App navigation: navigates (evidence: `README.md`)
- Campus user → Match management: manages matches (evidence: `README.md`)
- Match management → Supabase: stores match data (evidence: `README.md`)
- Campus user → Scoring console: records events (evidence: `README.md`)
- Scoring console → Sport scoring engines: scores by sport (evidence: `README.md`)
- Scoring console → Live scoring service: publishes scoring (evidence: `README.md`)
- Live scoring service → Supabase: broadcasts updates (evidence: `README.md`)
- Campus user → Spectator scorecards: views scores (evidence: `README.md`)
- Spectator scorecards → Supabase: receives live updates (evidence: `README.md`)
- Campus user → Tournament workflows: joins tournaments (evidence: `README.md`)
- Tournament workflows → Tournament service: submits entries (evidence: `README.md`)
- Tournament service → Supabase: persists tournament data (evidence: `README.md`)
- Tournament workflows → Format engines: generates draws (evidence: `README.md`)
- Tournament workflows → Standings engine: shows standings (evidence: `README.md`)
- Campus user → Team management: manages teams (evidence: `README.md`)
- Team management → Supabase: stores team data (evidence: `README.md`)
- Campus user → Free-agent directory: finds players (evidence: `README.md`)
- Campus user → Sports feed: views campus updates (evidence: `README.md`)
- Campus user → Player profiles: views career stats (evidence: `README.md`)
- Supabase → Player profiles: aggregates match results (evidence: `README.md`)
- Campus user → Campus leaderboards: views rankings (evidence: `README.md`)
- Campus leaderboards → Supabase: reads rankings (evidence: `README.md`)
