# fizakbrr/albion-radar architecture

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

- Interactive diagram: https://gitdiagram.com/fizakbrr/albion-radar
- Repository: https://github.com/fizakbrr/albion-radar

## Overview

Camel Radar is a local Albion Online radar and map overlay. Its documented workflow captures the player’s game traffic, parses Photon packets into events, and presents nearby players, resources, enemies, and map objectives in a browser UI. The graph preserves the documented domain branches and the sampled parser, handler, drawing, settings, and UI layers. Several domain implementations and client/server wiring were not sampled; those relationships are omitted or marked unverified rather than inferred from directory names.

Main entry points: [`server/index.ts`](https://github.com/fizakbrr/albion-radar/blob/main/server/index.ts) (Local capture and server), [`src/App.tsx`](https://github.com/fizakbrr/albion-radar/blob/main/src/App.tsx) (Radar UI), [`scripts/Drawings/MapsDrawing.ts`](https://github.com/fizakbrr/albion-radar/blob/main/scripts/Drawings/MapsDrawing.ts) (Map and objective overlays), [`scripts/Handlers/MobsHandler.ts`](https://github.com/fizakbrr/albion-radar/blob/main/scripts/Handlers/MobsHandler.ts) (Mobs and enemies)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_capture["Capture and protocol"]
  node_capture_runtime["Local capture and server<br/>[index.ts]"]
  node_adapter["Adapter selection"]
  node_packet_parser["Photon packet parser"]
  node_packet["Photon packet model<br/>[PhotonPacket.ts]"]
  node_command["Photon commands<br/>[PhotonCommand.ts]"]
  node_protocol["Protocol deserializers"]
  node_event_codes["Event codes<br/>[EventCodes.ts]"]
end

subgraph group_domain["Radar domains"]
  node_player_handler["Player tracking<br/>[PlayersHandler.ts]"]
  node_resource_handler["Gathering resources"]
  node_mob_handler["Mobs and enemies<br/>[MobsHandler.ts]"]
  node_chest_handler["Chests<br/>[ChestsHandler.ts]"]
  node_dungeon_handler["Dungeons<br/>[DungeonsHandler.ts]"]
  node_fishing_handler["Fishing spots<br/>[FishingHandler.ts]"]
  node_mist_handler["Mist objectives<br/>[WispCageHandler.ts]"]
  node_handler_utils["Handler utilities<br/>[HandlerUtils.ts]"]
  node_settings["Radar settings and filters<br/>[Settings.ts]"]
end

subgraph group_render["Map presentation"]
  node_drawing_utils["Drawing utilities<br/>[DrawingUtils.ts]"]
  node_player_drawing["Player overlay<br/>[PlayersDrawing.ts]"]
  node_mob_drawing["Mob overlay<br/>[MobsDrawing.ts]"]
  node_map_drawings["Map and objective overlays<br/>[MapsDrawing.ts]"]
end

subgraph group_client["Browser experience"]
  node_app["Radar UI<br/>[App.tsx]"]
  node_ui_primitives["UI components"]
  node_browser_entry["Browser entry<br/>[main.tsx]"]
end

node_player(("Albion player"))
node_game(("Albion Online"))

node_player -->|"plays"| node_game
node_game -->|"sends UDP traffic"| node_capture_runtime
node_player -->|"selects network adapter"| node_adapter
node_adapter -->|"provides adapter IP"| node_capture_runtime
node_capture_runtime -->|"parses packets"| node_packet_parser
node_packet_parser -->|"uses packet model"| node_packet
node_packet -->|"uses commands"| node_command
node_capture_runtime -->|"dispatches by event code"| node_event_codes
node_capture_runtime -->|"broadcasts events"| node_player
node_player -.->|"traffic informs"| node_player_handler
node_player -.->|"traffic informs"| node_resource_handler
node_player -.->|"traffic informs"| node_mob_handler
node_player -.->|"traffic informs"| node_chest_handler
node_player -.->|"traffic informs"| node_dungeon_handler
node_player -.->|"traffic informs"| node_fishing_handler
node_player -.->|"traffic informs"| node_mist_handler
node_resource_handler -->|"uses"| node_handler_utils
node_mob_handler -->|"uses"| node_handler_utils
node_player_handler -.->|"supplies overlay data"| node_player_drawing
node_mob_handler -->|"supplies overlay data"| node_mob_drawing
node_drawing_utils -->|"supports drawing"| node_mob_drawing
node_drawing_utils -->|"supports drawing"| node_player_drawing
node_chest_handler -.->|"supplies objective data"| node_map_drawings
node_dungeon_handler -.->|"supplies objective data"| node_map_drawings
node_fishing_handler -.->|"supplies objective data"| node_map_drawings
node_mist_handler -.->|"supplies objective data"| node_map_drawings
node_player -->|"configures radar"| node_app
node_settings -.->|"provides filter settings"| node_app
node_app -->|"renders with"| node_ui_primitives
node_browser_entry -->|"renders"| node_app

click node_capture_runtime "https://github.com/fizakbrr/albion-radar/blob/main/server/index.ts"
click node_adapter "https://github.com/fizakbrr/albion-radar/blob/main/server/adapter-selector.ts"
click node_packet_parser "https://github.com/fizakbrr/albion-radar/blob/main/scripts/classes/PhotonPacketParser.ts"
click node_packet "https://github.com/fizakbrr/albion-radar/blob/main/scripts/classes/PhotonPacket.ts"
click node_command "https://github.com/fizakbrr/albion-radar/blob/main/scripts/classes/PhotonCommand.ts"
click node_protocol "https://github.com/fizakbrr/albion-radar/blob/main/scripts/classes/Protocol18Deserializer.ts"
click node_event_codes "https://github.com/fizakbrr/albion-radar/blob/main/scripts/Utils/EventCodes.ts"
click node_player_handler "https://github.com/fizakbrr/albion-radar/blob/main/scripts/Handlers/PlayersHandler.ts"
click node_resource_handler "https://github.com/fizakbrr/albion-radar/blob/main/scripts/Handlers/HarvestablesHandler.ts"
click node_mob_handler "https://github.com/fizakbrr/albion-radar/blob/main/scripts/Handlers/MobsHandler.ts"
click node_chest_handler "https://github.com/fizakbrr/albion-radar/blob/main/scripts/Handlers/ChestsHandler.ts"
click node_dungeon_handler "https://github.com/fizakbrr/albion-radar/blob/main/scripts/Handlers/DungeonsHandler.ts"
click node_fishing_handler "https://github.com/fizakbrr/albion-radar/blob/main/scripts/Handlers/FishingHandler.ts"
click node_mist_handler "https://github.com/fizakbrr/albion-radar/blob/main/scripts/Handlers/WispCageHandler.ts"
click node_handler_utils "https://github.com/fizakbrr/albion-radar/blob/main/scripts/Handlers/HandlerUtils.ts"
click node_settings "https://github.com/fizakbrr/albion-radar/blob/main/scripts/Utils/Settings.ts"
click node_drawing_utils "https://github.com/fizakbrr/albion-radar/blob/main/scripts/Utils/DrawingUtils.ts"
click node_player_drawing "https://github.com/fizakbrr/albion-radar/blob/main/scripts/Drawings/PlayersDrawing.ts"
click node_mob_drawing "https://github.com/fizakbrr/albion-radar/blob/main/scripts/Drawings/MobsDrawing.ts"
click node_map_drawings "https://github.com/fizakbrr/albion-radar/blob/main/scripts/Drawings/MapsDrawing.ts"
click node_app "https://github.com/fizakbrr/albion-radar/blob/main/src/App.tsx"
click node_ui_primitives "https://github.com/fizakbrr/albion-radar/tree/main/src/components/ui"
click node_browser_entry "https://github.com/fizakbrr/albion-radar/blob/main/src/main.tsx"

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_capture_runtime,node_adapter,node_packet_parser,node_packet,node_command,node_protocol,node_event_codes toneBlue
class node_player_handler,node_resource_handler,node_mob_handler,node_chest_handler,node_dungeon_handler,node_fishing_handler,node_mist_handler,node_handler_utils,node_settings toneAmber
class node_drawing_utils,node_player_drawing,node_mob_drawing,node_map_drawings toneMint
class node_app,node_ui_primitives,node_browser_entry toneRose
class node_player,node_game toneIndigo
```

## Components

### Capture and protocol

- [Local capture and server](https://github.com/fizakbrr/albion-radar/blob/main/server/index.ts): `server/index.ts`
- [Adapter selection](https://github.com/fizakbrr/albion-radar/blob/main/server/adapter-selector.ts): `server/adapter-selector.ts`
- [Photon packet parser](https://github.com/fizakbrr/albion-radar/blob/main/scripts/classes/PhotonPacketParser.ts): `scripts/classes/PhotonPacketParser.ts`
- [Photon packet model](https://github.com/fizakbrr/albion-radar/blob/main/scripts/classes/PhotonPacket.ts): `scripts/classes/PhotonPacket.ts`
- [Photon commands](https://github.com/fizakbrr/albion-radar/blob/main/scripts/classes/PhotonCommand.ts): `scripts/classes/PhotonCommand.ts`
- [Protocol deserializers](https://github.com/fizakbrr/albion-radar/blob/main/scripts/classes/Protocol18Deserializer.ts): `scripts/classes/Protocol18Deserializer.ts`
- [Event codes](https://github.com/fizakbrr/albion-radar/blob/main/scripts/Utils/EventCodes.ts): `scripts/Utils/EventCodes.ts`

### Radar domains

- [Player tracking](https://github.com/fizakbrr/albion-radar/blob/main/scripts/Handlers/PlayersHandler.ts): `scripts/Handlers/PlayersHandler.ts`
- [Gathering resources](https://github.com/fizakbrr/albion-radar/blob/main/scripts/Handlers/HarvestablesHandler.ts): `scripts/Handlers/HarvestablesHandler.ts`
- [Mobs and enemies](https://github.com/fizakbrr/albion-radar/blob/main/scripts/Handlers/MobsHandler.ts): `scripts/Handlers/MobsHandler.ts`
- [Chests](https://github.com/fizakbrr/albion-radar/blob/main/scripts/Handlers/ChestsHandler.ts): `scripts/Handlers/ChestsHandler.ts`
- [Dungeons](https://github.com/fizakbrr/albion-radar/blob/main/scripts/Handlers/DungeonsHandler.ts): `scripts/Handlers/DungeonsHandler.ts`
- [Fishing spots](https://github.com/fizakbrr/albion-radar/blob/main/scripts/Handlers/FishingHandler.ts): `scripts/Handlers/FishingHandler.ts`
- [Mist objectives](https://github.com/fizakbrr/albion-radar/blob/main/scripts/Handlers/WispCageHandler.ts): `scripts/Handlers/WispCageHandler.ts`
- [Handler utilities](https://github.com/fizakbrr/albion-radar/blob/main/scripts/Handlers/HandlerUtils.ts): `scripts/Handlers/HandlerUtils.ts`
- [Radar settings and filters](https://github.com/fizakbrr/albion-radar/blob/main/scripts/Utils/Settings.ts): `scripts/Utils/Settings.ts`

### Map presentation

- [Drawing utilities](https://github.com/fizakbrr/albion-radar/blob/main/scripts/Utils/DrawingUtils.ts): `scripts/Utils/DrawingUtils.ts`
- [Player overlay](https://github.com/fizakbrr/albion-radar/blob/main/scripts/Drawings/PlayersDrawing.ts): `scripts/Drawings/PlayersDrawing.ts`
- [Mob overlay](https://github.com/fizakbrr/albion-radar/blob/main/scripts/Drawings/MobsDrawing.ts): `scripts/Drawings/MobsDrawing.ts`
- [Map and objective overlays](https://github.com/fizakbrr/albion-radar/blob/main/scripts/Drawings/MapsDrawing.ts): `scripts/Drawings/MapsDrawing.ts`

### Browser experience

- [Radar UI](https://github.com/fizakbrr/albion-radar/blob/main/src/App.tsx): `src/App.tsx`
- [UI components](https://github.com/fizakbrr/albion-radar/tree/main/src/components/ui): `src/components/ui`
- [Browser entry](https://github.com/fizakbrr/albion-radar/blob/main/src/main.tsx): `src/main.tsx`

### Other components

- **Albion player**
- **Albion Online**

## Connections

- Albion player → Albion Online: plays (evidence: `README.md`)
- Albion Online → Local capture and server: sends UDP traffic (evidence: `README.md`)
- Albion player → Adapter selection: selects network adapter (evidence: `server/adapter-selector.ts`)
- Adapter selection → Local capture and server: provides adapter IP (evidence: `server/index.ts`)
- Local capture and server → Photon packet parser: parses packets (evidence: `server/index.ts`)
- Photon packet parser → Photon packet model: uses packet model (evidence: `scripts/classes/PhotonPacketParser.ts`)
- Photon packet model → Photon commands: uses commands (evidence: `scripts/classes/PhotonPacket.ts`)
- Local capture and server → Event codes: dispatches by event code (evidence: `server/index.ts`)
- Local capture and server → Albion player: broadcasts events (evidence: `server/index.ts`)
- Albion player → Player tracking: traffic informs
- Albion player → Gathering resources: traffic informs
- Albion player → Mobs and enemies: traffic informs
- Albion player → Chests: traffic informs
- Albion player → Dungeons: traffic informs
- Albion player → Fishing spots: traffic informs
- Albion player → Mist objectives: traffic informs
- Gathering resources → Handler utilities: uses (evidence: `scripts/Handlers/HarvestablesHandler.ts`)
- Mobs and enemies → Handler utilities: uses (evidence: `scripts/Handlers/MobsHandler.ts`)
- Player tracking → Player overlay: supplies overlay data
- Mobs and enemies → Mob overlay: supplies overlay data (evidence: `scripts/Drawings/MobsDrawing.ts`)
- Drawing utilities → Mob overlay: supports drawing (evidence: `scripts/Drawings/MobsDrawing.ts`)
- Drawing utilities → Player overlay: supports drawing (evidence: `scripts/Drawings/PlayersDrawing.ts`)
- Chests → Map and objective overlays: supplies objective data
- Dungeons → Map and objective overlays: supplies objective data
- Fishing spots → Map and objective overlays: supplies objective data
- Mist objectives → Map and objective overlays: supplies objective data
- Albion player → Radar UI: configures radar (evidence: `README.md`)
- Radar settings and filters → Radar UI: provides filter settings
- Radar UI → UI components: renders with (evidence: `src/App.tsx`)
- Browser entry → Radar UI: renders (evidence: `src/main.tsx`)
