# lolo34dr/deckpilot architecture

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

- Interactive diagram: https://gitdiagram.com/lolo34dr/deckpilot
- Repository: https://github.com/lolo34dr/deckpilot

## Overview

DeckPilot is a Windows companion for a 12-key macropad. Users calibrate key positions, assign actions and profiles, then trigger those actions from physical F13–F24 key presses. Major documented branches include application/media controls, soundboard mixing, profile management, device firmware support, and automatic updates. The README documents user-facing behavior; source-index references and excerpts support only some internal links, so uncertain wiring is omitted rather than inferred.

Main entry points: [`src/DeckPilot.Windows/UpdateService.cs`](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/UpdateService.cs) (App updates), [`src/DeckPilot.Windows/MainWindow.xaml.cs`](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/MainWindow.xaml.cs) (DeckPilot interface), [`src/DeckPilot.Core/ReleaseClient.cs`](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Core/ReleaseClient.cs) (Release client), [`src/DeckPilot.Core/Settings.cs`](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Core/Settings.cs) (Settings and profiles)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_configuration["Configuration"]
  node_main_ui["DeckPilot interface<br/>[MainWindow.xaml.cs]"]
  node_settings["Settings and profiles<br/>[Settings.cs]"]
  node_profile_exchange["Profile exchange<br/>[ProfileExchange.cs]"]
  node_portable_profiles["Portable profiles"]
  node_profile_overlay["Profile overlay<br/>[ProfileOverlay.cs]"]
  node_workspace["Workspace tools"]
end

subgraph group_execution["Key actions"]
  node_action_runner["Action runner<br/>[ActionRunner.cs]"]
  node_application_picker["Application picker"]
  node_application_catalog["Application catalog"]
  node_key_state["Key and gesture state<br/>[DeckKeyState.cs]"]
end

subgraph group_media["Audio and media"]
  node_soundboard["Soundboard mixer"]
  node_sound_library["Sound library"]
  node_spotify["Spotify controls"]
  node_spotify_volume["Spotify volume"]
  node_deezer["Deezer controls"]
  node_deezer_volume["Deezer volume"]
end

subgraph group_platform["Devices and lifecycle"]
  node_board_connection["Board connection"]
  node_firmware["Firmware management<br/>[FirmwareService.cs]"]
  node_update_service["App updates<br/>[UpdateService.cs]"]
  node_release_client["Release client<br/>[ReleaseClient.cs]"]
  node_update_installer["Update installer<br/>[UpdateInstaller.cs]"]
end

node_user(("Macropad user"))
node_github["GitHub releases"]

node_user -->|"configures keys"| node_main_ui
node_main_ui -.->|"saves settings"| node_settings
node_user -->|"searches apps"| node_application_picker
node_user -->|"triggers actions"| node_action_runner
node_user -->|"connects macropad"| node_board_connection
node_user -->|"mixes audio"| node_soundboard
node_user -->|"controls playback"| node_spotify
node_user -->|"adjusts volume"| node_spotify_volume
node_user -->|"controls playback"| node_deezer
node_user -->|"adjusts volume"| node_deezer_volume
node_user -.->|"updates firmware"| node_firmware
node_user -->|"approves updates"| node_update_service
node_update_service -->|"checks and downloads"| node_release_client
node_release_client -->|"requests releases"| node_github
node_update_service -.->|"installs update"| node_update_installer

