# super-cod/dynamic-island architecture

> Architecture diagram of the GitHub repository super-cod/dynamic-island, 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/super-cod/dynamic-island
- Repository: https://github.com/super-cod/dynamic-island

## Overview

Windows Dynamic Bar is a Windows 10/11 desktop overlay that surfaces transient status and controls in a compact island. The principal workflow is application startup and service activation, followed by services detecting system or user activity, publishing events, and the bar presenting interactive cards; users also invoke search, timers, and controls through the bar or tray. The graph preserves documented feature branches and shows search’s internal helpers. Several service/UI implementations are unsampled, so their links rely on README statements or indexed references rather than inspected call sites.

Main entry points: [`src/WindowsDynamicBar/App.xaml.cs`](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/App.xaml.cs) (Application startup), [`src/WindowsDynamicBar/UI/BarWindow.Search.cs`](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/UI/BarWindow.Search.cs) (Search interface), [`src/WindowsDynamicBar/Services/Media/MediaService.cs`](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/Media/MediaService.cs) (Media sessions), [`src/WindowsDynamicBar/UI/BarWindow.xaml.cs`](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/UI/BarWindow.xaml.cs) (Island bar)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime and presentation"]
  node_app["Application startup<br/>[App.xaml.cs]"]
  node_bar["Island bar<br/>[BarWindow.xaml.cs]"]
  node_tray["System tray<br/>[TrayController.cs]"]
  node_onboarding["First-run guide"]
end

subgraph group_search["Search and launch"]
  node_searchui["Search interface"]
  node_discovery["App discovery"]
  node_commands["App commands"]
  node_ranking["Search ranking<br/>[SearchRanker.cs]"]
  node_filesearch["File search"]
  node_expressions["Math evaluation"]
  node_windowswitch["Window switcher"]
end

subgraph group_system["System features"]
  node_timercmd["Timer commands<br/>[TimerCommand.cs]"]
  node_timers["Timers and stopwatch<br/>[TimerServices.cs]"]
  node_clipboard[("Clipboard history")]
  node_quicktoggles["Quick toggles"]
  node_systemmonitor["System monitor"]
  node_telemetry["Telemetry charts"]
  node_network["Network telemetry"]
  node_weather["Weather<br/>[WeatherService.cs]"]
end

subgraph group_media["Media and interaction"]
  node_media["Media sessions<br/>[MediaService.cs]"]
  node_lyrics["Synchronized lyrics<br/>[LrcLibClient.cs]"]
  node_audiohud["Volume brightness HUD"]
  node_notifications["System notifications"]
end

subgraph group_foundation["Shared foundations"]
  node_eventbus["Event routing<br/>[EventBus.cs]"]
  node_settings[("Settings<br/>[SettingsModel.cs]")]
  node_logging["Logging<br/>[Log.cs]"]
end

node_user(("User"))
node_windows{{"Windows services"}}

