# yerpanderp/phlox architecture

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

- Interactive diagram: https://gitdiagram.com/yerpanderp/phlox
- Repository: https://github.com/yerpanderp/phlox

## Overview

Phlox is a Windows Bee Swarm Simulator boost tracker. Its main workflow captures the game’s on-screen buff area, detects icons and updates timers, stacks, abilities and morph state, then presents indicators and alerts. The README also documents lineup readiness, configurable themes and placement, a hotbar macro, and in-app updates. Main-module excerpts show capture and engine feeding; the README supports several user-facing capabilities whose implementation details were not sampled, so those links are documented rather than inferred from filenames.

Main entry points: [`main.py`](https://github.com/yerpanderp/phlox/blob/main/main.py) (App, settings and alerts), [`overlay_render.py`](https://github.com/yerpanderp/phlox/blob/main/overlay_render.py) (Indicator renderer), [`engine.py`](https://github.com/yerpanderp/phlox/blob/main/engine.py) (Buff detection and timers), [`macro.py`](https://github.com/yerpanderp/phlox/blob/main/macro.py) (Hotbar macro)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and capture"]
  node_app["App, settings and alerts<br/>[main.py]"]
  node_capture["Screen capture<br/>[main.py]"]
end

subgraph group_tracking["Detection and tracking"]
  node_tracker["Buff detection and timers<br/>[engine.py]"]
  node_ability["Ability counters<br/>[engine.py]"]
  node_lineup["Lineup readiness<br/>[engine.py]"]
  node_templates["Buff templates"]
  node_ability_assets["Ability references"]
end

subgraph group_presentation["Overlay and appearance"]
  node_overlay["Indicator renderer<br/>[overlay_render.py]"]
  node_themes["Theme colors<br/>[themes.py]"]
  node_decor["Theme decorations<br/>[decor.py]"]
  node_icons["Overlay icons and fonts"]
end

subgraph group_extras["Macro and updates"]
  node_macro["Hotbar macro<br/>[macro.py]"]
  node_updater["Update checker and installer<br/>[updater.py]"]
end

node_user(("Player"))
node_game["Game screen"]
node_roblox["Roblox window"]
node_github["GitHub releases"]

node_user -.->|"configures"| node_app
node_game -.->|"displays buffs"| node_capture
node_capture -->|"feeds frames"| node_tracker
node_templates -->|"provides matches"| node_tracker
node_ability_assets -->|"provides references"| node_ability
node_tracker -->|"returns state"| node_app
node_app -.->|"renders indicators"| node_overlay
node_overlay -->|"uses colors"| node_themes
node_overlay -.->|"uses motifs"| node_decor
node_overlay -->|"loads assets"| node_icons
node_app -->|"configures tracking"| node_ability
node_app -.->|"shows readiness"| node_lineup
node_app -.->|"offers macro"| node_macro
node_macro -->|"sends hotkeys"| node_roblox
node_app -.->|"checks updates"| node_updater
node_updater -->|"checks and downloads"| node_github
node_app -.->|"alerts"| node_user

click node_app "https://github.com/yerpanderp/phlox/blob/main/main.py"
click node_capture "https://github.com/yerpanderp/phlox/blob/main/main.py"
click node_tracker "https://github.com/yerpanderp/phlox/blob/main/engine.py"
click node_ability "https://github.com/yerpanderp/phlox/blob/main/engine.py"
click node_lineup "https://github.com/yerpanderp/phlox/blob/main/engine.py"
click node_templates "https://github.com/yerpanderp/phlox/tree/main/assets/templates"
click node_ability_assets "https://github.com/yerpanderp/phlox/tree/main/assets/abilities"
click node_overlay "https://github.com/yerpanderp/phlox/blob/main/overlay_render.py"
click node_themes "https://github.com/yerpanderp/phlox/blob/main/themes.py"
click node_decor "https://github.com/yerpanderp/phlox/blob/main/decor.py"
click node_icons "https://github.com/yerpanderp/phlox/tree/main/assets"
click node_macro "https://github.com/yerpanderp/phlox/blob/main/macro.py"
click node_updater "https://github.com/yerpanderp/phlox/blob/main/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_app,node_capture,node_game toneBlue
class node_tracker,node_ability,node_lineup,node_templates,node_ability_assets toneAmber
class node_overlay,node_themes,node_decor,node_icons toneMint
class node_macro,node_updater toneRose
class node_user,node_roblox,node_github toneIndigo
```

## Components

### App and capture

- [App, settings and alerts](https://github.com/yerpanderp/phlox/blob/main/main.py): `main.py`
- [Screen capture](https://github.com/yerpanderp/phlox/blob/main/main.py): `main.py`

### Detection and tracking

- [Buff detection and timers](https://github.com/yerpanderp/phlox/blob/main/engine.py): `engine.py`
- [Ability counters](https://github.com/yerpanderp/phlox/blob/main/engine.py): `engine.py`
- [Lineup readiness](https://github.com/yerpanderp/phlox/blob/main/engine.py): `engine.py`
- [Buff templates](https://github.com/yerpanderp/phlox/tree/main/assets/templates): `assets/templates`
- [Ability references](https://github.com/yerpanderp/phlox/tree/main/assets/abilities): `assets/abilities`

### Overlay and appearance

- [Indicator renderer](https://github.com/yerpanderp/phlox/blob/main/overlay_render.py): `overlay_render.py`
- [Theme colors](https://github.com/yerpanderp/phlox/blob/main/themes.py): `themes.py`
- [Theme decorations](https://github.com/yerpanderp/phlox/blob/main/decor.py): `decor.py`
- [Overlay icons and fonts](https://github.com/yerpanderp/phlox/tree/main/assets): `assets`

### Macro and updates

- [Hotbar macro](https://github.com/yerpanderp/phlox/blob/main/macro.py): `macro.py`
- [Update checker and installer](https://github.com/yerpanderp/phlox/blob/main/updater.py): `updater.py`

### Other components

- **Player**
- **Game screen**
- **Roblox window**
- **GitHub releases**

## Connections

- Player → App, settings and alerts: configures (evidence: `README.md`)
- Game screen → Screen capture: displays buffs (evidence: `README.md`)
- Screen capture → Buff detection and timers: feeds frames (evidence: `main.py`)
- Buff templates → Buff detection and timers: provides matches (evidence: `engine.py`)
- Ability references → Ability counters: provides references (evidence: `engine.py`)
- Buff detection and timers → App, settings and alerts: returns state (evidence: `main.py`)
- App, settings and alerts → Indicator renderer: renders indicators (evidence: `README.md`)
- Indicator renderer → Theme colors: uses colors (evidence: `overlay_render.py`)
- Indicator renderer → Theme decorations: uses motifs (evidence: `README.md`)
- Indicator renderer → Overlay icons and fonts: loads assets (evidence: `overlay_render.py`)
- App, settings and alerts → Ability counters: configures tracking (evidence: `main.py`)
- App, settings and alerts → Lineup readiness: shows readiness (evidence: `README.md`)
- App, settings and alerts → Hotbar macro: offers macro (evidence: `README.md`)
- Hotbar macro → Roblox window: sends hotkeys (evidence: `macro.py`)
- App, settings and alerts → Update checker and installer: checks updates (evidence: `README.md`)
- Update checker and installer → GitHub releases: checks and downloads (evidence: `updater.py`)
- App, settings and alerts → Player: alerts (evidence: `README.md`)
