# vesant/weatheros architecture

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

- Interactive diagram: https://gitdiagram.com/vesant/weatheros
- Repository: https://github.com/vesant/weatheros

## Overview

WeatherOS is a Cosmos-based C# operating system with a boot-to-interaction workflow: the kernel initializes hardware and services, presents boot choices, then routes users to a terminal or TUI desktop. Its user-facing capabilities include weather and lunar forecasts, system tools, disk and file management, networking, and installation/update functions. The graph emphasizes sourced control and service relationships; several app and command details are documented only by the source index or launcher descriptions, so their internal links are omitted where not established.

Main entry points: [`WeatherOS/Kernel.cs`](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Kernel.cs) (Kernel runtime), [`WeatherOS/Services/DiskWipeService.cs`](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/DiskWipeService.cs) (Disk management), [`WeatherOS/Services/StorageService.cs`](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/StorageService.cs) (Storage service), [`WeatherOS/Commands/CommandManager.cs`](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Commands/CommandManager.cs) (Command manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_startup["Startup and interaction"]
  node_kernel["Kernel runtime<br/>[Kernel.cs]"]
  node_boot["Boot selector<br/>[BootMenu.cs]"]
  node_terminal["Command manager<br/>[CommandManager.cs]"]
  node_desktop["TUI desktop<br/>[TuiDesktop.cs]"]
end

subgraph group_ui["Desktop applications"]
  node_app_contract["App interface<br/>[IApp.cs]"]
  node_weather_apps["Weather and lunar apps"]
  node_clock_app["Clock app<br/>[ClockApp.cs]"]
  node_files_app["File manager<br/>[DiskManagerApp.cs]"]
  node_diagnostics_app["Disk diagnostics"]
  node_installer_app["Installer<br/>[InstallerApp.cs]"]
  node_system_info["System information<br/>[SystemInfoApp.cs]"]
  node_notepad["Notepad<br/>[NotepadApp.cs]"]
end

subgraph group_services["OS services"]
  node_weather_service["Weather service<br/>[WeatherService.cs]"]
  node_storage[("Storage service<br/>[StorageService.cs]")]
  node_disk_wipe["Disk management<br/>[DiskWipeService.cs]"]
  node_disk_probe["Filesystem probe"]
  node_file_transfer["File transfer"]
  node_update["Update manager"]
  node_commits["GitHub commits"]
end

subgraph group_hardware["Hardware and networking"]
  node_http["Raw TCP HTTP<br/>[RawTcpHttp.cs]"]
  node_tls["TLS client<br/>[TlsClient.cs]"]
  node_ahci["AHCI driver"]
  node_ata["PCI ATA driver"]
  node_nic["RTL8102E driver<br/>[RTL8102E.cs]"]
end

node_user(("User"))

node_user -->|"starts OS"| node_kernel
node_kernel -->|"shows boot menu"| node_boot
node_boot -->|"sets boot source"| node_update
node_kernel -->|"creates desktop"| node_desktop
node_kernel -->|"registers commands"| node_terminal
node_user -->|"uses desktop"| node_desktop
node_desktop -->|"launches apps"| node_app_contract
node_weather_apps -.->|"implements"| node_app_contract
node_clock_app -->|"implements"| node_app_contract
node_files_app -->|"reads and writes"| node_storage
node_diagnostics_app -->|"uses"| node_disk_probe
node_diagnostics_app -.->|"uses"| node_disk_wipe
node_installer_app -->|"uses"| node_disk_wipe
node_installer_app -->|"uses"| node_update
node_system_info -->|"fetches commits"| node_commits
node_system_info -->|"loads files"| node_storage
node_notepad -->|"uses"| node_storage
node_terminal -->|"weather commands use"| node_weather_service
node_terminal -->|"lists filesystems"| node_disk_probe
node_terminal -->|"wipes disks"| node_disk_wipe
node_weather_service -->|"fetches weather"| node_http
node_commits -->|"uses TLS"| node_tls
node_file_transfer -->|"stores transfers"| node_storage
node_file_transfer -->|"uses HTTP"| node_http
node_disk_wipe -->|"uses driver"| node_ahci
node_disk_wipe -->|"uses driver"| node_ata
node_disk_probe -->|"uses driver"| node_ahci
node_update -->|"formats target"| node_disk_wipe
node_update -->|"uses storage"| node_storage
node_http -->|"polls network device"| node_nic
node_kernel -->|"initializes"| node_ahci
node_kernel -->|"initializes"| node_ata
node_kernel -->|"initializes"| node_nic

click node_kernel "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Kernel.cs"
click node_boot "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Graphics/BootMenu.cs"
click node_terminal "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Commands/CommandManager.cs"
click node_desktop "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Graphics/TuiDesktop.cs"
click node_app_contract "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Apps/IApp.cs"
click node_weather_apps "https://github.com/vesant/weatheros/tree/32bit/WeatherOS/Apps"
click node_clock_app "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Apps/ClockApp.cs"
click node_files_app "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Apps/DiskManagerApp.cs"
click node_diagnostics_app "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Apps/DiskDiagnosticsApp.cs"
click node_installer_app "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Apps/InstallerApp.cs"
click node_system_info "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Apps/SystemInfoApp.cs"
click node_notepad "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Apps/NotepadApp.cs"
click node_weather_service "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/WeatherService.cs"
click node_storage "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/StorageService.cs"
click node_disk_wipe "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/DiskWipeService.cs"
click node_disk_probe "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/FileSystemProbeService.cs"
click node_file_transfer "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/FileTransferService.cs"
click node_update "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/UpdateManagerService.cs"
click node_commits "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/GitHubCommitsService.cs"
click node_http "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/RawTcpHttp.cs"
click node_tls "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/TlsClient.cs"
click node_ahci "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/AhciDriverService.cs"
click node_ata "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/CustomPciAtaDriverService.cs"
click node_nic "https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Drivers/RTL8102E.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_kernel,node_boot,node_terminal,node_desktop,node_user toneBlue
class node_app_contract,node_weather_apps,node_clock_app,node_files_app,node_diagnostics_app,node_installer_app,node_system_info,node_notepad toneAmber
class node_weather_service,node_storage,node_disk_wipe,node_disk_probe,node_file_transfer,node_update,node_commits toneMint
class node_http,node_tls,node_ahci,node_ata,node_nic toneRose
```

## Components

### Startup and interaction

- [Kernel runtime](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Kernel.cs): `WeatherOS/Kernel.cs`
- [Boot selector](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Graphics/BootMenu.cs): `WeatherOS/Graphics/BootMenu.cs`
- [Command manager](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Commands/CommandManager.cs): `WeatherOS/Commands/CommandManager.cs`
- [TUI desktop](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Graphics/TuiDesktop.cs): `WeatherOS/Graphics/TuiDesktop.cs`

### Desktop applications

- [App interface](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Apps/IApp.cs): `WeatherOS/Apps/IApp.cs`
- [Weather and lunar apps](https://github.com/vesant/weatheros/tree/32bit/WeatherOS/Apps): `WeatherOS/Apps`
- [Clock app](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Apps/ClockApp.cs): `WeatherOS/Apps/ClockApp.cs`
- [File manager](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Apps/DiskManagerApp.cs): `WeatherOS/Apps/DiskManagerApp.cs`
- [Disk diagnostics](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Apps/DiskDiagnosticsApp.cs): `WeatherOS/Apps/DiskDiagnosticsApp.cs`
- [Installer](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Apps/InstallerApp.cs): `WeatherOS/Apps/InstallerApp.cs`
- [System information](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Apps/SystemInfoApp.cs): `WeatherOS/Apps/SystemInfoApp.cs`
- [Notepad](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Apps/NotepadApp.cs): `WeatherOS/Apps/NotepadApp.cs`

### OS services

- [Weather service](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/WeatherService.cs): `WeatherOS/Services/WeatherService.cs`
- [Storage service](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/StorageService.cs): `WeatherOS/Services/StorageService.cs`
- [Disk management](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/DiskWipeService.cs): `WeatherOS/Services/DiskWipeService.cs`
- [Filesystem probe](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/FileSystemProbeService.cs): `WeatherOS/Services/FileSystemProbeService.cs`
- [File transfer](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/FileTransferService.cs): `WeatherOS/Services/FileTransferService.cs`
- [Update manager](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/UpdateManagerService.cs): `WeatherOS/Services/UpdateManagerService.cs`
- [GitHub commits](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/GitHubCommitsService.cs): `WeatherOS/Services/GitHubCommitsService.cs`

### Hardware and networking

- [Raw TCP HTTP](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/RawTcpHttp.cs): `WeatherOS/Services/RawTcpHttp.cs`
- [TLS client](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/TlsClient.cs): `WeatherOS/Services/TlsClient.cs`
- [AHCI driver](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/AhciDriverService.cs): `WeatherOS/Services/AhciDriverService.cs`
- [PCI ATA driver](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Services/CustomPciAtaDriverService.cs): `WeatherOS/Services/CustomPciAtaDriverService.cs`
- [RTL8102E driver](https://github.com/vesant/weatheros/blob/32bit/WeatherOS/Drivers/RTL8102E.cs): `WeatherOS/Drivers/RTL8102E.cs`

### Other components

- **User**

## Connections

- User → Kernel runtime: starts OS (evidence: `WeatherOS/Kernel.cs`)
- Kernel runtime → Boot selector: shows boot menu (evidence: `WeatherOS/Kernel.cs`)
- Boot selector → Update manager: sets boot source (evidence: `WeatherOS/Graphics/BootMenu.cs`)
- Kernel runtime → TUI desktop: creates desktop (evidence: `WeatherOS/Kernel.cs`)
- Kernel runtime → Command manager: registers commands (evidence: `WeatherOS/Kernel.cs`)
- User → TUI desktop: uses desktop (evidence: `WeatherOS/Graphics/TuiDesktop.cs`)
- TUI desktop → App interface: launches apps (evidence: `WeatherOS/Graphics/TuiDesktop.cs`)
- Weather and lunar apps → App interface: implements (evidence: `WeatherOS/Apps/DiskManagerApp.cs`)
- Clock app → App interface: implements (evidence: `WeatherOS/Apps/ClockApp.cs`)
- File manager → Storage service: reads and writes (evidence: `WeatherOS/Apps/DiskManagerApp.cs`)
- Disk diagnostics → Filesystem probe: uses (evidence: `WeatherOS/Apps/DiskDiagnosticsApp.cs`)
- Disk diagnostics → Disk management: uses
- Installer → Disk management: uses (evidence: `WeatherOS/Apps/InstallerApp.cs`)
- Installer → Update manager: uses (evidence: `WeatherOS/Apps/InstallerApp.cs`)
- System information → GitHub commits: fetches commits (evidence: `WeatherOS/Apps/SystemInfoApp.cs`)
- System information → Storage service: loads files (evidence: `WeatherOS/Apps/SystemInfoApp.cs`)
- Notepad → Storage service: uses (evidence: `WeatherOS/Apps/NotepadApp.cs`)
- Command manager → Weather service: weather commands use
- Command manager → Filesystem probe: lists filesystems
- Command manager → Disk management: wipes disks
- Weather service → Raw TCP HTTP: fetches weather (evidence: `WeatherOS/Services/WeatherService.cs`)
- GitHub commits → TLS client: uses TLS (evidence: `WeatherOS/Services/GitHubCommitsService.cs`)
- File transfer → Storage service: stores transfers (evidence: `WeatherOS/Services/FileTransferService.cs`)
- File transfer → Raw TCP HTTP: uses HTTP (evidence: `WeatherOS/Services/FileTransferService.cs`)
- Disk management → AHCI driver: uses driver (evidence: `WeatherOS/Services/DiskWipeService.cs`)
- Disk management → PCI ATA driver: uses driver (evidence: `WeatherOS/Services/DiskWipeService.cs`)
- Filesystem probe → AHCI driver: uses driver (evidence: `WeatherOS/Services/FileSystemProbeService.cs`)
- Update manager → Disk management: formats target (evidence: `WeatherOS/Services/UpdateManagerService.cs`)
- Update manager → Storage service: uses storage (evidence: `WeatherOS/Services/UpdateManagerService.cs`)
- Raw TCP HTTP → RTL8102E driver: polls network device (evidence: `WeatherOS/Services/RawTcpHttp.cs`)
- Kernel runtime → AHCI driver: initializes (evidence: `WeatherOS/Kernel.cs`)
- Kernel runtime → PCI ATA driver: initializes (evidence: `WeatherOS/Kernel.cs`)
- Kernel runtime → RTL8102E driver: initializes (evidence: `WeatherOS/Kernel.cs`)