node_user -->|"uses"| node_bar
node_user -->|"opens controls"| node_tray
node_app -->|"creates"| node_eventbus
node_app -->|"loads"| node_settings
node_app -->|"starts"| node_bar
node_app -->|"starts"| node_media
node_app -->|"activates"| node_systemmonitor
node_app -->|"starts"| node_quicktoggles
node_app -->|"starts"| node_clipboard
node_app -->|"starts"| node_timers
node_app -->|"starts"| node_notifications
node_app -->|"logs startup"| node_logging
node_tray -->|"opens"| node_bar
node_bar -.->|"presents events"| node_eventbus
node_user -->|"invokes search"| node_searchui
node_searchui -->|"queries apps"| node_discovery
node_searchui -->|"runs commands"| node_commands
node_searchui -->|"ranks results"| node_ranking
node_searchui -->|"searches files"| node_filesearch
node_searchui -->|"evaluates math"| node_expressions
node_searchui -->|"switches windows"| node_windowswitch
node_commands -->|"uses discovery"| node_discovery
node_discovery -.->|"discovers applications"| node_windows
node_filesearch -->|"queries file index"| node_windows
node_windowswitch -->|"enumerates windows"| node_windows
node_user -->|"enters timer command"| node_timercmd
node_timercmd -.->|"starts timer"| node_timers
node_clipboard -->|"reads settings"| node_settings
node_clipboard -->|"captures clipboard"| node_windows
node_quicktoggles -->|"changes system toggles"| node_windows
node_user -->|"controls toggles"| node_quicktoggles
node_systemmonitor -.->|"provides telemetry"| node_telemetry
node_systemmonitor -.->|"samples hardware"| node_windows
node_user -->|"views charts"| node_telemetry
node_media -.->|"fetches lyrics"| node_lyrics
node_media -->|"reads media sessions"| node_windows
node_user -->|"controls playback"| node_media
node_audiohud -->|"reads audio state"| node_windows
node_user -->|"changes volume"| node_audiohud
node_notifications -.->|"publishes events"| node_eventbus
node_network -.->|"reads network state"| node_windows
node_user -->|"views network status"| node_network
node_weather -.->|"gets weather data"| node_windows
node_user -->|"completes setup"| node_onboarding

