# leif-yggdrasil/kronos-184-fixed architecture

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

- Interactive diagram: https://gitdiagram.com/leif-yggdrasil/kronos-184-fixed
- Repository: https://github.com/leif-yggdrasil/kronos-184-fixed

## Overview

Kronos is an Old School RuneScape private-server platform with a RuneLite-derived client, a game server, and a separate cache-update server. The main user journey is to connect through the client, authenticate and play in a server world; server-side systems manage players, interfaces, items, and game activities. The README also highlights custom content, item attributes, raids, and client capabilities. The graph preserves these documented areas, but several connections are dashed because the relevant runtime wiring was not sampled.

Main entry points: [`Kronos-master/runelite/runelite-client/src/main/java`](https://github.com/leif-yggdrasil/kronos-184-fixed/tree/main/Kronos-master/runelite/runelite-client/src/main/java) (RuneLite Client), [`Kronos-master/kronos-server/src/main/java/io/ruin/Server.java`](https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-server/src/main/java/io/ruin/Server.java) (Game Server), [`Kronos-master/kronos-server/src/main/java/io/ruin/model/entity/player/Player.java`](https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-server/src/main/java/io/ruin/model/entity/player/Player.java) (Player Model), [`Kronos-master/kronos-server/src/main/java/io/ruin/model/item/Item.java`](https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-server/src/main/java/io/ruin/model/item/Item.java) (Item and Attributes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Game Client"]
  node_runelite["RuneLite Client"]
  node_party["Party Service<br/>[PartyService.java]"]
  node_discord["Discord Integration"]
end

subgraph group_server["World Server"]
  node_server["Game Server<br/>[Server.java]"]
  node_netty["Network Server"]
  node_world["World State<br/>[World.java]"]
  node_player_model["Player Model<br/>[Player.java]"]
  node_interfaces["Interface Handling"]
  node_items["Item and Attributes<br/>[Item.java]"]
  node_item_defs["Item Definitions<br/>[ItemDef.java]"]
end

subgraph group_content["Game Systems"]
  node_activities["Activities and Raids"]
  node_costume_storage["Costume Storage"]
  node_raid_storage["Raid Storage<br/>[RaidStorage.java]"]
  node_game_data["Game Data"]
end

subgraph group_cache["Cache Services"]
  node_cache_manager["Cache Manager<br/>[CacheManager.java]"]
  node_cache_protocol["Cache Update Protocol<br/>[Js5Decoder.java]"]
  node_filestore[("Cache File Store<br/>[FileStore.java]")]
end

subgraph group_api["API and Web"]
  node_hiscores["Hiscores API"]
  node_rest["REST API<br/>[KronosRest.java]"]
end

node_player(("Player"))
node_external_party["Party WebSocket"]

node_player -.->|"plays through"| node_runelite
node_runelite -.->|"connects to"| node_server
node_server -.->|"starts networking"| node_netty
node_server -.->|"initializes world"| node_world
node_world -.->|"manages players"| node_player_model
node_player_model -->|"tracks visibility"| node_interfaces
node_player_model -.->|"owns inventory"| node_items
node_items -->|"reads definitions"| node_item_defs
node_activities -->|"includes raid storage"| node_raid_storage
node_raid_storage -->|"moves items"| node_items
node_costume_storage -->|"updates player"| node_player_model
node_cache_manager -->|"uses file store"| node_filestore
node_cache_protocol -.->|"serves cache data"| node_cache_manager
node_runelite -.->|"requests updates"| node_cache_manager
node_rest -.->|"exposes hiscores"| node_hiscores
node_party -->|"sends party messages"| node_external_party
node_discord -.->|"provides presence"| node_runelite
node_game_data -.->|"configures content"| node_server

click node_runelite "https://github.com/leif-yggdrasil/kronos-184-fixed/tree/main/Kronos-master/runelite/runelite-client/src/main/java"
click node_party "https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/runelite/runelite-client/src/main/java/net/runelite/client/ws/PartyService.java"
click node_server "https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-server/src/main/java/io/ruin/Server.java"
click node_netty "https://github.com/leif-yggdrasil/kronos-184-fixed/tree/main/Kronos-master/kronos-api/src/main/java/io/ruin/api/netty"
click node_world "https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-server/src/main/java/io/ruin/model/World.java"
click node_player_model "https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-server/src/main/java/io/ruin/model/entity/player/Player.java"
click node_interfaces "https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-server/src/main/java/io/ruin/model/inter/InterfaceHandler.java"
click node_items "https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-server/src/main/java/io/ruin/model/item/Item.java"
click node_item_defs "https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-server/src/main/java/io/ruin/cache/ItemDef.java"
click node_activities "https://github.com/leif-yggdrasil/kronos-184-fixed/tree/main/Kronos-master/kronos-server/src/main/java/io/ruin/model/activities"
click node_costume_storage "https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-server/src/main/java/io/ruin/model/skills/construction/actions/CostumeStorage.java"
click node_raid_storage "https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-server/src/main/java/io/ruin/model/activities/raids/xeric/RaidStorage.java"
click node_cache_manager "https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-update-server/src/main/java/io/ruin/update/CacheManager.java"
click node_cache_protocol "https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-update-server/src/main/java/io/ruin/update/Js5Decoder.java"
click node_filestore "https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-api/src/main/java/io/ruin/api/filestore/FileStore.java"
click node_hiscores "https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-api/src/main/java/io/ruin/api/rest/hiscores/HiscoresController.java"
click node_rest "https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-api/src/main/java/io/ruin/api/rest/KronosRest.java"
click node_game_data "https://github.com/leif-yggdrasil/kronos-184-fixed/tree/main/Kronos-master/kronos-server/src/main/java/io/ruin/data"
click node_discord "https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/runelite/runelite-client/src/main/java/net/runelite/client/discord/DiscordService.java"

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_runelite,node_party,node_discord toneBlue
class node_server,node_netty,node_world,node_player_model,node_interfaces,node_items,node_item_defs toneAmber
class node_activities,node_costume_storage,node_raid_storage,node_game_data toneMint
class node_cache_manager,node_cache_protocol,node_filestore toneRose
class node_hiscores,node_rest,node_player,node_external_party toneIndigo
```

## Components

### Game Client

- [RuneLite Client](https://github.com/leif-yggdrasil/kronos-184-fixed/tree/main/Kronos-master/runelite/runelite-client/src/main/java): `Kronos-master/runelite/runelite-client/src/main/java`
- [Party Service](https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/runelite/runelite-client/src/main/java/net/runelite/client/ws/PartyService.java): `Kronos-master/runelite/runelite-client/src/main/java/net/runelite/client/ws/PartyService.java`
- [Discord Integration](https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/runelite/runelite-client/src/main/java/net/runelite/client/discord/DiscordService.java): `Kronos-master/runelite/runelite-client/src/main/java/net/runelite/client/discord/DiscordService.java`

### World Server

- [Game Server](https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-server/src/main/java/io/ruin/Server.java): `Kronos-master/kronos-server/src/main/java/io/ruin/Server.java`
- [Network Server](https://github.com/leif-yggdrasil/kronos-184-fixed/tree/main/Kronos-master/kronos-api/src/main/java/io/ruin/api/netty): `Kronos-master/kronos-api/src/main/java/io/ruin/api/netty`
- [World State](https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-server/src/main/java/io/ruin/model/World.java): `Kronos-master/kronos-server/src/main/java/io/ruin/model/World.java`
- [Player Model](https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-server/src/main/java/io/ruin/model/entity/player/Player.java): `Kronos-master/kronos-server/src/main/java/io/ruin/model/entity/player/Player.java`
- [Interface Handling](https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-server/src/main/java/io/ruin/model/inter/InterfaceHandler.java): `Kronos-master/kronos-server/src/main/java/io/ruin/model/inter/InterfaceHandler.java`
- [Item and Attributes](https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-server/src/main/java/io/ruin/model/item/Item.java): `Kronos-master/kronos-server/src/main/java/io/ruin/model/item/Item.java`
- [Item Definitions](https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-server/src/main/java/io/ruin/cache/ItemDef.java): `Kronos-master/kronos-server/src/main/java/io/ruin/cache/ItemDef.java`

### Game Systems

- [Activities and Raids](https://github.com/leif-yggdrasil/kronos-184-fixed/tree/main/Kronos-master/kronos-server/src/main/java/io/ruin/model/activities): `Kronos-master/kronos-server/src/main/java/io/ruin/model/activities`
- [Costume Storage](https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-server/src/main/java/io/ruin/model/skills/construction/actions/CostumeStorage.java): `Kronos-master/kronos-server/src/main/java/io/ruin/model/skills/construction/actions/CostumeStorage.java`
- [Raid Storage](https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-server/src/main/java/io/ruin/model/activities/raids/xeric/RaidStorage.java): `Kronos-master/kronos-server/src/main/java/io/ruin/model/activities/raids/xeric/RaidStorage.java`
- [Game Data](https://github.com/leif-yggdrasil/kronos-184-fixed/tree/main/Kronos-master/kronos-server/src/main/java/io/ruin/data): `Kronos-master/kronos-server/src/main/java/io/ruin/data`

### Cache Services

- [Cache Manager](https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-update-server/src/main/java/io/ruin/update/CacheManager.java): `Kronos-master/kronos-update-server/src/main/java/io/ruin/update/CacheManager.java`
- [Cache Update Protocol](https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-update-server/src/main/java/io/ruin/update/Js5Decoder.java): `Kronos-master/kronos-update-server/src/main/java/io/ruin/update/Js5Decoder.java`
- [Cache File Store](https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-api/src/main/java/io/ruin/api/filestore/FileStore.java): `Kronos-master/kronos-api/src/main/java/io/ruin/api/filestore/FileStore.java`

### API and Web

- [Hiscores API](https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-api/src/main/java/io/ruin/api/rest/hiscores/HiscoresController.java): `Kronos-master/kronos-api/src/main/java/io/ruin/api/rest/hiscores/HiscoresController.java`
- [REST API](https://github.com/leif-yggdrasil/kronos-184-fixed/blob/main/Kronos-master/kronos-api/src/main/java/io/ruin/api/rest/KronosRest.java): `Kronos-master/kronos-api/src/main/java/io/ruin/api/rest/KronosRest.java`

### Other components

- **Player**
- **Party WebSocket**

## Connections

- Player → RuneLite Client: plays through
- RuneLite Client → Game Server: connects to
- Game Server → Network Server: starts networking
- Game Server → World State: initializes world
- World State → Player Model: manages players (evidence: `Kronos-master/kronos-server/src/main/java/io/ruin/model/entity/player/Player.java`)
- Player Model → Interface Handling: tracks visibility (evidence: `Kronos-master/kronos-server/src/main/java/io/ruin/model/inter/InterfaceHandler.java`)
- Player Model → Item and Attributes: owns inventory (evidence: `Kronos-master/kronos-server/src/main/java/io/ruin/model/entity/player/Player.java`)
- Item and Attributes → Item Definitions: reads definitions (evidence: `Kronos-master/kronos-server/src/main/java/io/ruin/model/item/Item.java`)
- Activities and Raids → Raid Storage: includes raid storage (evidence: `Kronos-master/kronos-server/src/main/java/io/ruin/model/activities/raids/xeric/RaidStorage.java`)
- Raid Storage → Item and Attributes: moves items (evidence: `Kronos-master/kronos-server/src/main/java/io/ruin/model/activities/raids/xeric/RaidStorage.java`)
- Costume Storage → Player Model: updates player (evidence: `Kronos-master/kronos-server/src/main/java/io/ruin/model/skills/construction/actions/CostumeStorage.java`)
- Cache Manager → Cache File Store: uses file store (evidence: `Kronos-master/kronos-update-server/src/main/java/io/ruin/update/CacheManager.java`)
- Cache Update Protocol → Cache Manager: serves cache data
- RuneLite Client → Cache Manager: requests updates
- REST API → Hiscores API: exposes hiscores
- Party Service → Party WebSocket: sends party messages (evidence: `Kronos-master/runelite/runelite-client/src/main/java/net/runelite/client/ws/PartyService.java`)
- Discord Integration → RuneLite Client: provides presence (evidence: `Kronos-master/runelite/runelite-client/src/main/java/net/runelite/client/discord/DiscordService.java`)
- Game Data → Game Server: configures content
