# nyx0ra/lol-aram-mayhem-hextech-helper architecture

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

- Interactive diagram: https://gitdiagram.com/nyx0ra/lol-aram-mayhem-hextech-helper
- Repository: https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper

## Overview

This is a Windows desktop assistant for League of Legends ARAM Mayhem: it identifies the current champion, recognizes offered augments, and displays ranked recommendations in an in-game overlay. The user-facing flow is GUI startup → champion selection or refresh → F6 screen analysis → recommendation overlay. A separate GUI-driven maintenance flow checks or updates the augment dataset using OP.GG scraping and official champion metadata, with a GitHub download fallback. Some internal wiring is documented rather than visible in the excerpts; those connections are marked accordingly.

Main entry points: [`scripts/updater.py`](https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/scripts/updater.py) (Update coordinator), [`gui_launcher.py`](https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/gui_launcher.py) (Desktop GUI), [`main.py`](https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/main.py) (Recommendation data), [`scripts/lcu_connector.py`](https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/scripts/lcu_connector.py) (LCU connector)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Desktop assistant"]
  node_gui["Desktop GUI<br/>[gui_launcher.py]"]
  node_controls["Hotkey controls<br/>[main.py]"]
  node_overlay["Game overlay<br/>[main.py]"]
end

subgraph group_recommend["Recognition and recommendations"]
  node_analyzer["OCR and ranking<br/>[main.py]"]
  node_data_manager["Recommendation data<br/>[main.py]"]
  node_augment_data[("Augment database<br/>[hero_augments.csv]")]
  node_pinyin_data["Pinyin mappings<br/>[pinyin_map.json]"]
end

subgraph group_client["Game client integration"]
  node_lcu["LCU connector<br/>[lcu_connector.py]"]
  node_champion_data["Champion mappings<br/>[champions.json]"]
end

subgraph group_maintain["Data maintenance"]
  node_update_ui["Update panel<br/>[gui_launcher.py]"]
  node_updater["Update coordinator<br/>[updater.py]"]
  node_scraper["OP.GG scraper<br/>[hero_scraper.py]"]
end

node_user(("Player"))
node_game_client(("League client"))
node_official_data[("Riot champion data")]
node_opgg(("OP.GG"))
node_github(("GitHub data fallback"))

node_user -->|"starts and operates"| node_gui
node_gui -->|"loads data"| node_data_manager
node_gui -.->|"starts engine"| node_controls
node_controls -->|"requests champion"| node_lcu
node_game_client -->|"serves local API"| node_lcu
node_lcu -->|"loads mappings"| node_champion_data
node_controls -->|"triggers F6 analysis"| node_analyzer
node_analyzer -->|"matches augment"| node_data_manager
node_data_manager -->|"loads records"| node_augment_data
node_data_manager -->|"loads mappings"| node_pinyin_data
node_analyzer -->|"shows recommendation"| node_overlay
node_user -->|"requests update"| node_update_ui
node_gui -->|"runs update"| node_updater
node_updater -->|"fetches metadata"| node_official_data
node_updater -->|"requests crawls"| node_scraper
node_scraper -->|"scrapes augment data"| node_opgg
node_updater -->|"merges and saves"| node_augment_data
node_updater -->|"downloads fallback"| node_github

click node_gui "https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/gui_launcher.py"
click node_controls "https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/main.py"
click node_overlay "https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/main.py"
click node_analyzer "https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/main.py"
click node_data_manager "https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/main.py"
click node_augment_data "https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/data/hero_augments.csv"
click node_pinyin_data "https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/data/pinyin_map.json"
click node_lcu "https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/scripts/lcu_connector.py"
click node_champion_data "https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/data/champions.json"
click node_update_ui "https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/gui_launcher.py"
click node_updater "https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/scripts/updater.py"
click node_scraper "https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/scripts/hero_scraper.py"

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_gui,node_controls,node_overlay,node_game_client toneBlue
class node_analyzer,node_data_manager,node_augment_data,node_pinyin_data,node_official_data toneAmber
class node_lcu,node_champion_data toneMint
class node_update_ui,node_updater,node_scraper toneRose
class node_user,node_opgg,node_github toneIndigo
```

## Components

### Desktop assistant

- [Desktop GUI](https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/gui_launcher.py): `gui_launcher.py`
- [Hotkey controls](https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/main.py): `main.py`
- [Game overlay](https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/main.py): `main.py`

### Recognition and recommendations

- [OCR and ranking](https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/main.py): `main.py`
- [Recommendation data](https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/main.py): `main.py`
- [Augment database](https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/data/hero_augments.csv): `data/hero_augments.csv`
- [Pinyin mappings](https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/data/pinyin_map.json): `data/pinyin_map.json`

### Game client integration

- [LCU connector](https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/scripts/lcu_connector.py): `scripts/lcu_connector.py`
- [Champion mappings](https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/data/champions.json): `data/champions.json`

### Data maintenance

- [Update panel](https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/gui_launcher.py): `gui_launcher.py`
- [Update coordinator](https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/scripts/updater.py): `scripts/updater.py`
- [OP.GG scraper](https://github.com/nyx0ra/lol-aram-mayhem-hextech-helper/blob/main/scripts/hero_scraper.py): `scripts/hero_scraper.py`

### Other components

- **Player**
- **League client**
- **Riot champion data**
- **OP.GG**
- **GitHub data fallback**

## Connections

- Player → Desktop GUI: starts and operates (evidence: `README.md`)
- Desktop GUI → Recommendation data: loads data (evidence: `gui_launcher.py`)
- Desktop GUI → Hotkey controls: starts engine (evidence: `gui_launcher.py`)
- Hotkey controls → LCU connector: requests champion (evidence: `README.md`)
- League client → LCU connector: serves local API (evidence: `README.md`)
- LCU connector → Champion mappings: loads mappings (evidence: `scripts/lcu_connector.py`)
- Hotkey controls → OCR and ranking: triggers F6 analysis (evidence: `README.md`)
- OCR and ranking → Recommendation data: matches augment (evidence: `main.py`)
- Recommendation data → Augment database: loads records (evidence: `main.py`)
- Recommendation data → Pinyin mappings: loads mappings (evidence: `main.py`)
- OCR and ranking → Game overlay: shows recommendation (evidence: `README.md`)
- Player → Update panel: requests update (evidence: `README.md`)
- Desktop GUI → Update coordinator: runs update (evidence: `gui_launcher.py`)
- Update coordinator → Riot champion data: fetches metadata (evidence: `scripts/updater.py`)
- Update coordinator → OP.GG scraper: requests crawls (evidence: `scripts/updater.py`)
- OP.GG scraper → OP.GG: scrapes augment data (evidence: `scripts/hero_scraper.py`)
- Update coordinator → Augment database: merges and saves (evidence: `scripts/updater.py`)
- Update coordinator → GitHub data fallback: downloads fallback (evidence: `README.md`)