click node_app "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/App.xaml.cs"
click node_bar "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/UI/BarWindow.xaml.cs"
click node_tray "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/UI/TrayController.cs"
click node_eventbus "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Core/Events/EventBus.cs"
click node_settings "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Core/Settings/SettingsModel.cs"
click node_logging "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Core/Logging/Log.cs"
click node_searchui "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/UI/BarWindow.Search.cs"
click node_discovery "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Core/Search/AppDiscoveryService.cs"
click node_commands "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Core/Search/AppCommandRegistry.cs"
click node_ranking "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Core/Search/SearchRanker.cs"
click node_filesearch "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Core/Search/WindowsSearchService.cs"
click node_expressions "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Core/Search/ExpressionEvaluator.cs"
click node_windowswitch "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/Search/WindowSwitcherService.cs"
click node_timercmd "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Core/Timers/TimerCommand.cs"
click node_timers "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/Timers/TimerServices.cs"
click node_clipboard "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/Clipboard/ClipboardHistoryService.cs"
click node_quicktoggles "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/Toggles/QuickToggleService.cs"
click node_systemmonitor "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/SystemMonitor/SystemMonitorService.cs"
click node_telemetry "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/SystemMonitor/SystemTelemetryService.cs"
click node_media "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/Media/MediaService.cs"
click node_lyrics "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/Media/LrcLibClient.cs"
click node_audiohud "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/Audio/VolumeBrightnessServices.cs"
click node_notifications "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/Notifications/NotificationServices.cs"
click node_network "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/SystemMonitor/NetworkTelemetryService.cs"
click node_weather "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/Weather/WeatherService.cs"
click node_onboarding "https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/UI/FirstRunWindow.xaml.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_app,node_bar,node_tray,node_onboarding,node_user toneBlue
class node_searchui,node_discovery,node_commands,node_ranking,node_filesearch,node_expressions,node_windowswitch toneAmber
class node_timercmd,node_timers,node_clipboard,node_quicktoggles,node_systemmonitor,node_telemetry,node_network,node_weather toneMint
class node_media,node_lyrics,node_audiohud,node_notifications toneRose
class node_eventbus,node_settings,node_logging,node_windows toneIndigo
```

## Components

### Runtime and presentation

- [Application startup](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/App.xaml.cs): `src/WindowsDynamicBar/App.xaml.cs`
- [Island bar](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/UI/BarWindow.xaml.cs): `src/WindowsDynamicBar/UI/BarWindow.xaml.cs`
- [System tray](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/UI/TrayController.cs): `src/WindowsDynamicBar/UI/TrayController.cs`
- [First-run guide](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/UI/FirstRunWindow.xaml.cs): `src/WindowsDynamicBar/UI/FirstRunWindow.xaml.cs`

### Search and launch

- [Search interface](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/UI/BarWindow.Search.cs): `src/WindowsDynamicBar/UI/BarWindow.Search.cs`
- [App discovery](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Core/Search/AppDiscoveryService.cs): `src/WindowsDynamicBar/Core/Search/AppDiscoveryService.cs`
- [App commands](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Core/Search/AppCommandRegistry.cs): `src/WindowsDynamicBar/Core/Search/AppCommandRegistry.cs`
- [Search ranking](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Core/Search/SearchRanker.cs): `src/WindowsDynamicBar/Core/Search/SearchRanker.cs`
- [File search](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Core/Search/WindowsSearchService.cs): `src/WindowsDynamicBar/Core/Search/WindowsSearchService.cs`
- [Math evaluation](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Core/Search/ExpressionEvaluator.cs): `src/WindowsDynamicBar/Core/Search/ExpressionEvaluator.cs`
- [Window switcher](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/Search/WindowSwitcherService.cs): `src/WindowsDynamicBar/Services/Search/WindowSwitcherService.cs`

### System features

- [Timer commands](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Core/Timers/TimerCommand.cs): `src/WindowsDynamicBar/Core/Timers/TimerCommand.cs`
- [Timers and stopwatch](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/Timers/TimerServices.cs): `src/WindowsDynamicBar/Services/Timers/TimerServices.cs`
- [Clipboard history](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/Clipboard/ClipboardHistoryService.cs): `src/WindowsDynamicBar/Services/Clipboard/ClipboardHistoryService.cs`
- [Quick toggles](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/Toggles/QuickToggleService.cs): `src/WindowsDynamicBar/Services/Toggles/QuickToggleService.cs`
- [System monitor](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/SystemMonitor/SystemMonitorService.cs): `src/WindowsDynamicBar/Services/SystemMonitor/SystemMonitorService.cs`
- [Telemetry charts](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/SystemMonitor/SystemTelemetryService.cs): `src/WindowsDynamicBar/Services/SystemMonitor/SystemTelemetryService.cs`
- [Network telemetry](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/SystemMonitor/NetworkTelemetryService.cs): `src/WindowsDynamicBar/Services/SystemMonitor/NetworkTelemetryService.cs`
- [Weather](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/Weather/WeatherService.cs): `src/WindowsDynamicBar/Services/Weather/WeatherService.cs`

### Media and interaction

- [Media sessions](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/Media/MediaService.cs): `src/WindowsDynamicBar/Services/Media/MediaService.cs`
- [Synchronized lyrics](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/Media/LrcLibClient.cs): `src/WindowsDynamicBar/Services/Media/LrcLibClient.cs`
- [Volume brightness HUD](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/Audio/VolumeBrightnessServices.cs): `src/WindowsDynamicBar/Services/Audio/VolumeBrightnessServices.cs`
- [System notifications](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Services/Notifications/NotificationServices.cs): `src/WindowsDynamicBar/Services/Notifications/NotificationServices.cs`

### Shared foundations

- [Event routing](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Core/Events/EventBus.cs): `src/WindowsDynamicBar/Core/Events/EventBus.cs`
- [Settings](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Core/Settings/SettingsModel.cs): `src/WindowsDynamicBar/Core/Settings/SettingsModel.cs`
- [Logging](https://github.com/super-cod/dynamic-island/blob/main/src/WindowsDynamicBar/Core/Logging/Log.cs): `src/WindowsDynamicBar/Core/Logging/Log.cs`

### Other components

- **User**
- **Windows services**

## Connections

- User → Island bar: uses (evidence: `README.md`)
- User → System tray: opens controls (evidence: `src/WindowsDynamicBar/UI/TrayController.cs`)
- Application startup → Event routing: creates (evidence: `src/WindowsDynamicBar/App.xaml.cs`)
- Application startup → Settings: loads (evidence: `src/WindowsDynamicBar/App.xaml.cs`)
- Application startup → Island bar: starts (evidence: `src/WindowsDynamicBar/App.xaml.cs`)
- Application startup → Media sessions: starts (evidence: `src/WindowsDynamicBar/App.xaml.cs`)
- Application startup → System monitor: activates (evidence: `src/WindowsDynamicBar/App.xaml.cs`)
- Application startup → Quick toggles: starts (evidence: `src/WindowsDynamicBar/App.xaml.cs`)
- Application startup → Clipboard history: starts (evidence: `src/WindowsDynamicBar/App.xaml.cs`)
- Application startup → Timers and stopwatch: starts (evidence: `src/WindowsDynamicBar/App.xaml.cs`)
- Application startup → System notifications: starts (evidence: `src/WindowsDynamicBar/App.xaml.cs`)
- Application startup → Logging: logs startup (evidence: `src/WindowsDynamicBar/App.xaml.cs`)
- System tray → Island bar: opens (evidence: `src/WindowsDynamicBar/UI/TrayController.cs`)
- Island bar → Event routing: presents events (evidence: `README.md`)
- User → Search interface: invokes search (evidence: `README.md`)
- Search interface → App discovery: queries apps (evidence: `src/WindowsDynamicBar/UI/BarWindow.Search.cs`)
- Search interface → App commands: runs commands (evidence: `src/WindowsDynamicBar/UI/BarWindow.Search.cs`)
- Search interface → Search ranking: ranks results (evidence: `src/WindowsDynamicBar/UI/BarWindow.Search.cs`)
- Search interface → File search: searches files (evidence: `src/WindowsDynamicBar/UI/BarWindow.Search.cs`)
- Search interface → Math evaluation: evaluates math (evidence: `src/WindowsDynamicBar/UI/BarWindow.Search.cs`)
- Search interface → Window switcher: switches windows (evidence: `src/WindowsDynamicBar/UI/BarWindow.Search.cs`)
- App commands → App discovery: uses discovery (evidence: `src/WindowsDynamicBar/Core/Search/AppCommandRegistry.cs`)
- App discovery → Windows services: discovers applications
- File search → Windows services: queries file index (evidence: `src/WindowsDynamicBar/Core/Search/WindowsSearchService.cs`)
- Window switcher → Windows services: enumerates windows (evidence: `src/WindowsDynamicBar/Services/Search/WindowSwitcherService.cs`)
- User → Timer commands: enters timer command (evidence: `README.md`)
- Timer commands → Timers and stopwatch: starts timer (evidence: `README.md`)
- Clipboard history → Settings: reads settings (evidence: `src/WindowsDynamicBar/Services/Clipboard/ClipboardHistoryService.cs`)
- Clipboard history → Windows services: captures clipboard (evidence: `README.md`)
- Quick toggles → Windows services: changes system toggles (evidence: `README.md`)
- User → Quick toggles: controls toggles (evidence: `README.md`)
- System monitor → Telemetry charts: provides telemetry
- System monitor → Windows services: samples hardware
- User → Telemetry charts: views charts (evidence: `README.md`)
- Media sessions → Synchronized lyrics: fetches lyrics (evidence: `README.md`)
- Media sessions → Windows services: reads media sessions (evidence: `src/WindowsDynamicBar/Services/Media/MediaService.cs`)
- User → Media sessions: controls playback (evidence: `README.md`)
- Volume brightness HUD → Windows services: reads audio state (evidence: `src/WindowsDynamicBar/Services/Audio/VolumeBrightnessServices.cs`)
- User → Volume brightness HUD: changes volume (evidence: `README.md`)
- System notifications → Event routing: publishes events (evidence: `src/WindowsDynamicBar/Services/Notifications/NotificationServices.cs`)
- Network telemetry → Windows services: reads network state
- User → Network telemetry: views network status (evidence: `README.md`)
- Weather → Windows services: gets weather data
- User → First-run guide: completes setup (evidence: `README.md`)
