# lyticalapp/lytical architecture

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

- Interactive diagram: https://gitdiagram.com/lyticalapp/lytical
- Repository: https://github.com/lyticalapp/lytical

## Overview

Lytical is an Electron/Vue League of Legends profile analytics and pregame tool. Users search a summoner to view profile, ranked, champion and match-history data, or open the lobby view for champion-select/live-game teammate analysis. The UI sends requests through Electron IPC; the main-process integration obtains League Client credentials and makes authenticated local requests. Source excerpts show the UI requests and API mechanics, but not the main-process IPC dispatch, so those links are marked unverified.

Main entry points: [`src/HomeView.vue`](https://github.com/lyticalapp/lytical/blob/main/src/HomeView.vue) (Profile search), [`src/res/common.js`](https://github.com/lyticalapp/lytical/blob/main/src/res/common.js) (Game data helpers), [`src/background.js`](https://github.com/lyticalapp/lytical/blob/main/src/background.js) (Electron process), [`src/LobbyView.vue`](https://github.com/lyticalapp/lytical/blob/main/src/LobbyView.vue) (Lobby view)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App navigation"]
  node_main["Vue entry<br/>[main.js]"]
  node_app["App shell<br/>[App.vue]"]
  node_navbar["Navigation bar<br/>[Navbar.vue]"]
  node_settings["User settings<br/>[SettingsMenu.vue]"]
  node_error["Client error"]
  node_loading["Loading indicator<br/>[LoadingDots.vue]"]
end

subgraph group_analytics["Summoner analytics"]
  node_home["Profile search<br/>[HomeView.vue]"]
  node_playercard["Player profile<br/>[PlayerCard.vue]"]
  node_playerrank["Rank summary<br/>[PlayerRank.vue]"]
  node_mostplayed["Champion overview"]
  node_matchhistory["Match history"]
  node_matchdetails["Match details"]
end

subgraph group_pregame["Lobby analysis"]
  node_lobby["Lobby view<br/>[LobbyView.vue]"]
  node_lobbyplayer["Teammate card"]
end

subgraph group_integration["Client integration"]
  node_common["Game data helpers<br/>[common.js]"]
  node_background["Electron process<br/>[background.js]"]
  node_lcu["Client credentials<br/>[lcu.js]"]
  node_request["Local API requests<br/>[request.js]"]
end

node_user(("Player"))
node_league["League Client"]
node_stats["Stats websites"]

node_user -->|"opens app"| node_main
node_main -->|"mounts"| node_app
node_main -->|"routes"| node_home
node_main -->|"routes"| node_lobby
node_app -->|"renders"| node_navbar
node_navbar -->|"opens"| node_settings
node_user -->|"searches summoner"| node_home
node_home -->|"renders"| node_playercard
node_home -->|"renders"| node_playerrank
node_home -->|"renders"| node_mostplayed
node_home -->|"renders"| node_matchhistory
node_matchhistory -->|"renders"| node_matchdetails
node_home -->|"filters games"| node_common
node_playercard -->|"uses game data"| node_common
node_playerrank -->|"uses game data"| node_common
node_mostplayed -->|"uses game data"| node_common
node_matchhistory -->|"uses game data"| node_common
node_matchdetails -->|"uses game data"| node_common
node_matchhistory -.->|"requests details"| node_background
node_user -.->|"opens lobby view"| node_lobby
node_lobby -->|"renders teammates"| node_lobbyplayer
node_lobby -->|"filters games"| node_common
node_lobbyplayer -->|"uses game data"| node_common
node_home -.->|"requests analytics"| node_background
node_lobby -.->|"requests lobby data"| node_background
node_settings -.->|"sends settings"| node_background
node_background -.->|"uses credentials"| node_lcu
node_background -.->|"uses API helper"| node_request
node_lcu -->|"reads process auth"| node_league
node_request -->|"calls local API"| node_league
node_common -->|"builds site links"| node_stats

click node_main "https://github.com/lyticalapp/lytical/blob/main/src/main.js"
click node_app "https://github.com/lyticalapp/lytical/blob/main/src/App.vue"
click node_navbar "https://github.com/lyticalapp/lytical/blob/main/src/components/Navbar.vue"
click node_home "https://github.com/lyticalapp/lytical/blob/main/src/HomeView.vue"
click node_playercard "https://github.com/lyticalapp/lytical/blob/main/src/components/PlayerCard.vue"
click node_playerrank "https://github.com/lyticalapp/lytical/blob/main/src/components/PlayerRank.vue"
click node_mostplayed "https://github.com/lyticalapp/lytical/blob/main/src/components/MostPlayedChampions.vue"
click node_matchhistory "https://github.com/lyticalapp/lytical/blob/main/src/components/MatchHistoryItem.vue"
click node_matchdetails "https://github.com/lyticalapp/lytical/blob/main/src/components/MatchDetailsItem.vue"
click node_settings "https://github.com/lyticalapp/lytical/blob/main/src/components/SettingsMenu.vue"
click node_lobby "https://github.com/lyticalapp/lytical/blob/main/src/LobbyView.vue"
click node_lobbyplayer "https://github.com/lyticalapp/lytical/blob/main/src/components/LobbyPlayerItem.vue"
click node_error "https://github.com/lyticalapp/lytical/blob/main/src/components/LCUErrorMessage.vue"
click node_loading "https://github.com/lyticalapp/lytical/blob/main/src/components/LoadingDots.vue"
click node_common "https://github.com/lyticalapp/lytical/blob/main/src/res/common.js"
click node_background "https://github.com/lyticalapp/lytical/blob/main/src/background.js"
click node_lcu "https://github.com/lyticalapp/lytical/blob/main/src/res/lcu.js"
click node_request "https://github.com/lyticalapp/lytical/blob/main/src/res/request.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_main,node_app,node_navbar,node_settings,node_error,node_loading,node_league toneBlue
class node_home,node_playercard,node_playerrank,node_mostplayed,node_matchhistory,node_matchdetails toneAmber
class node_lobby,node_lobbyplayer toneMint
class node_common,node_background,node_lcu,node_request toneRose
class node_user,node_stats toneIndigo
```

## Components

### App navigation

- [Vue entry](https://github.com/lyticalapp/lytical/blob/main/src/main.js): `src/main.js`
- [App shell](https://github.com/lyticalapp/lytical/blob/main/src/App.vue): `src/App.vue`
- [Navigation bar](https://github.com/lyticalapp/lytical/blob/main/src/components/Navbar.vue): `src/components/Navbar.vue`
- [User settings](https://github.com/lyticalapp/lytical/blob/main/src/components/SettingsMenu.vue): `src/components/SettingsMenu.vue`
- [Client error](https://github.com/lyticalapp/lytical/blob/main/src/components/LCUErrorMessage.vue): `src/components/LCUErrorMessage.vue`
- [Loading indicator](https://github.com/lyticalapp/lytical/blob/main/src/components/LoadingDots.vue): `src/components/LoadingDots.vue`

### Summoner analytics

- [Profile search](https://github.com/lyticalapp/lytical/blob/main/src/HomeView.vue): `src/HomeView.vue`
- [Player profile](https://github.com/lyticalapp/lytical/blob/main/src/components/PlayerCard.vue): `src/components/PlayerCard.vue`
- [Rank summary](https://github.com/lyticalapp/lytical/blob/main/src/components/PlayerRank.vue): `src/components/PlayerRank.vue`
- [Champion overview](https://github.com/lyticalapp/lytical/blob/main/src/components/MostPlayedChampions.vue): `src/components/MostPlayedChampions.vue`
- [Match history](https://github.com/lyticalapp/lytical/blob/main/src/components/MatchHistoryItem.vue): `src/components/MatchHistoryItem.vue`
- [Match details](https://github.com/lyticalapp/lytical/blob/main/src/components/MatchDetailsItem.vue): `src/components/MatchDetailsItem.vue`

### Lobby analysis

- [Lobby view](https://github.com/lyticalapp/lytical/blob/main/src/LobbyView.vue): `src/LobbyView.vue`
- [Teammate card](https://github.com/lyticalapp/lytical/blob/main/src/components/LobbyPlayerItem.vue): `src/components/LobbyPlayerItem.vue`

### Client integration

- [Game data helpers](https://github.com/lyticalapp/lytical/blob/main/src/res/common.js): `src/res/common.js`
- [Electron process](https://github.com/lyticalapp/lytical/blob/main/src/background.js): `src/background.js`
- [Client credentials](https://github.com/lyticalapp/lytical/blob/main/src/res/lcu.js): `src/res/lcu.js`
- [Local API requests](https://github.com/lyticalapp/lytical/blob/main/src/res/request.js): `src/res/request.js`

### Other components

- **Player**
- **League Client**
- **Stats websites**

## Connections

- Player → Vue entry: opens app (evidence: `README.md`)
- Vue entry → App shell: mounts (evidence: `src/main.js`)
- Vue entry → Profile search: routes (evidence: `src/main.js`)
- Vue entry → Lobby view: routes (evidence: `src/main.js`)
- App shell → Navigation bar: renders (evidence: `src/App.vue`)
- Navigation bar → User settings: opens (evidence: `src/components/Navbar.vue`)
- Player → Profile search: searches summoner (evidence: `README.md`)
- Profile search → Player profile: renders (evidence: `src/HomeView.vue`)
- Profile search → Rank summary: renders (evidence: `src/HomeView.vue`)
- Profile search → Champion overview: renders (evidence: `src/HomeView.vue`)
- Profile search → Match history: renders (evidence: `src/HomeView.vue`)
- Match history → Match details: renders (evidence: `src/components/MatchHistoryItem.vue`)
- Profile search → Game data helpers: filters games (evidence: `src/HomeView.vue`)
- Player profile → Game data helpers: uses game data (evidence: `src/components/PlayerCard.vue`)
- Rank summary → Game data helpers: uses game data (evidence: `src/components/PlayerRank.vue`)
- Champion overview → Game data helpers: uses game data (evidence: `src/components/MostPlayedChampions.vue`)
- Match history → Game data helpers: uses game data (evidence: `src/components/MatchHistoryItem.vue`)
- Match details → Game data helpers: uses game data (evidence: `src/components/MatchDetailsItem.vue`)
- Match history → Electron process: requests details
- Player → Lobby view: opens lobby view
- Lobby view → Teammate card: renders teammates (evidence: `src/LobbyView.vue`)
- Lobby view → Game data helpers: filters games (evidence: `src/LobbyView.vue`)
- Teammate card → Game data helpers: uses game data (evidence: `src/components/LobbyPlayerItem.vue`)
- Profile search → Electron process: requests analytics
- Lobby view → Electron process: requests lobby data
- User settings → Electron process: sends settings
- Electron process → Client credentials: uses credentials (evidence: `src/background.js`)
- Electron process → Local API requests: uses API helper (evidence: `src/background.js`)
- Client credentials → League Client: reads process auth (evidence: `src/res/lcu.js`)
- Local API requests → League Client: calls local API (evidence: `src/res/request.js`)
- Game data helpers → Stats websites: builds site links (evidence: `src/res/common.js`)
