# hgalexx/perl-player-buff architecture

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

- Interactive diagram: https://gitdiagram.com/hgalexx/perl-player-buff
- Repository: https://github.com/hgalexx/perl-player-buff

## Overview

Perl Player Buff is a World of Warcraft addon that repositions player buffs and debuffs around supported unit frames, with configurable layout, timers, and cooldown display. The README documents the user-facing configuration paths and supported frame integrations, but no source excerpts were provided, so internal calls and module responsibilities beyond their filenames are not asserted. The graph shows documented behavior only; it does not infer relationships among the listed Lua modules.

Main entry points: [`core.lua`](https://github.com/hgalexx/perl-player-buff/blob/master/core.lua) (Addon Runtime), [`config.lua`](https://github.com/hgalexx/perl-player-buff/blob/master/config.lua) (Interface Settings), [`Widget.lua`](https://github.com/hgalexx/perl-player-buff/blob/master/Widget.lua) (Buffs and Debuffs), [`broker.lua`](https://github.com/hgalexx/perl-player-buff/blob/master/broker.lua) (Command and Broker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Buff Runtime"]
  node_core["Addon Runtime<br/>[core.lua]"]
  node_widgets["Buffs and Debuffs<br/>[Widget.lua]"]
end

subgraph group_settings["Configuration"]
  node_config["Interface Settings<br/>[config.lua]"]
  node_commands["Command and Broker<br/>[broker.lua]"]
end

subgraph group_internal["Internal Modules"]
  node_constants["Constants<br/>[Const.lua]"]
  node_utilities["Utilities<br/>[Utility.lua]"]
end

node_player(("Player"))
node_frames["Supported Player Frames"]

node_frames -->|"anchors to"| node_core
node_core -->|"repositions"| node_widgets
node_player -->|"configures"| node_config
node_config -->|"sets layout"| node_widgets
node_player -->|"runs commands"| node_commands

click node_core "https://github.com/hgalexx/perl-player-buff/blob/master/core.lua"
click node_widgets "https://github.com/hgalexx/perl-player-buff/blob/master/Widget.lua"
click node_config "https://github.com/hgalexx/perl-player-buff/blob/master/config.lua"
click node_commands "https://github.com/hgalexx/perl-player-buff/blob/master/broker.lua"
click node_constants "https://github.com/hgalexx/perl-player-buff/blob/master/Const.lua"
click node_utilities "https://github.com/hgalexx/perl-player-buff/blob/master/Utility.lua"

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_core,node_widgets toneBlue
class node_config,node_commands toneAmber
class node_constants,node_utilities toneMint
class node_player,node_frames toneIndigo
```

## Components

### Buff Runtime

- [Addon Runtime](https://github.com/hgalexx/perl-player-buff/blob/master/core.lua): `core.lua`
- [Buffs and Debuffs](https://github.com/hgalexx/perl-player-buff/blob/master/Widget.lua): `Widget.lua`

### Configuration

- [Interface Settings](https://github.com/hgalexx/perl-player-buff/blob/master/config.lua): `config.lua`
- [Command and Broker](https://github.com/hgalexx/perl-player-buff/blob/master/broker.lua): `broker.lua`

### Internal Modules

- [Constants](https://github.com/hgalexx/perl-player-buff/blob/master/Const.lua): `Const.lua`
- [Utilities](https://github.com/hgalexx/perl-player-buff/blob/master/Utility.lua): `Utility.lua`

### Other components

- **Player**
- **Supported Player Frames**

## Connections

- Supported Player Frames → Addon Runtime: anchors to (evidence: `README.md`)
- Addon Runtime → Buffs and Debuffs: repositions (evidence: `README.md`)
- Player → Interface Settings: configures (evidence: `README.md`)
- Interface Settings → Buffs and Debuffs: sets layout (evidence: `README.md`)
- Player → Command and Broker: runs commands (evidence: `README.md`)
