# wanderingpix/host-utility architecture

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

- Interactive diagram: https://gitdiagram.com/wanderingpix/host-utility
- Repository: https://github.com/wanderingpix/host-utility

## Overview

Host Utility is an Among Us host-side plugin for moderation, game controls, player information, and chat commands. Its workflow begins when the plugin loads and patches game behavior; in-game chat, player, and lobby events then reach those features. Ban-list providers supply cached or cloud-fetched checks, while reporting submits player and chat data externally. The source index supports several patch-to-feature relationships, but the README is empty and many patch implementations were not excerpted, so uncertain control-flow links are omitted.

Main entry points: [`HostUtility/Patches`](https://github.com/wanderingpix/host-utility/tree/master/HostUtility/Patches) (Game patches), [`HostUtility/BanListAPI/BanListProvider.cs`](https://github.com/wanderingpix/host-utility/blob/master/HostUtility/BanListAPI/BanListProvider.cs) (Provider base and cache), [`HostUtility/PlayerReporting/ReportingManager.cs`](https://github.com/wanderingpix/host-utility/blob/master/HostUtility/PlayerReporting/ReportingManager.cs) (Player report assembly), [`HostUtility/ChatCommandsManager.cs`](https://github.com/wanderingpix/host-utility/blob/master/HostUtility/ChatCommandsManager.cs) (Command registry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_core["Plugin and game hooks"]
  node_plugin["Plugin initialization"]
  node_patches["Game patches"]
end

subgraph group_moderation["Moderation and bans"]
  node_banwords["Banned words<br/>[BanWords.cs]"]
  node_botnames["Bot names<br/>[BotNames.cs]"]
  node_banmanager["Ban-list manager<br/>[BanListManager.cs]"]
  node_provider["Provider base and cache<br/>[BanListProvider.cs]"]
  node_aufiles["AUFiles provider"]
  node_auos["AUOS provider"]
  node_maul["MAUL provider"]
end

subgraph group_commands["Chat commands"]
  node_commandmanager["Command registry"]
  node_commands["Chat command handlers"]
  node_arguments["Command arguments"]
  node_suggestions["Command suggestions"]
  node_argumentmenu["Argument selection UI"]
end

subgraph group_player["Player information and reports"]
  node_tracking["Player tracking data"]
  node_icons["Player icons and labels"]
  node_reporting["Player report assembly"]
  node_reportdata["Report data model"]
end

node_host(("Host user"))
node_banservice["Ban-list services"]
node_reportservice["Report endpoint"]

node_host -->|"plays game"| node_patches
node_plugin -->|"applies hooks"| node_patches
node_plugin -->|"initializes"| node_banwords
node_plugin -->|"initializes"| node_commandmanager
node_patches -->|"checks messages"| node_banwords
node_patches -->|"checks players"| node_banmanager
node_patches -->|"checks names"| node_botnames
node_patches -->|"updates player display"| node_icons
node_patches -->|"uses tracking data"| node_tracking
node_banmanager -->|"initializes and checks"| node_provider
node_provider -.->|"fetches provider data"| node_banservice
node_aufiles -->|"implements"| node_provider
node_auos -->|"implements"| node_provider
node_maul -->|"implements"| node_provider
node_patches -->|"routes chat commands"| node_commandmanager
node_commandmanager -->|"registers handlers"| node_commands
node_commands -->|"uses argument types"| node_arguments
node_suggestions -->|"lists commands"| node_commandmanager
node_suggestions -->|"opens selection"| node_argumentmenu
node_argumentmenu -->|"requests options"| node_arguments
node_patches -->|"opens reporting flow"| node_reporting
node_reporting -->|"creates report"| node_reportdata
node_reporting -->|"reads chat logs"| node_tracking
node_reporting -->|"posts report"| node_reportservice

click node_plugin "https://github.com/wanderingpix/host-utility/blob/master/HostUtility/HostUtilityPlugin.cs"
click node_patches "https://github.com/wanderingpix/host-utility/tree/master/HostUtility/Patches"
click node_banwords "https://github.com/wanderingpix/host-utility/blob/master/HostUtility/BanWords.cs"
click node_botnames "https://github.com/wanderingpix/host-utility/blob/master/HostUtility/BotNames.cs"
click node_banmanager "https://github.com/wanderingpix/host-utility/blob/master/HostUtility/BanListAPI/BanListManager.cs"
click node_provider "https://github.com/wanderingpix/host-utility/blob/master/HostUtility/BanListAPI/BanListProvider.cs"
click node_aufiles "https://github.com/wanderingpix/host-utility/blob/master/HostUtility/BanListAPI/Providers/AUFiles/AUFilesBanListProvider.cs"
click node_auos "https://github.com/wanderingpix/host-utility/blob/master/HostUtility/BanListAPI/Providers/AUOS/AUOSbanListProvider.cs"
click node_maul "https://github.com/wanderingpix/host-utility/blob/master/HostUtility/BanListAPI/Providers/MAUL/MAULBanListProvider.cs"
click node_commandmanager "https://github.com/wanderingpix/host-utility/blob/master/HostUtility/ChatCommandsManager.cs"
click node_commands "https://github.com/wanderingpix/host-utility/tree/master/HostUtility/Commands"
click node_arguments "https://github.com/wanderingpix/host-utility/tree/master/HostUtility/Commands/Arguments"
click node_suggestions "https://github.com/wanderingpix/host-utility/blob/master/HostUtility/Components/UI/CommandSuggestionMenu.cs"
click node_argumentmenu "https://github.com/wanderingpix/host-utility/blob/master/HostUtility/Components/UI/CommandArgumentsMenu.cs"
click node_tracking "https://github.com/wanderingpix/host-utility/blob/master/HostUtility/Components/TrackingDataBehaviour.cs"
click node_icons "https://github.com/wanderingpix/host-utility/blob/master/HostUtility/Components/PlayerIconsBehaviour.cs"
click node_reporting "https://github.com/wanderingpix/host-utility/blob/master/HostUtility/PlayerReporting/ReportingManager.cs"
click node_reportdata "https://github.com/wanderingpix/host-utility/blob/master/HostUtility/PlayerReporting/PlayerReportData.cs"

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_plugin,node_patches,node_host toneBlue
class node_banwords,node_botnames,node_banmanager,node_provider,node_aufiles,node_auos,node_maul toneAmber
class node_commandmanager,node_commands,node_arguments,node_suggestions,node_argumentmenu toneMint
class node_tracking,node_icons,node_reporting,node_reportdata toneRose
class node_banservice,node_reportservice toneIndigo
```

## Components

### Plugin and game hooks

- [Plugin initialization](https://github.com/wanderingpix/host-utility/blob/master/HostUtility/HostUtilityPlugin.cs): `HostUtility/HostUtilityPlugin.cs`
- [Game patches](https://github.com/wanderingpix/host-utility/tree/master/HostUtility/Patches): `HostUtility/Patches`

### Moderation and bans

- [Banned words](https://github.com/wanderingpix/host-utility/blob/master/HostUtility/BanWords.cs): `HostUtility/BanWords.cs`
- [Bot names](https://github.com/wanderingpix/host-utility/blob/master/HostUtility/BotNames.cs): `HostUtility/BotNames.cs`
- [Ban-list manager](https://github.com/wanderingpix/host-utility/blob/master/HostUtility/BanListAPI/BanListManager.cs): `HostUtility/BanListAPI/BanListManager.cs`
- [Provider base and cache](https://github.com/wanderingpix/host-utility/blob/master/HostUtility/BanListAPI/BanListProvider.cs): `HostUtility/BanListAPI/BanListProvider.cs`
- [AUFiles provider](https://github.com/wanderingpix/host-utility/blob/master/HostUtility/BanListAPI/Providers/AUFiles/AUFilesBanListProvider.cs): `HostUtility/BanListAPI/Providers/AUFiles/AUFilesBanListProvider.cs`
- [AUOS provider](https://github.com/wanderingpix/host-utility/blob/master/HostUtility/BanListAPI/Providers/AUOS/AUOSbanListProvider.cs): `HostUtility/BanListAPI/Providers/AUOS/AUOSbanListProvider.cs`
- [MAUL provider](https://github.com/wanderingpix/host-utility/blob/master/HostUtility/BanListAPI/Providers/MAUL/MAULBanListProvider.cs): `HostUtility/BanListAPI/Providers/MAUL/MAULBanListProvider.cs`

### Chat commands

- [Command registry](https://github.com/wanderingpix/host-utility/blob/master/HostUtility/ChatCommandsManager.cs): `HostUtility/ChatCommandsManager.cs`
- [Chat command handlers](https://github.com/wanderingpix/host-utility/tree/master/HostUtility/Commands): `HostUtility/Commands`
- [Command arguments](https://github.com/wanderingpix/host-utility/tree/master/HostUtility/Commands/Arguments): `HostUtility/Commands/Arguments`
- [Command suggestions](https://github.com/wanderingpix/host-utility/blob/master/HostUtility/Components/UI/CommandSuggestionMenu.cs): `HostUtility/Components/UI/CommandSuggestionMenu.cs`
- [Argument selection UI](https://github.com/wanderingpix/host-utility/blob/master/HostUtility/Components/UI/CommandArgumentsMenu.cs): `HostUtility/Components/UI/CommandArgumentsMenu.cs`

### Player information and reports

- [Player tracking data](https://github.com/wanderingpix/host-utility/blob/master/HostUtility/Components/TrackingDataBehaviour.cs): `HostUtility/Components/TrackingDataBehaviour.cs`
- [Player icons and labels](https://github.com/wanderingpix/host-utility/blob/master/HostUtility/Components/PlayerIconsBehaviour.cs): `HostUtility/Components/PlayerIconsBehaviour.cs`
- [Player report assembly](https://github.com/wanderingpix/host-utility/blob/master/HostUtility/PlayerReporting/ReportingManager.cs): `HostUtility/PlayerReporting/ReportingManager.cs`
- [Report data model](https://github.com/wanderingpix/host-utility/blob/master/HostUtility/PlayerReporting/PlayerReportData.cs): `HostUtility/PlayerReporting/PlayerReportData.cs`

### Other components

- **Host user**
- **Ban-list services**
- **Report endpoint**

## Connections

- Host user → Game patches: plays game
- Plugin initialization → Game patches: applies hooks (evidence: `HostUtility/HostUtilityPlugin.cs`)
- Plugin initialization → Banned words: initializes (evidence: `HostUtility/HostUtilityPlugin.cs`)
- Plugin initialization → Command registry: initializes (evidence: `HostUtility/HostUtilityPlugin.cs`)
- Game patches → Banned words: checks messages (evidence: `HostUtility/Patches/ChatControllerPatches.cs`)
- Game patches → Ban-list manager: checks players (evidence: `HostUtility/Patches/PlayerControlPatches.cs`)
- Game patches → Bot names: checks names (evidence: `HostUtility/Patches/PlayerControlPatches.cs`)
- Game patches → Player icons and labels: updates player display (evidence: `HostUtility/Patches/GameStartManagerPatches.cs`)
- Game patches → Player tracking data: uses tracking data (evidence: `HostUtility/Patches/AntiCheatPatches.cs`)
- Ban-list manager → Provider base and cache: initializes and checks (evidence: `HostUtility/BanListAPI/BanListManager.cs`)
- Provider base and cache → Ban-list services: fetches provider data
- AUFiles provider → Provider base and cache: implements (evidence: `HostUtility/BanListAPI/Providers/AUFiles/AUFilesBanListProvider.cs`)
- AUOS provider → Provider base and cache: implements (evidence: `HostUtility/BanListAPI/Providers/AUOS/AUOSbanListProvider.cs`)
- MAUL provider → Provider base and cache: implements (evidence: `HostUtility/BanListAPI/Providers/MAUL/MAULBanListProvider.cs`)
- Game patches → Command registry: routes chat commands (evidence: `HostUtility/Patches/ChatControllerPatches.cs`)
- Command registry → Chat command handlers: registers handlers (evidence: `HostUtility/ChatCommandsManager.cs`)
- Chat command handlers → Command arguments: uses argument types (evidence: `HostUtility/Commands/ChatCommand.cs`)
- Command suggestions → Command registry: lists commands (evidence: `HostUtility/Components/UI/CommandSuggestionMenu.cs`)
- Command suggestions → Argument selection UI: opens selection (evidence: `HostUtility/Components/UI/CommandSuggestionMenu.cs`)
- Argument selection UI → Command arguments: requests options (evidence: `HostUtility/Components/UI/CommandArgumentsMenu.cs`)
- Game patches → Player report assembly: opens reporting flow (evidence: `HostUtility/Patches/HudManagerPatches.cs`)
- Player report assembly → Report data model: creates report (evidence: `HostUtility/PlayerReporting/ReportingManager.cs`)
- Player report assembly → Player tracking data: reads chat logs (evidence: `HostUtility/PlayerReporting/ReportingManager.cs`)
- Player report assembly → Report endpoint: posts report (evidence: `HostUtility/PlayerReporting/ReportingManager.cs`)
