# ericktech3/tibia-tools architecture

> Architecture diagram of the GitHub repository ericktech3/tibia-tools, 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/ericktech3/tibia-tools
- Repository: https://github.com/ericktech3/tibia-tools

## Overview

Tibia Tools is an Android companion app for Tibia players. The main workflow is: the user opens a feature, its controller gathers remote game data where needed, applies domain logic, and presents results; offline tools calculate locally and persistent services retain preferences and cached responses. The graph includes the README’s major capabilities, including character history, boss and boosted tracking, favorites, calculators, monitoring, and updates. Some subsystem links are documented rather than verified in sampled controller code; those are marked dashed.

Main entry points: [`main.py`](https://github.com/ericktech3/tibia-tools/blob/main/main.py) (App composition), [`features/char/_common.py`](https://github.com/ericktech3/tibia-tools/blob/main/features/char/_common.py) (Character assembly), [`core/http_client.py`](https://github.com/ericktech3/tibia-tools/blob/main/core/http_client.py) (HTTP cache client), [`features/char/controller.py`](https://github.com/ericktech3/tibia-tools/blob/main/features/char/controller.py) (Character lookup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and features"]
  node_app["App composition<br/>[main.py]"]
  node_character["Character lookup<br/>[controller.py]"]
  node_char_views["Character views<br/>[display.py]"]
  node_char_common["Character assembly<br/>[_common.py]"]
  node_xp_history["XP history<br/>[xp_stats.py]"]
  node_char_stalker["Account suggestions<br/>[stalker.py]"]
  node_favorites["Favorites<br/>[controller.py]"]
  node_bosses["Boss tracking<br/>[controller.py]"]
  node_boss_logic["Boss filters<br/>[logic.py]"]
  node_boosted["Boosted tracker<br/>[controller.py]"]
  node_settings["Settings and updates<br/>[controller.py]"]
  node_imb_controller["Imbuements browser<br/>[controller.py]"]
end

subgraph group_game_data["Game data"]
  node_tibiadata["TibiaData<br/>[tibiadata.py]"]
  node_tibia_com["Tibia.com<br/>[tibia_com.py]"]
  node_stalker_api["Tibia Stalker<br/>[tibiastalker.py]"]
  node_guildstats["GuildStats parser"]
  node_exevo["ExevoPan bosses<br/>[exevopan.py]"]
  node_boss_parser["Boss page parser<br/>[exevopan_parser.py]"]
  node_release["Release lookup<br/>[release_service.py]"]
  node_github["GitHub releases<br/>[github_releases.py]"]
end

subgraph group_calculators["Offline calculators"]
  node_training["Training calculator<br/>[training.py]"]
  node_stamina["Stamina calculator<br/>[stamina.py]"]
  node_imbuements["Imbuements data<br/>[imbuements.py]"]
  node_hunt["Hunt analyzer<br/>[hunt.py]"]
  node_share_xp["Share XP<br/>[exp_loss.py]"]
end

subgraph group_platform["Persistence and platform"]
  node_monitor["Background monitoring<br/>[main.py]"]
  node_http["HTTP cache client<br/>[http_client.py]"]
  node_cache[("Offline response cache<br/>[http_cache.py]")]
  node_result["Result and data age<br/>[result.py]"]
  node_persistence["App persistence<br/>[persistence.py]"]
  node_android["Android bridge<br/>[android_bridge.py]"]
end

node_player(("Player"))

node_player -->|"uses"| node_app
node_app -->|"routes to"| node_character
node_app -->|"routes to"| node_bosses
node_app -->|"routes to"| node_boosted
node_app -->|"routes to"| node_favorites
node_app -->|"routes to"| node_settings
node_app -->|"routes to"| node_imb_controller
node_app -.->|"starts monitoring"| node_monitor
node_character -->|"delegates to"| node_char_common
node_character -->|"uses views"| node_char_views
node_char_common -->|"uses"| node_xp_history
node_char_common -->|"fetches data"| node_tibiadata
node_char_common -->|"fetches data"| node_tibia_com
node_char_common -->|"parses XP"| node_guildstats
node_char_stalker -.->|"fetches suggestions"| node_stalker_api
node_bosses -->|"filters and sorts"| node_boss_logic
node_bosses -.->|"fetches bosses"| node_exevo
node_exevo -->|"parses response"| node_boss_parser
node_boosted -->|"fetches data"| node_tibiadata
node_imb_controller -->|"loads entries"| node_imbuements
node_player -->|"enters parameters"| node_training
node_player -->|"enters stamina"| node_stamina
node_player -->|"pastes session"| node_hunt
node_player -->|"enters level"| node_share_xp
node_settings -->|"checks updates"| node_release
node_release -->|"queries releases"| node_github
node_http -->|"uses"| node_cache
node_exevo -->|"requests pages"| node_http
node_tibia_com -->|"requests data"| node_http
node_tibiadata -.->|"uses client"| node_http
node_app -.->|"persists settings"| node_persistence
node_app -.->|"uses Android services"| node_android

click node_app "https://github.com/ericktech3/tibia-tools/blob/main/main.py"
click node_character "https://github.com/ericktech3/tibia-tools/blob/main/features/char/controller.py"
click node_char_views "https://github.com/ericktech3/tibia-tools/blob/main/features/char/display.py"
click node_char_common "https://github.com/ericktech3/tibia-tools/blob/main/features/char/_common.py"
click node_xp_history "https://github.com/ericktech3/tibia-tools/blob/main/features/char/xp_stats.py"
click node_char_stalker "https://github.com/ericktech3/tibia-tools/blob/main/features/char/stalker.py"
click node_favorites "https://github.com/ericktech3/tibia-tools/blob/main/features/favorites/controller.py"
click node_bosses "https://github.com/ericktech3/tibia-tools/blob/main/features/bosses/controller.py"
click node_boss_logic "https://github.com/ericktech3/tibia-tools/blob/main/features/bosses/logic.py"
click node_boosted "https://github.com/ericktech3/tibia-tools/blob/main/features/boosted/controller.py"
click node_settings "https://github.com/ericktech3/tibia-tools/blob/main/features/settings/controller.py"
click node_monitor "https://github.com/ericktech3/tibia-tools/blob/main/service/main.py"
click node_tibiadata "https://github.com/ericktech3/tibia-tools/blob/main/integrations/tibiadata.py"
click node_tibia_com "https://github.com/ericktech3/tibia-tools/blob/main/integrations/tibia_com.py"
click node_stalker_api "https://github.com/ericktech3/tibia-tools/blob/main/integrations/tibiastalker.py"
click node_guildstats "https://github.com/ericktech3/tibia-tools/blob/main/integrations/parsers/guildstats_parser.py"
click node_exevo "https://github.com/ericktech3/tibia-tools/blob/main/integrations/exevopan.py"
click node_boss_parser "https://github.com/ericktech3/tibia-tools/blob/main/integrations/parsers/exevopan_parser.py"
click node_http "https://github.com/ericktech3/tibia-tools/blob/main/core/http_client.py"
click node_cache "https://github.com/ericktech3/tibia-tools/blob/main/core/http_cache.py"
click node_result "https://github.com/ericktech3/tibia-tools/blob/main/core/result.py"
click node_persistence "https://github.com/ericktech3/tibia-tools/blob/main/services/persistence.py"
click node_android "https://github.com/ericktech3/tibia-tools/blob/main/services/android_bridge.py"
click node_training "https://github.com/ericktech3/tibia-tools/blob/main/core/training.py"
click node_stamina "https://github.com/ericktech3/tibia-tools/blob/main/core/stamina.py"
click node_imbuements "https://github.com/ericktech3/tibia-tools/blob/main/core/imbuements.py"
click node_imb_controller "https://github.com/ericktech3/tibia-tools/blob/main/features/imbuements/controller.py"
click node_hunt "https://github.com/ericktech3/tibia-tools/blob/main/core/hunt.py"
click node_share_xp "https://github.com/ericktech3/tibia-tools/blob/main/core/exp_loss.py"
click node_release "https://github.com/ericktech3/tibia-tools/blob/main/services/release_service.py"
click node_github "https://github.com/ericktech3/tibia-tools/blob/main/integrations/github_releases.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_app,node_character,node_char_views,node_char_common,node_xp_history,node_char_stalker,node_favorites,node_bosses,node_boss_logic,node_boosted,node_settings,node_imb_controller toneBlue
class node_tibiadata,node_tibia_com,node_stalker_api,node_guildstats,node_exevo,node_boss_parser,node_release,node_github toneAmber
class node_training,node_stamina,node_imbuements,node_hunt,node_share_xp toneMint
class node_monitor,node_http,node_cache,node_result,node_persistence,node_android toneRose
class node_player toneIndigo
```

## Components

### App and features

- [App composition](https://github.com/ericktech3/tibia-tools/blob/main/main.py): `main.py`
- [Character lookup](https://github.com/ericktech3/tibia-tools/blob/main/features/char/controller.py): `features/char/controller.py`
- [Character views](https://github.com/ericktech3/tibia-tools/blob/main/features/char/display.py): `features/char/display.py`
- [Character assembly](https://github.com/ericktech3/tibia-tools/blob/main/features/char/_common.py): `features/char/_common.py`
- [XP history](https://github.com/ericktech3/tibia-tools/blob/main/features/char/xp_stats.py): `features/char/xp_stats.py`
- [Account suggestions](https://github.com/ericktech3/tibia-tools/blob/main/features/char/stalker.py): `features/char/stalker.py`
- [Favorites](https://github.com/ericktech3/tibia-tools/blob/main/features/favorites/controller.py): `features/favorites/controller.py`
- [Boss tracking](https://github.com/ericktech3/tibia-tools/blob/main/features/bosses/controller.py): `features/bosses/controller.py`
- [Boss filters](https://github.com/ericktech3/tibia-tools/blob/main/features/bosses/logic.py): `features/bosses/logic.py`
- [Boosted tracker](https://github.com/ericktech3/tibia-tools/blob/main/features/boosted/controller.py): `features/boosted/controller.py`
- [Settings and updates](https://github.com/ericktech3/tibia-tools/blob/main/features/settings/controller.py): `features/settings/controller.py`
- [Imbuements browser](https://github.com/ericktech3/tibia-tools/blob/main/features/imbuements/controller.py): `features/imbuements/controller.py`

### Game data

- [TibiaData](https://github.com/ericktech3/tibia-tools/blob/main/integrations/tibiadata.py): `integrations/tibiadata.py`
- [Tibia.com](https://github.com/ericktech3/tibia-tools/blob/main/integrations/tibia_com.py): `integrations/tibia_com.py`
- [Tibia Stalker](https://github.com/ericktech3/tibia-tools/blob/main/integrations/tibiastalker.py): `integrations/tibiastalker.py`
- [GuildStats parser](https://github.com/ericktech3/tibia-tools/blob/main/integrations/parsers/guildstats_parser.py): `integrations/parsers/guildstats_parser.py`
- [ExevoPan bosses](https://github.com/ericktech3/tibia-tools/blob/main/integrations/exevopan.py): `integrations/exevopan.py`
- [Boss page parser](https://github.com/ericktech3/tibia-tools/blob/main/integrations/parsers/exevopan_parser.py): `integrations/parsers/exevopan_parser.py`
- [Release lookup](https://github.com/ericktech3/tibia-tools/blob/main/services/release_service.py): `services/release_service.py`
- [GitHub releases](https://github.com/ericktech3/tibia-tools/blob/main/integrations/github_releases.py): `integrations/github_releases.py`

### Offline calculators

- [Training calculator](https://github.com/ericktech3/tibia-tools/blob/main/core/training.py): `core/training.py`
- [Stamina calculator](https://github.com/ericktech3/tibia-tools/blob/main/core/stamina.py): `core/stamina.py`
- [Imbuements data](https://github.com/ericktech3/tibia-tools/blob/main/core/imbuements.py): `core/imbuements.py`
- [Hunt analyzer](https://github.com/ericktech3/tibia-tools/blob/main/core/hunt.py): `core/hunt.py`
- [Share XP](https://github.com/ericktech3/tibia-tools/blob/main/core/exp_loss.py): `core/exp_loss.py`

### Persistence and platform

- [Background monitoring](https://github.com/ericktech3/tibia-tools/blob/main/service/main.py): `service/main.py`
- [HTTP cache client](https://github.com/ericktech3/tibia-tools/blob/main/core/http_client.py): `core/http_client.py`
- [Offline response cache](https://github.com/ericktech3/tibia-tools/blob/main/core/http_cache.py): `core/http_cache.py`
- [Result and data age](https://github.com/ericktech3/tibia-tools/blob/main/core/result.py): `core/result.py`
- [App persistence](https://github.com/ericktech3/tibia-tools/blob/main/services/persistence.py): `services/persistence.py`
- [Android bridge](https://github.com/ericktech3/tibia-tools/blob/main/services/android_bridge.py): `services/android_bridge.py`

### Other components

- **Player**

## Connections

- Player → App composition: uses (evidence: `README.md`)
- App composition → Character lookup: routes to (evidence: `README.md`)
- App composition → Boss tracking: routes to (evidence: `README.md`)
- App composition → Boosted tracker: routes to (evidence: `README.md`)
- App composition → Favorites: routes to (evidence: `README.md`)
- App composition → Settings and updates: routes to (evidence: `README.md`)
- App composition → Imbuements browser: routes to (evidence: `README.md`)
- App composition → Background monitoring: starts monitoring (evidence: `README.md`)
- Character lookup → Character assembly: delegates to (evidence: `features/char/controller.py`)
- Character lookup → Character views: uses views (evidence: `features/char/controller.py`)
- Character assembly → XP history: uses (evidence: `features/char/_common.py`)
- Character assembly → TibiaData: fetches data (evidence: `features/char/_common.py`)
- Character assembly → Tibia.com: fetches data (evidence: `features/char/_common.py`)
- Character assembly → GuildStats parser: parses XP
- Account suggestions → Tibia Stalker: fetches suggestions (evidence: `README.md`)
- Boss tracking → Boss filters: filters and sorts (evidence: `features/bosses/controller.py`)
- Boss tracking → ExevoPan bosses: fetches bosses (evidence: `README.md`)
- ExevoPan bosses → Boss page parser: parses response (evidence: `integrations/exevopan.py`)
- Boosted tracker → TibiaData: fetches data (evidence: `features/boosted/controller.py`)
- Imbuements browser → Imbuements data: loads entries (evidence: `features/imbuements/controller.py`)
- Player → Training calculator: enters parameters (evidence: `README.md`)
- Player → Stamina calculator: enters stamina (evidence: `README.md`)
- Player → Hunt analyzer: pastes session (evidence: `README.md`)
- Player → Share XP: enters level (evidence: `README.md`)
- Settings and updates → Release lookup: checks updates (evidence: `features/settings/controller.py`)
- Release lookup → GitHub releases: queries releases (evidence: `services/release_service.py`)
- HTTP cache client → Offline response cache: uses (evidence: `core/http_client.py`)
- ExevoPan bosses → HTTP cache client: requests pages (evidence: `integrations/exevopan.py`)
- Tibia.com → HTTP cache client: requests data (evidence: `integrations/tibia_com.py`)
- TibiaData → HTTP cache client: uses client (evidence: `README.md`)
- App composition → App persistence: persists settings (evidence: `README.md`)
- App composition → Android bridge: uses Android services (evidence: `README.md`)
