# runcat-dev/runcat365 architecture

> Architecture diagram of the GitHub repository runcat-dev/runcat365, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/runcat-dev/runcat365
- Repository: https://github.com/runcat-dev/runcat365

## Overview

RunCat 365 is a Windows taskbar companion that animates a selected runner and exposes system information and settings through its tray menu. The principal workflow starts in the application coordinator, which samples system metrics and passes display text to the menu/tray UI; animation updates display runner frames. Separate branches support custom runners, startup behavior, and the endless game. The graph reflects the supplied excerpts and SOURCE INDEX references; unsampled implementations and undocumented connections are not inferred.

Main entry points: [`RunCat365/Program.cs`](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/Program.cs) (App coordinator), [`RunCat365/ContextMenuManager.cs`](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/ContextMenuManager.cs) (Tray menu), [`RunCat365/CustomRunnerForm.cs`](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/CustomRunnerForm.cs) (Custom runner editor), [`RunCat365/EndlessGameForm.cs`](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/EndlessGameForm.cs) (Endless game)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application and tray UI"]
  node_program["App coordinator<br/>[Program.cs]"]
  node_menu["Tray menu"]
  node_menuitems["Menu items"]
  node_renderer["Menu renderer"]
end

subgraph group_metrics["System monitoring"]
  node_cpu["CPU metrics<br/>[CPURepository.cs]"]
  node_gpu["GPU metrics<br/>[GPURepository.cs]"]
  node_memory["Memory metrics"]
  node_temperature["Temperature metrics"]
  node_storage["Storage metrics"]
  node_network["Network metrics"]
  node_formatter["Tree formatter<br/>[TreeFormatter.cs]"]
  node_counters["Performance counters"]
end

subgraph group_runners["Runner animation"]
  node_runner["Runner selection<br/>[Runner.cs]"]
  node_cat["Cat animation state<br/>[Cat.cs]"]
  node_frameview["Frame animation view"]
end

subgraph group_custom["Customization and settings"]
  node_speed["Speed source<br/>[SpeedSource.cs]"]
  node_theme["Theme settings<br/>[Theme.cs]"]
  node_fps["FPS limit<br/>[FPSMaxLimit.cs]"]
  node_tempunit["Temperature unit<br/>[TemperatureUnit.cs]"]
  node_customform["Custom runner editor"]
  node_customrepo[("Custom runner storage")]
  node_profile["Runner profile"]
  node_trackbar["Trackbar control<br/>[FlatTrackBar.cs]"]
  node_startup["Startup manager"]
end

subgraph group_game["Endless game"]
  node_game["Endless game<br/>[EndlessGameForm.cs]"]
  node_gamestate["Game state<br/>[GameStatus.cs]"]
  node_road["Road obstacles<br/>[Road.cs]"]
end

node_user(("Windows user"))

node_user -.->|"starts"| node_program
node_program -->|"samples"| node_cpu
node_program -->|"samples"| node_gpu
node_program -->|"samples"| node_memory
node_program -->|"samples"| node_temperature
node_program -->|"samples"| node_storage
node_program -->|"samples"| node_network
node_program -->|"updates display"| node_menu
node_menu -->|"creates"| node_menuitems
node_renderer -->|"renders"| node_menuitems
node_cpu -->|"formats with"| node_formatter
node_storage -->|"formats with"| node_formatter
node_temperature -->|"resolves units"| node_tempunit
node_temperature -->|"reads counters"| node_counters
node_program -->|"configures"| node_runner
node_menu -->|"offers selection"| node_runner
node_menu -->|"configures"| node_theme
node_menu -->|"configures"| node_speed
node_menu -->|"configures"| node_fps
node_menu -->|"configures"| node_tempunit
node_runner -->|"selects frames"| node_cat
node_program -->|"manages startup"| node_startup
node_menu -->|"opens editor"| node_customform
node_customform -->|"loads and saves"| node_customrepo
node_customrepo -->|"serializes"| node_profile
node_customform -->|"uses animation view"| node_frameview
node_customform -->|"uses control"| node_trackbar
node_menu -->|"opens game"| node_game
node_game -->|"advances state"| node_cat
node_game -->|"tracks status"| node_gamestate
node_game -->|"updates obstacles"| node_road

