How ggfto/droiddeck works
DroidDeck is a Windows tray app and local server that turns an Android phone into a configurable Stream Deck. The main workflow is phone or PC configurator → authenticated local API → profile/button lookup → action execution → Windows or integration result, with live state sent back over SignalR. Profiles, layout, automatic profile switching, backups, timers, monitoring, mixer/media controls, and integrations are distinct product capabilities. The README documents the client contract; source excerpts show selected backend calls. Flutter runtime files are not present in the supplied tree, so the phone is represented as an external actor.
Main entry points: DeckHub.cs Live updates · StreamDeckController.cs Deck API · ActionExecutorService.cs Action executor · Program.cs DroidDeck server
Components 25
Clients and transport
- Android phone
- PC configurator
- DroidDeck server
DroidDeck/Program.cs - API key auth
DroidDeck/Auth/ApiKeyAuthenticationHandler.cs
Deck and actions
- Deck API
DroidDeck/Controllers/StreamDeckController.cs - Profiles and layout
DroidDeck/Services/StreamDeckConfigService.cs - Action executor
DroidDeck/Services/ActionExecutorService.cs - Action policy
DroidDeck/Services/ActionPolicy.cs - Action providers
DroidDeck/Actions/Providers - Profile backups
DroidDeck/Services/BackupService.cs
Windows controls
- Windows actions
DroidDeck/Actions/Providers/WindowsProvider.cs - Audio mixer
DroidDeck/Mixer/MixerMaster.cs - Media control
DroidDeck/Services/MediaControlService.cs - Windows PC
Live state and profiles
- Focus switching
DroidDeck/Services/ForegroundWatcher.cs - Button toggles
DroidDeck/Services/ButtonToggleService.cs - Live updates
DroidDeck/Hubs/DeckHub.cs - Info and monitors
DroidDeck/Services/InfoService.cs - Timers
DroidDeck/Services/TimerService.cs
Integrations
- Discord controls
DroidDeck/Integrations/Discord/DiscordRpcService.cs - OBS controls
DroidDeck/Integrations/Obs/ObsService.cs - Soundboard
DroidDeck/Integrations/Soundboard/SoundboardService.cs - Tuya smart home
DroidDeck/Integrations/Tuya/TuyaService.cs - Account integrations
DroidDeck/Integrations/AccountIntegration.cs - External services
Connections 23
- Android phone → DroidDeck server: REST and SignalR
README.md - PC configurator → DroidDeck server: configures via HTTP
README.md - DroidDeck server → API key auth: configures authentication
DroidDeck/Program.cs - Deck API → Profiles and layout: reads and saves
DroidDeck/Controllers/StreamDeckController.cs - Deck API → Action executor: executes actions
DroidDeck/Controllers/StreamDeckController.cs - Deck API → Live updates: broadcasts updates
DroidDeck/Controllers/StreamDeckController.cs - Action executor → Action policy: checks policy
DroidDeck/Services/ActionExecutorService.cs - Action executor → Action providers: dispatches actions
DroidDeck/Services/ActionExecutorService.cs - Action providers → Windows actions: includes Windows actions
- Windows actions → Windows PC: controls Windows
DroidDeck/Actions/Providers/WindowsProvider.cs - Audio mixer → Windows PC: controls audio devices
DroidDeck/Mixer/MixerMaster.cs - Media control → Windows PC: controls media sessions
DroidDeck/Services/MediaControlService.cs - Profiles and layout → Profile backups: backs up profiles
DroidDeck/Services/BackupService.cs - Focus switching → Profiles and layout: reads profiles
DroidDeck/Services/ForegroundWatcher.cs - Button toggles → Live updates: broadcasts toggle state
DroidDeck/Services/ButtonToggleService.cs - Info and monitors → Live updates: broadcasts values
DroidDeck/Services/InfoService.cs - Timers → Live updates: broadcasts timer state
DroidDeck/Services/TimerService.cs - Live updates → Android phone: sends live state
README.md - Discord controls → External services: connects Discord
README.md - OBS controls → External services: connects OBS
README.md - Soundboard → External services: fetches sounds
README.md - Tuya smart home → External services: controls smart devices
DroidDeck/Integrations/Tuya/TuyaService.cs - Account integrations → External services: supports connected accounts