How eamre/spider-desk works
SpiderDesk is a Windows desktop companion centered on a continuously updated spider-and-web simulation, with a tray flyout for controls, Pomodoro sessions, reminders, and preferences. The main runtime path is application startup → overlay frame loop → simulation state → WPF rendering; feature controllers connect user actions to simulation messages, notifications, and persisted data. README descriptions establish several product behaviors, while some implementation details are unsampled, so those relationships are documented at subsystem level rather than inferred from names.
Main entry points: SimulationEngine.cs Simulation engine · SimulationCanvas.cs Simulation canvas · App.xaml.cs App startup · OverlaySessionController.cs Overlay frame loop
Components 25
Desktop runtime
- App startup
App.xaml.cs - Overlay frame loop
Infrastructure/Sessions/OverlaySessionController.cs - Simulation canvas
Rendering/SimulationCanvas.cs - Spider and bug drawing
Rendering/SimulationCanvas.cs - Web rendering
Rendering/Web/WebGeometryBuilder.cs
Simulation core
- Simulation engine
Domain/SimulationEngine.cs - World state
Domain/WorldContext.cs
Spider and web
- Spider behavior
Domain/Spider/SpiderEntity.cs - Leg gait
Domain/Spider/SpiderGaitController.cs - Web simulation
Domain/Web/SpiderWebEntity.cs - Bug simulation
Domain/Insects/BugEntity.cs - Web water physics
Domain/Web/WebDropletController.cs - Silk messages
Domain/SilkText/SilkWriting.cs
User features
- Settings flyout
Infrastructure/Flyout/SettingsWindow.xaml.cs - Settings controller
Infrastructure/Sessions/SettingsSessionController.cs - Pomodoro session
Infrastructure/Sessions/PomodoroSessionController.cs - Pomodoro timer
Domain/Pomodoro/PomodoroTimer.cs - Reminder session
Infrastructure/Sessions/ReminderSessionController.cs
Windows services
- System tray
Infrastructure/Tray/TrayMenuService.cs - Settings persistence
Core/Settings/SettingsStore.cs - Settings JSON
Infrastructure/Storage/JsonSettingsRepository.cs - Reminder repository
Infrastructure/Storage/JsonReminderRepository.cs - Startup registration
Infrastructure/Platform/StartupRegistrationService.cs
Other components
- Desktop user
- Windows desktop
Connections 27
- Desktop user → System tray: opens controls
- System tray → Settings flyout: opens flyout
Infrastructure/Tray/TrayMenuService.cs - App startup → Simulation engine: creates
App.xaml.cs - App startup → Simulation canvas: creates
App.xaml.cs - App startup → Overlay frame loop: starts session
App.xaml.cs - Overlay frame loop → Simulation engine: steps simulation
Infrastructure/Sessions/OverlaySessionController.cs - Overlay frame loop → Simulation canvas: refreshes layers
Infrastructure/Sessions/OverlaySessionController.cs - Simulation engine → World state: updates state
Domain/SimulationEngine.cs - Simulation engine → Spider behavior: updates behavior
Domain/SimulationEngine.cs - Spider behavior → Leg gait: uses gait
Domain/Spider/SpiderEntity.cs - Simulation engine → Bug simulation: updates bugs
Domain/SimulationEngine.cs - Simulation engine → Web simulation: updates webs
Domain/SimulationEngine.cs - Web simulation → Web water physics: updates droplets
Domain/Web/SpiderWebEntity.cs - Simulation canvas → Web rendering: draws webs
Rendering/Web/WebGeometryBuilder.cs - Simulation canvas → Spider and bug drawing: renders actors
Rendering/SimulationCanvas.cs - Settings flyout → Settings controller: raises settings
- Settings controller → Simulation engine: applies preferences
Infrastructure/Sessions/SettingsSessionController.cs - Settings controller → Settings persistence: saves changes
Infrastructure/Sessions/SettingsSessionController.cs - Settings persistence → Settings JSON: loads and saves
Core/Settings/SettingsStore.cs - Pomodoro session → Pomodoro timer: ticks timer
Infrastructure/Sessions/PomodoroSessionController.cs - Pomodoro session → Simulation engine: requests silk text
Infrastructure/Sessions/PomodoroSessionController.cs - Simulation engine → Silk messages: stores writing
- Reminder session → Reminder repository: loads and saves
Infrastructure/Sessions/ReminderSessionController.cs - Reminder session → Simulation engine: requests note
Infrastructure/Sessions/ReminderSessionController.cs - Simulation canvas → Windows desktop: shows overlay
- App startup → Startup registration: configures startup
App.xaml.cs - Startup registration → Windows desktop: registers sign-in