# hgalexx/buffet architecture

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

## Overview

Buffet is a World of Warcraft addon that builds and maintains consumable macros from usable items in the player’s bags. Its documented workflow is bag scanning followed by automatic, out-of-combat macro updates; configuration controls macro modifiers and item-selection options, with per-character ignore lists and custom Lua macros. The tree shows separate game-version modules and localization files. No source excerpts were provided, so relationships below rely only on the README; implementation ownership and internal calls cannot be verified.

Main entry points: [`Buffet.lua`](https://github.com/hgalexx/buffet/blob/master/Buffet.lua) (Buffet addon), [`Engine.lua`](https://github.com/hgalexx/buffet/blob/master/Engine.lua) (Bag scanner), [`Config.lua`](https://github.com/hgalexx/buffet/blob/master/Config.lua) (Configuration), [`Utility.lua`](https://github.com/hgalexx/buffet/blob/master/Utility.lua) (Custom Lua macro)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Macro runtime"]
  node_addon["Buffet addon<br/>[Buffet.lua]"]
  node_inventory["Bag scanner<br/>[Engine.lua]"]
  node_macros["Macro generator<br/>[Engine.lua]"]
end

subgraph group_settings["User settings"]
  node_config["Configuration<br/>[Config.lua]"]
  node_custom["Custom Lua macro<br/>[Utility.lua]"]
end

subgraph group_versions["Game versions"]
  node_classic["Classic support<br/>[Classic.lua]"]
  node_tbc["TBC support<br/>[TBC.lua]"]
  node_wlk["Wrath support<br/>[WLK.lua]"]
  node_cata["Cataclysm support<br/>[Cataclysm.lua]"]
  node_mists["Mists support<br/>[Mists.lua]"]
  node_retail["Retail support<br/>[Retail.lua]"]
end

subgraph group_language["Localization"]
  node_locales["Locale messages<br/>[Locales.lua]"]
  node_version_locales["Version locales"]
end

node_player(("Player"))
node_wow(("World of Warcraft"))

node_player -->|"uses"| node_addon
node_addon -->|"scans bags"| node_inventory
node_addon -->|"updates macros"| node_macros
node_player -->|"configures"| node_config
node_player -->|"scripts macros"| node_custom
node_wow -.->|"runs addon"| node_addon
node_addon -->|"supports"| node_classic
node_addon -->|"supports"| node_tbc
node_addon -->|"supports"| node_wlk
node_addon -.->|"supports"| node_cata
node_addon -->|"supports"| node_mists
node_addon -->|"supports"| node_retail
node_addon -->|"localizes"| node_locales
node_addon -->|"localizes"| node_version_locales

click node_addon "https://github.com/hgalexx/buffet/blob/master/Buffet.lua"
click node_inventory "https://github.com/hgalexx/buffet/blob/master/Engine.lua"
click node_macros "https://github.com/hgalexx/buffet/blob/master/Engine.lua"
click node_config "https://github.com/hgalexx/buffet/blob/master/Config.lua"
click node_custom "https://github.com/hgalexx/buffet/blob/master/Utility.lua"
click node_classic "https://github.com/hgalexx/buffet/blob/master/Classic/Classic.lua"
click node_tbc "https://github.com/hgalexx/buffet/blob/master/TBC/TBC.lua"
click node_wlk "https://github.com/hgalexx/buffet/blob/master/WLK/WLK.lua"
click node_cata "https://github.com/hgalexx/buffet/blob/master/Cataclysm/Cataclysm.lua"
click node_mists "https://github.com/hgalexx/buffet/blob/master/Mists/Mists.lua"
click node_retail "https://github.com/hgalexx/buffet/blob/master/Retail/Retail.lua"
click node_locales "https://github.com/hgalexx/buffet/blob/master/Locales/Locales.lua"
click node_version_locales "https://github.com/hgalexx/buffet/blob/master/Classic/Localization.enUS.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_addon,node_inventory,node_macros toneBlue
class node_config,node_custom toneAmber
class node_classic,node_tbc,node_wlk,node_cata,node_mists,node_retail toneMint
class node_locales,node_version_locales toneRose
class node_player,node_wow toneIndigo
```

## Components

### Macro runtime

- [Buffet addon](https://github.com/hgalexx/buffet/blob/master/Buffet.lua): `Buffet.lua`
- [Bag scanner](https://github.com/hgalexx/buffet/blob/master/Engine.lua): `Engine.lua`
- [Macro generator](https://github.com/hgalexx/buffet/blob/master/Engine.lua): `Engine.lua`

### User settings

- [Configuration](https://github.com/hgalexx/buffet/blob/master/Config.lua): `Config.lua`
- [Custom Lua macro](https://github.com/hgalexx/buffet/blob/master/Utility.lua): `Utility.lua`

### Game versions

- [Classic support](https://github.com/hgalexx/buffet/blob/master/Classic/Classic.lua): `Classic/Classic.lua`
- [TBC support](https://github.com/hgalexx/buffet/blob/master/TBC/TBC.lua): `TBC/TBC.lua`
- [Wrath support](https://github.com/hgalexx/buffet/blob/master/WLK/WLK.lua): `WLK/WLK.lua`
- [Cataclysm support](https://github.com/hgalexx/buffet/blob/master/Cataclysm/Cataclysm.lua): `Cataclysm/Cataclysm.lua`
- [Mists support](https://github.com/hgalexx/buffet/blob/master/Mists/Mists.lua): `Mists/Mists.lua`
- [Retail support](https://github.com/hgalexx/buffet/blob/master/Retail/Retail.lua): `Retail/Retail.lua`

### Localization

- [Locale messages](https://github.com/hgalexx/buffet/blob/master/Locales/Locales.lua): `Locales/Locales.lua`
- [Version locales](https://github.com/hgalexx/buffet/blob/master/Classic/Localization.enUS.lua): `Classic/Localization.enUS.lua`

### Other components

- **Player**
- **World of Warcraft**

## Connections

- Player → Buffet addon: uses (evidence: `README.md`)
- Buffet addon → Bag scanner: scans bags (evidence: `README.md`)
- Buffet addon → Macro generator: updates macros (evidence: `README.md`)
- Player → Configuration: configures (evidence: `README.md`)
- Player → Custom Lua macro: scripts macros (evidence: `README.md`)
- World of Warcraft → Buffet addon: runs addon
- Buffet addon → Classic support: supports (evidence: `README.md`)
- Buffet addon → TBC support: supports (evidence: `README.md`)
- Buffet addon → Wrath support: supports (evidence: `README.md`)
- Buffet addon → Cataclysm support: supports
- Buffet addon → Mists support: supports (evidence: `README.md`)
- Buffet addon → Retail support: supports (evidence: `README.md`)
- Buffet addon → Locale messages: localizes (evidence: `README.md`)
- Buffet addon → Version locales: localizes (evidence: `README.md`)