click node_main_ui "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/MainWindow.xaml.cs"
click node_settings "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Core/Settings.cs"
click node_profile_exchange "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Core/ProfileExchange.cs"
click node_portable_profiles "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Core/PortableProfiles.cs"
click node_profile_overlay "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Core/ProfileOverlay.cs"
click node_workspace "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Core/WorkspaceFeatures.cs"
click node_action_runner "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/ActionRunner.cs"
click node_application_picker "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/ApplicationPicker.xaml.cs"
click node_application_catalog "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/ApplicationCatalog.cs"
click node_key_state "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Core/DeckKeyState.cs"
click node_board_connection "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/BoardConnectionService.cs"
click node_firmware "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/FirmwareService.cs"
click node_soundboard "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/SoundboardEngine.cs"
click node_sound_library "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Core/SoundboardLibrary.cs"
click node_spotify "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/SpotifyController.cs"
click node_spotify_volume "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/SpotifyVolumeController.cs"
click node_deezer "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/DeezerController.cs"
click node_deezer_volume "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/DeezerVolumeController.cs"
click node_update_service "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/UpdateService.cs"
click node_release_client "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Core/ReleaseClient.cs"
click node_update_installer "https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/UpdateInstaller.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_main_ui,node_settings,node_profile_exchange,node_portable_profiles,node_profile_overlay,node_workspace,node_user toneBlue
class node_action_runner,node_application_picker,node_application_catalog,node_key_state toneAmber
class node_soundboard,node_sound_library,node_spotify,node_spotify_volume,node_deezer,node_deezer_volume toneMint
class node_board_connection,node_firmware,node_update_service,node_release_client,node_update_installer toneRose
class node_github toneIndigo
```

## Components

### Configuration

- [DeckPilot interface](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/MainWindow.xaml.cs): `src/DeckPilot.Windows/MainWindow.xaml.cs`
- [Settings and profiles](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Core/Settings.cs): `src/DeckPilot.Core/Settings.cs`
- [Profile exchange](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Core/ProfileExchange.cs): `src/DeckPilot.Core/ProfileExchange.cs`
- [Portable profiles](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Core/PortableProfiles.cs): `src/DeckPilot.Core/PortableProfiles.cs`
- [Profile overlay](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Core/ProfileOverlay.cs): `src/DeckPilot.Core/ProfileOverlay.cs`
- [Workspace tools](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Core/WorkspaceFeatures.cs): `src/DeckPilot.Core/WorkspaceFeatures.cs`

### Key actions

- [Action runner](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/ActionRunner.cs): `src/DeckPilot.Windows/ActionRunner.cs`
- [Application picker](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/ApplicationPicker.xaml.cs): `src/DeckPilot.Windows/ApplicationPicker.xaml.cs`
- [Application catalog](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/ApplicationCatalog.cs): `src/DeckPilot.Windows/ApplicationCatalog.cs`
- [Key and gesture state](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Core/DeckKeyState.cs): `src/DeckPilot.Core/DeckKeyState.cs`

### Audio and media

- [Soundboard mixer](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/SoundboardEngine.cs): `src/DeckPilot.Windows/SoundboardEngine.cs`
- [Sound library](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Core/SoundboardLibrary.cs): `src/DeckPilot.Core/SoundboardLibrary.cs`
- [Spotify controls](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/SpotifyController.cs): `src/DeckPilot.Windows/SpotifyController.cs`
- [Spotify volume](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/SpotifyVolumeController.cs): `src/DeckPilot.Windows/SpotifyVolumeController.cs`
- [Deezer controls](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/DeezerController.cs): `src/DeckPilot.Windows/DeezerController.cs`
- [Deezer volume](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/DeezerVolumeController.cs): `src/DeckPilot.Windows/DeezerVolumeController.cs`

### Devices and lifecycle

- [Board connection](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/BoardConnectionService.cs): `src/DeckPilot.Windows/BoardConnectionService.cs`
- [Firmware management](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/FirmwareService.cs): `src/DeckPilot.Windows/FirmwareService.cs`
- [App updates](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/UpdateService.cs): `src/DeckPilot.Windows/UpdateService.cs`
- [Release client](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Core/ReleaseClient.cs): `src/DeckPilot.Core/ReleaseClient.cs`
- [Update installer](https://github.com/lolo34dr/deckpilot/blob/main/src/DeckPilot.Windows/UpdateInstaller.cs): `src/DeckPilot.Windows/UpdateInstaller.cs`

### Other components

- **Macropad user**
- **GitHub releases**

## Connections

- Macropad user → DeckPilot interface: configures keys (evidence: `README.md`)
- DeckPilot interface → Settings and profiles: saves settings
- Macropad user → Application picker: searches apps (evidence: `README.md`)
- Macropad user → Action runner: triggers actions (evidence: `README.md`)
- Macropad user → Board connection: connects macropad (evidence: `README.md`)
- Macropad user → Soundboard mixer: mixes audio (evidence: `README.md`)
- Macropad user → Spotify controls: controls playback (evidence: `README.md`)
- Macropad user → Spotify volume: adjusts volume (evidence: `README.md`)
- Macropad user → Deezer controls: controls playback (evidence: `README.md`)
- Macropad user → Deezer volume: adjusts volume (evidence: `README.md`)
- Macropad user → Firmware management: updates firmware
- Macropad user → App updates: approves updates (evidence: `README.md`)
- App updates → Release client: checks and downloads (evidence: `src/DeckPilot.Windows/UpdateService.cs`)
- Release client → GitHub releases: requests releases (evidence: `src/DeckPilot.Core/ReleaseClient.cs`)
- App updates → Update installer: installs update
