# caiomonteir0/hunter-launcher architecture

> Architecture diagram of the GitHub repository caiomonteir0/hunter-launcher, 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/caiomonteir0/hunter-launcher
- Repository: https://github.com/caiomonteir0/hunter-launcher

## Overview

Hunter Launcher is a Windows game-library manager with a pywebview interface. Users browse and filter their library, add or launch games, customize artwork, and manage interface/API settings. The Python bridge coordinates these actions with library logic, persistence, artwork search, and updates. The README documents splash-screen and manual-cover-search capabilities; source excerpts do not expose all their wiring. Edges are limited to relationships shown in excerpts, the source index, or README.

Main entry points: [`launcher/main.py`](https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/main.py) (Python API bridge), [`launcher/gui/script.js`](https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/gui/script.js) (Library interface), [`launcher/core/search_api.py`](https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/core/search_api.py) (Artwork search), [`launcher/core/updater.py`](https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/core/updater.py) (Release updater)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_ui["Library interface<br/>[script.js]"]
  node_ui_pages["Interface pages<br/>[index.html]"]
  node_bridge["Python API bridge<br/>[main.py]"]
end

subgraph group_library["Library operations"]
  node_library_logic["Game operations<br/>[launcher_logic.py]"]
  node_installed_games["Installed-game discovery<br/>[main.py]"]
end

subgraph group_artwork["Artwork and search"]
  node_cover_manager["Local artwork<br/>[cover_manager.py]"]
  node_cover_search["Artwork search<br/>[search_api.py]"]
end

subgraph group_persistence["Persistence and settings"]
  node_game_store[("Game library data<br/>[database.py]")]
  node_settings[("Settings and API key<br/>[settings.py]")]
end

subgraph group_maintenance["Updates"]
  node_updater["Release updater<br/>[updater.py]"]
end

node_user(("Launcher user"))
node_steamgriddb["SteamGridDB"]
node_github["GitHub releases"]

node_user -->|"uses"| node_ui
node_ui -->|"renders"| node_ui_pages
node_ui -->|"calls API"| node_bridge
node_bridge -->|"delegates"| node_library_logic
node_bridge -->|"discovers"| node_installed_games
node_bridge -->|"reads and writes"| node_game_store
node_bridge -->|"manages artwork"| node_cover_manager
node_bridge -->|"searches artwork"| node_cover_search
node_bridge -->|"manages settings"| node_settings
node_bridge -->|"delegates updates"| node_updater
node_cover_search -->|"searches and downloads"| node_steamgriddb
node_updater -->|"checks releases"| node_github

click node_ui "https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/gui/script.js"
click node_ui_pages "https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/gui/index.html"
click node_bridge "https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/main.py"
click node_library_logic "https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/core/launcher_logic.py"
click node_installed_games "https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/main.py"
click node_game_store "https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/core/database.py"
click node_cover_manager "https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/core/cover_manager.py"
click node_cover_search "https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/core/search_api.py"
click node_settings "https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/core/settings.py"
click node_updater "https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/core/updater.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_ui,node_ui_pages,node_bridge,node_user toneBlue
class node_library_logic,node_installed_games toneAmber
class node_cover_manager,node_cover_search toneMint
class node_game_store,node_settings toneRose
class node_updater,node_steamgriddb,node_github toneIndigo
```

## Components

### User interface

- [Library interface](https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/gui/script.js): `launcher/gui/script.js`
- [Interface pages](https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/gui/index.html): `launcher/gui/index.html`
- [Python API bridge](https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/main.py): `launcher/main.py`

### Library operations

- [Game operations](https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/core/launcher_logic.py): `launcher/core/launcher_logic.py`
- [Installed-game discovery](https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/main.py): `launcher/main.py`

### Artwork and search

- [Local artwork](https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/core/cover_manager.py): `launcher/core/cover_manager.py`
- [Artwork search](https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/core/search_api.py): `launcher/core/search_api.py`

### Persistence and settings

- [Game library data](https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/core/database.py): `launcher/core/database.py`
- [Settings and API key](https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/core/settings.py): `launcher/core/settings.py`

### Updates

- [Release updater](https://github.com/caiomonteir0/hunter-launcher/blob/main/launcher/core/updater.py): `launcher/core/updater.py`

### Other components

- **Launcher user**
- **SteamGridDB**
- **GitHub releases**

## Connections

- Launcher user → Library interface: uses (evidence: `README.md`)
- Library interface → Interface pages: renders (evidence: `README.md`)
- Library interface → Python API bridge: calls API (evidence: `launcher/gui/script.js`)
- Python API bridge → Game operations: delegates (evidence: `launcher/main.py`)
- Python API bridge → Installed-game discovery: discovers (evidence: `launcher/main.py`)
- Python API bridge → Game library data: reads and writes (evidence: `launcher/main.py`)
- Python API bridge → Local artwork: manages artwork (evidence: `launcher/main.py`)
- Python API bridge → Artwork search: searches artwork (evidence: `launcher/main.py`)
- Python API bridge → Settings and API key: manages settings (evidence: `launcher/main.py`)
- Python API bridge → Release updater: delegates updates (evidence: `launcher/main.py`)
- Artwork search → SteamGridDB: searches and downloads (evidence: `launcher/core/search_api.py`)
- Release updater → GitHub releases: checks releases (evidence: `launcher/core/updater.py`)