click node_program "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/Program.cs"
click node_menu "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/ContextMenuManager.cs"
click node_menuitems "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/CustomToolStripMenuItem.cs"
click node_renderer "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/ContextMenuRenderer.cs"
click node_cpu "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/CPURepository.cs"
click node_gpu "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/GPURepository.cs"
click node_memory "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/MemoryRepository.cs"
click node_temperature "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/TemperatureRepository.cs"
click node_storage "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/StorageRepository.cs"
click node_network "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/NetworkRepository.cs"
click node_formatter "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/TreeFormatter.cs"
click node_counters "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/InstancedPerformanceCounters.cs"
click node_runner "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/Runner.cs"
click node_cat "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/Cat.cs"
click node_frameview "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/FrameAnimationView.cs"
click node_speed "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/SpeedSource.cs"
click node_theme "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/Theme.cs"
click node_fps "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/FPSMaxLimit.cs"
click node_tempunit "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/TemperatureUnit.cs"
click node_customform "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/CustomRunnerForm.cs"
click node_customrepo "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/CustomRunnerRepository.cs"
click node_profile "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/CustomRunnerProfile.cs"
click node_trackbar "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/FlatTrackBar.cs"
click node_startup "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/LaunchAtStartupManager.cs"
click node_game "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/EndlessGameForm.cs"
click node_gamestate "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/GameStatus.cs"
click node_road "https://github.com/runcat-dev/runcat365/blob/main/RunCat365/Road.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_program,node_menu,node_menuitems,node_renderer,node_user toneBlue
class node_cpu,node_gpu,node_memory,node_temperature,node_storage,node_network,node_formatter,node_counters toneAmber
class node_runner,node_cat,node_frameview toneMint
class node_speed,node_theme,node_fps,node_tempunit,node_customform,node_customrepo,node_profile,node_trackbar,node_startup toneRose
class node_game,node_gamestate,node_road toneIndigo
```

## Components

### Application and tray UI

- [App coordinator](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/Program.cs): `RunCat365/Program.cs`
- [Tray menu](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/ContextMenuManager.cs): `RunCat365/ContextMenuManager.cs`
- [Menu items](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/CustomToolStripMenuItem.cs): `RunCat365/CustomToolStripMenuItem.cs`
- [Menu renderer](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/ContextMenuRenderer.cs): `RunCat365/ContextMenuRenderer.cs`

### System monitoring

- [CPU metrics](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/CPURepository.cs): `RunCat365/CPURepository.cs`
- [GPU metrics](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/GPURepository.cs): `RunCat365/GPURepository.cs`
- [Memory metrics](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/MemoryRepository.cs): `RunCat365/MemoryRepository.cs`
- [Temperature metrics](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/TemperatureRepository.cs): `RunCat365/TemperatureRepository.cs`
- [Storage metrics](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/StorageRepository.cs): `RunCat365/StorageRepository.cs`
- [Network metrics](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/NetworkRepository.cs): `RunCat365/NetworkRepository.cs`
- [Tree formatter](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/TreeFormatter.cs): `RunCat365/TreeFormatter.cs`
- [Performance counters](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/InstancedPerformanceCounters.cs): `RunCat365/InstancedPerformanceCounters.cs`

### Runner animation

- [Runner selection](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/Runner.cs): `RunCat365/Runner.cs`
- [Cat animation state](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/Cat.cs): `RunCat365/Cat.cs`
- [Frame animation view](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/FrameAnimationView.cs): `RunCat365/FrameAnimationView.cs`

### Customization and settings

- [Speed source](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/SpeedSource.cs): `RunCat365/SpeedSource.cs`
- [Theme settings](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/Theme.cs): `RunCat365/Theme.cs`
- [FPS limit](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/FPSMaxLimit.cs): `RunCat365/FPSMaxLimit.cs`
- [Temperature unit](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/TemperatureUnit.cs): `RunCat365/TemperatureUnit.cs`
- [Custom runner editor](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/CustomRunnerForm.cs): `RunCat365/CustomRunnerForm.cs`
- [Custom runner storage](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/CustomRunnerRepository.cs): `RunCat365/CustomRunnerRepository.cs`
- [Runner profile](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/CustomRunnerProfile.cs): `RunCat365/CustomRunnerProfile.cs`
- [Trackbar control](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/FlatTrackBar.cs): `RunCat365/FlatTrackBar.cs`
- [Startup manager](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/LaunchAtStartupManager.cs): `RunCat365/LaunchAtStartupManager.cs`

### Endless game

- [Endless game](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/EndlessGameForm.cs): `RunCat365/EndlessGameForm.cs`
- [Game state](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/GameStatus.cs): `RunCat365/GameStatus.cs`
- [Road obstacles](https://github.com/runcat-dev/runcat365/blob/main/RunCat365/Road.cs): `RunCat365/Road.cs`

### Other components

- **Windows user**

## Connections

- Windows user → App coordinator: starts
- App coordinator → CPU metrics: samples (evidence: `RunCat365/Program.cs`)
- App coordinator → GPU metrics: samples (evidence: `RunCat365/Program.cs`)
- App coordinator → Memory metrics: samples (evidence: `RunCat365/Program.cs`)
- App coordinator → Temperature metrics: samples (evidence: `RunCat365/Program.cs`)
- App coordinator → Storage metrics: samples (evidence: `RunCat365/Program.cs`)
- App coordinator → Network metrics: samples (evidence: `RunCat365/Program.cs`)
- App coordinator → Tray menu: updates display (evidence: `RunCat365/Program.cs`)
- Tray menu → Menu items: creates (evidence: `RunCat365/ContextMenuManager.cs`)
- Menu renderer → Menu items: renders (evidence: `RunCat365/ContextMenuRenderer.cs`)
- CPU metrics → Tree formatter: formats with (evidence: `RunCat365/CPURepository.cs`)
- Storage metrics → Tree formatter: formats with (evidence: `RunCat365/StorageRepository.cs`)
- Temperature metrics → Temperature unit: resolves units (evidence: `RunCat365/TemperatureRepository.cs`)
- Temperature metrics → Performance counters: reads counters (evidence: `RunCat365/TemperatureRepository.cs`)
- App coordinator → Runner selection: configures (evidence: `RunCat365/Program.cs`)
- Tray menu → Runner selection: offers selection (evidence: `RunCat365/ContextMenuManager.cs`)
- Tray menu → Theme settings: configures (evidence: `RunCat365/ContextMenuManager.cs`)
- Tray menu → Speed source: configures (evidence: `RunCat365/ContextMenuManager.cs`)
- Tray menu → FPS limit: configures (evidence: `RunCat365/ContextMenuManager.cs`)
- Tray menu → Temperature unit: configures (evidence: `RunCat365/ContextMenuManager.cs`)
- Runner selection → Cat animation state: selects frames (evidence: `RunCat365/Runner.cs`)
- App coordinator → Startup manager: manages startup (evidence: `RunCat365/Program.cs`)
- Tray menu → Custom runner editor: opens editor (evidence: `RunCat365/ContextMenuManager.cs`)
- Custom runner editor → Custom runner storage: loads and saves (evidence: `RunCat365/CustomRunnerForm.cs`)
- Custom runner storage → Runner profile: serializes (evidence: `RunCat365/CustomRunnerRepository.cs`)
- Custom runner editor → Frame animation view: uses animation view (evidence: `RunCat365/CustomRunnerForm.cs`)
- Custom runner editor → Trackbar control: uses control (evidence: `RunCat365/CustomRunnerForm.cs`)
- Tray menu → Endless game: opens game (evidence: `RunCat365/ContextMenuManager.cs`)
- Endless game → Cat animation state: advances state (evidence: `RunCat365/EndlessGameForm.cs`)
- Endless game → Game state: tracks status (evidence: `RunCat365/EndlessGameForm.cs`)
- Endless game → Road obstacles: updates obstacles (evidence: `RunCat365/EndlessGameForm.cs`)
