# totaldu/totaldu-com architecture

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

- Interactive diagram: https://gitdiagram.com/totaldu/totaldu-com
- Repository: https://github.com/totaldu/totaldu-com

## Overview

This repository is a Korean Pokémon and League of Legends information site. Users enter through the React app and browse Pokémon encyclopedia, abilities, type matchups, and detail pages, or explore LoL predictions, rankings, teams, players, and live matches. LoL data-generation scripts and a small Express API support those experiences; the live-match route delegates to a cached lolesports client. The README provides no product overview, and several route and data-generation implementations were not sampled, so those relationships are omitted where unverified.

Main entry points: [`client/src/App.jsx`](https://github.com/totaldu/totaldu-com/blob/main/client/src/App.jsx) (React application), [`client/src/pages/PredictionPage.jsx`](https://github.com/totaldu/totaldu-com/blob/main/client/src/pages/PredictionPage.jsx) (LoL predictions), [`client/src/components/RoleIcon.jsx`](https://github.com/totaldu/totaldu-com/blob/main/client/src/components/RoleIcon.jsx) (Role icons), [`client/src/pages/PokedexPage.jsx`](https://github.com/totaldu/totaldu-com/blob/main/client/src/pages/PokedexPage.jsx) (Pokédex)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Web application"]
  node_app["React application<br/>[App.jsx]"]
end

subgraph group_pokemon["Pokémon reference"]
  node_pokemon_layout["Pokédex layout<br/>[PokedexLayout.jsx]"]
  node_pokedex["Pokédex<br/>[PokedexPage.jsx]"]
  node_pokemon_detail["Pokémon details"]
  node_ability_list["Ability list"]
  node_ability_detail["Ability details"]
  node_type_chart["Type chart<br/>[TypeChartPage.jsx]"]
  node_pokemon_utils["Pokémon utilities<br/>[pokemonUtils.js]"]
  node_sprites["Champion sprites<br/>[championsSprite.js]"]
end

subgraph group_lol["League of Legends"]
  node_prediction["LoL predictions<br/>[PredictionPage.jsx]"]
  node_gpr["GPR rankings<br/>[GprTable.jsx]"]
  node_team_panel["Team panel<br/>[TeamPanel.jsx]"]
  node_team_modal["Team modal<br/>[TeamModal.jsx]"]
  node_team_page["Team profiles<br/>[TeamPage.jsx]"]
  node_player_page["Player profiles<br/>[PlayerPage.jsx]"]
  node_live_matches["Live matches<br/>[LiveMatches.jsx]"]
  node_live_scores["Live score utility<br/>[liveScores.js]"]
  node_role_icon["Role icons<br/>[RoleIcon.jsx]"]
end

subgraph group_backend["API and data"]
  node_simulation["Match simulator<br/>[simulateLol.mjs]"]
  node_standings["Standings data job<br/>[fetchStandings.mjs]"]
  node_rosters["Roster data job<br/>[fetchRosters.mjs]"]
  node_player_stats["Player stats job"]
  node_gpr_job["GPR data job<br/>[fetchGpr.mjs]"]
  node_api["Express API<br/>[index.js]"]
  node_live_service["Live-match service<br/>[lolLive.js]"]
end

node_visitor(("Site visitor"))
node_lolesports["LoL esports feeds"]

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_pokemon_layout
node_app -->|"routes to"| node_pokedex
node_app -->|"routes to"| node_pokemon_detail
node_app -->|"routes to"| node_ability_list
node_app -->|"routes to"| node_ability_detail
node_app -->|"routes to"| node_type_chart
node_app -->|"routes to"| node_prediction
node_app -->|"routes to"| node_team_page
node_app -->|"routes to"| node_player_page
node_pokemon_detail -->|"uses"| node_pokemon_utils
node_pokemon_detail -->|"uses"| node_sprites
node_pokedex -->|"uses"| node_pokemon_utils
node_pokedex -->|"uses"| node_sprites
node_ability_detail -->|"uses"| node_pokemon_utils
node_ability_detail -->|"uses"| node_sprites
node_prediction -->|"renders"| node_live_matches
node_prediction -->|"applies scores"| node_live_scores
node_prediction -->|"renders"| node_gpr
node_prediction -->|"renders"| node_team_panel
node_team_panel -->|"renders"| node_role_icon
node_team_modal -->|"renders"| node_role_icon
node_team_page -->|"renders"| node_role_icon
node_player_page -->|"renders"| node_role_icon
node_api -->|"calls"| node_live_service
node_live_service -->|"requests live data"| node_lolesports
node_live_matches -.->|"requests live route"| node_api
node_standings -.->|"fetches data"| node_lolesports
node_rosters -.->|"fetches data"| node_lolesports
node_player_stats -.->|"fetches data"| node_lolesports
node_gpr_job -.->|"fetches data"| node_lolesports
node_simulation -.->|"supplies results"| node_prediction

click node_app "https://github.com/totaldu/totaldu-com/blob/main/client/src/App.jsx"
click node_pokemon_layout "https://github.com/totaldu/totaldu-com/blob/main/client/src/pages/PokedexLayout.jsx"
click node_pokedex "https://github.com/totaldu/totaldu-com/blob/main/client/src/pages/PokedexPage.jsx"
click node_pokemon_detail "https://github.com/totaldu/totaldu-com/blob/main/client/src/pages/PokemonDetailPage.jsx"
click node_ability_list "https://github.com/totaldu/totaldu-com/blob/main/client/src/pages/AbilityListPage.jsx"
click node_ability_detail "https://github.com/totaldu/totaldu-com/blob/main/client/src/pages/AbilityDetailPage.jsx"
click node_type_chart "https://github.com/totaldu/totaldu-com/blob/main/client/src/pages/TypeChartPage.jsx"
click node_pokemon_utils "https://github.com/totaldu/totaldu-com/blob/main/client/src/utils/pokemonUtils.js"
click node_sprites "https://github.com/totaldu/totaldu-com/blob/main/client/src/utils/championsSprite.js"
click node_prediction "https://github.com/totaldu/totaldu-com/blob/main/client/src/pages/PredictionPage.jsx"
click node_gpr "https://github.com/totaldu/totaldu-com/blob/main/client/src/components/GprTable.jsx"
click node_team_panel "https://github.com/totaldu/totaldu-com/blob/main/client/src/components/TeamPanel.jsx"
click node_team_modal "https://github.com/totaldu/totaldu-com/blob/main/client/src/components/TeamModal.jsx"
click node_team_page "https://github.com/totaldu/totaldu-com/blob/main/client/src/pages/TeamPage.jsx"
click node_player_page "https://github.com/totaldu/totaldu-com/blob/main/client/src/pages/PlayerPage.jsx"
click node_live_matches "https://github.com/totaldu/totaldu-com/blob/main/client/src/components/LiveMatches.jsx"
click node_live_scores "https://github.com/totaldu/totaldu-com/blob/main/client/src/utils/liveScores.js"
click node_role_icon "https://github.com/totaldu/totaldu-com/blob/main/client/src/components/RoleIcon.jsx"
click node_simulation "https://github.com/totaldu/totaldu-com/blob/main/scripts/simulateLol.mjs"
click node_standings "https://github.com/totaldu/totaldu-com/blob/main/scripts/fetchStandings.mjs"
click node_rosters "https://github.com/totaldu/totaldu-com/blob/main/scripts/fetchRosters.mjs"
click node_player_stats "https://github.com/totaldu/totaldu-com/blob/main/scripts/fetchPlayerStats.mjs"
click node_gpr_job "https://github.com/totaldu/totaldu-com/blob/main/scripts/fetchGpr.mjs"
click node_api "https://github.com/totaldu/totaldu-com/blob/main/server/index.js"
click node_live_service "https://github.com/totaldu/totaldu-com/blob/main/server/lolLive.js"

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_app toneBlue
class node_pokemon_layout,node_pokedex,node_pokemon_detail,node_ability_list,node_ability_detail,node_type_chart,node_pokemon_utils,node_sprites toneAmber
class node_prediction,node_gpr,node_team_panel,node_team_modal,node_team_page,node_player_page,node_live_matches,node_live_scores,node_role_icon toneMint
class node_simulation,node_standings,node_rosters,node_player_stats,node_gpr_job,node_api,node_live_service toneRose
class node_visitor,node_lolesports toneIndigo
```

## Components

### Web application

- [React application](https://github.com/totaldu/totaldu-com/blob/main/client/src/App.jsx): `client/src/App.jsx`

### Pokémon reference

- [Pokédex layout](https://github.com/totaldu/totaldu-com/blob/main/client/src/pages/PokedexLayout.jsx): `client/src/pages/PokedexLayout.jsx`
- [Pokédex](https://github.com/totaldu/totaldu-com/blob/main/client/src/pages/PokedexPage.jsx): `client/src/pages/PokedexPage.jsx`
- [Pokémon details](https://github.com/totaldu/totaldu-com/blob/main/client/src/pages/PokemonDetailPage.jsx): `client/src/pages/PokemonDetailPage.jsx`
- [Ability list](https://github.com/totaldu/totaldu-com/blob/main/client/src/pages/AbilityListPage.jsx): `client/src/pages/AbilityListPage.jsx`
- [Ability details](https://github.com/totaldu/totaldu-com/blob/main/client/src/pages/AbilityDetailPage.jsx): `client/src/pages/AbilityDetailPage.jsx`
- [Type chart](https://github.com/totaldu/totaldu-com/blob/main/client/src/pages/TypeChartPage.jsx): `client/src/pages/TypeChartPage.jsx`
- [Pokémon utilities](https://github.com/totaldu/totaldu-com/blob/main/client/src/utils/pokemonUtils.js): `client/src/utils/pokemonUtils.js`
- [Champion sprites](https://github.com/totaldu/totaldu-com/blob/main/client/src/utils/championsSprite.js): `client/src/utils/championsSprite.js`

### League of Legends

- [LoL predictions](https://github.com/totaldu/totaldu-com/blob/main/client/src/pages/PredictionPage.jsx): `client/src/pages/PredictionPage.jsx`
- [GPR rankings](https://github.com/totaldu/totaldu-com/blob/main/client/src/components/GprTable.jsx): `client/src/components/GprTable.jsx`
- [Team panel](https://github.com/totaldu/totaldu-com/blob/main/client/src/components/TeamPanel.jsx): `client/src/components/TeamPanel.jsx`
- [Team modal](https://github.com/totaldu/totaldu-com/blob/main/client/src/components/TeamModal.jsx): `client/src/components/TeamModal.jsx`
- [Team profiles](https://github.com/totaldu/totaldu-com/blob/main/client/src/pages/TeamPage.jsx): `client/src/pages/TeamPage.jsx`
- [Player profiles](https://github.com/totaldu/totaldu-com/blob/main/client/src/pages/PlayerPage.jsx): `client/src/pages/PlayerPage.jsx`
- [Live matches](https://github.com/totaldu/totaldu-com/blob/main/client/src/components/LiveMatches.jsx): `client/src/components/LiveMatches.jsx`
- [Live score utility](https://github.com/totaldu/totaldu-com/blob/main/client/src/utils/liveScores.js): `client/src/utils/liveScores.js`
- [Role icons](https://github.com/totaldu/totaldu-com/blob/main/client/src/components/RoleIcon.jsx): `client/src/components/RoleIcon.jsx`

### API and data

- [Match simulator](https://github.com/totaldu/totaldu-com/blob/main/scripts/simulateLol.mjs): `scripts/simulateLol.mjs`
- [Standings data job](https://github.com/totaldu/totaldu-com/blob/main/scripts/fetchStandings.mjs): `scripts/fetchStandings.mjs`
- [Roster data job](https://github.com/totaldu/totaldu-com/blob/main/scripts/fetchRosters.mjs): `scripts/fetchRosters.mjs`
- [Player stats job](https://github.com/totaldu/totaldu-com/blob/main/scripts/fetchPlayerStats.mjs): `scripts/fetchPlayerStats.mjs`
- [GPR data job](https://github.com/totaldu/totaldu-com/blob/main/scripts/fetchGpr.mjs): `scripts/fetchGpr.mjs`
- [Express API](https://github.com/totaldu/totaldu-com/blob/main/server/index.js): `server/index.js`
- [Live-match service](https://github.com/totaldu/totaldu-com/blob/main/server/lolLive.js): `server/lolLive.js`

### Other components

- **Site visitor**
- **LoL esports feeds**

## Connections

- Site visitor → React application: opens
- React application → Pokédex layout: routes to (evidence: `client/src/App.jsx`)
- React application → Pokédex: routes to (evidence: `client/src/App.jsx`)
- React application → Pokémon details: routes to (evidence: `client/src/App.jsx`)
- React application → Ability list: routes to (evidence: `client/src/App.jsx`)
- React application → Ability details: routes to (evidence: `client/src/App.jsx`)
- React application → Type chart: routes to (evidence: `client/src/App.jsx`)
- React application → LoL predictions: routes to (evidence: `client/src/App.jsx`)
- React application → Team profiles: routes to (evidence: `client/src/App.jsx`)
- React application → Player profiles: routes to (evidence: `client/src/App.jsx`)
- Pokémon details → Pokémon utilities: uses (evidence: `client/src/pages/PokemonDetailPage.jsx`)
- Pokémon details → Champion sprites: uses (evidence: `client/src/pages/PokemonDetailPage.jsx`)
- Pokédex → Pokémon utilities: uses (evidence: `client/src/pages/PokedexPage.jsx`)
- Pokédex → Champion sprites: uses (evidence: `client/src/pages/PokedexPage.jsx`)
- Ability details → Pokémon utilities: uses (evidence: `client/src/pages/AbilityDetailPage.jsx`)
- Ability details → Champion sprites: uses (evidence: `client/src/pages/AbilityDetailPage.jsx`)
- LoL predictions → Live matches: renders (evidence: `client/src/pages/PredictionPage.jsx`)
- LoL predictions → Live score utility: applies scores (evidence: `client/src/pages/PredictionPage.jsx`)
- LoL predictions → GPR rankings: renders (evidence: `client/src/pages/PredictionPage.jsx`)
- LoL predictions → Team panel: renders (evidence: `client/src/pages/PredictionPage.jsx`)
- Team panel → Role icons: renders (evidence: `client/src/components/TeamPanel.jsx`)
- Team modal → Role icons: renders (evidence: `client/src/components/TeamModal.jsx`)
- Team profiles → Role icons: renders (evidence: `client/src/pages/TeamPage.jsx`)
- Player profiles → Role icons: renders (evidence: `client/src/pages/PlayerPage.jsx`)
- Express API → Live-match service: calls (evidence: `server/index.js`)
- Live-match service → LoL esports feeds: requests live data (evidence: `server/lolLive.js`)
- Live matches → Express API: requests live route
- Standings data job → LoL esports feeds: fetches data
- Roster data job → LoL esports feeds: fetches data
- Player stats job → LoL esports feeds: fetches data
- GPR data job → LoL esports feeds: fetches data
- Match simulator → LoL predictions: supplies results
