How snejdik/helios works
Helios is a macOS menu-bar monitor and diagnostics app with optional, carefully gated fan control. The user opens the menu-bar dashboard or main window, reviews live readings and health explanations, and can drill into performance, battery, energy, network, storage, and longevity views. Fan changes travel through the app’s daemon client to a privileged helper, which applies hardware controls under leases and recovery policies. README statements establish the product workflows; sampled source and the SOURCE INDEX support selected internal links, but many provider and view implementations were not excerpted.
Main entry points: OverviewViewModel.swift Telemetry view model · HeliosWindowCoordinator.swift Main window · DaemonClient.swift Daemon client · V2 Monitoring pages
Components 27
App experience
- Menu-bar dashboard
Sources/HeliosApp/StatusItemController.swift - Main window
Sources/HeliosApp/Windows/HeliosWindowCoordinator.swift - App preferences
Sources/HeliosApp/HeliosPreferences.swift - Monitoring pages
Sources/HeliosApp/V2 - Settings and tools
Sources/HeliosApp/Windows
Monitoring and insights
- Telemetry view model
Sources/HeliosApp/OverviewViewModel.swift - Telemetry providers
Sources/HeliosApp/Telemetry - Telemetry history
Sources/HeliosApp/Telemetry/TelemetryHistory.swift - Health and longevity
Sources/HeliosApp/Telemetry - Network diagnosis
Sources/HeliosApp/Telemetry - Health alerts
Sources/HeliosApp/Telemetry/HealthAlerts.swift - Reading presentation
Sources/HeliosApp/Telemetry/TelemetryFormatting.swift
Fan control
- Fan controls
Sources/HeliosApp/FanControlModel.swift - Cooling rules
Sources/HeliosApp/CoolingRules.swift - Daemon client
Sources/HeliosApp/DaemonClient.swift - Daemon service manager
Sources/HeliosApp/DaemonService.swift
Privileged helper
- Daemon session
Sources/HeliosDaemon/DaemonSession.swift - Fan control coordinator
Sources/HeliosDaemon/FanControlCoordinator.swift - Fan control engine
Sources/HeliosDaemon/FanControlEngine.swift - Fan layer runtime
Sources/HeliosDaemon/FanLayerRuntime.swift - Fan layer engine
Sources/HeliosDaemon/FanLayerEngine.swift
Shared hardware layer
- Fan layer policy
Sources/Shared/FanLayerPolicy.swift - Fan profiles
Sources/Shared/FanLayerProfile.swift - SMC reader
Sources/Shared/SMCClient.swift - Service identity
Sources/Shared/HeliosServiceIdentity.swift - XPC trust
Sources/Shared/XPCTrustRequirement.swift
Other components
- Mac user
Connections 32
- Mac user → Menu-bar dashboard: opens dashboard
- Mac user → Main window: opens details
- Menu-bar dashboard → Telemetry view model: shows readings
Sources/HeliosApp/StatusItemController.swift - Menu-bar dashboard → Main window: opens
Sources/HeliosApp/StatusItemController.swift - Main window → Telemetry view model: uses model
Sources/HeliosApp/Windows/HeliosWindowCoordinator.swift - Main window → App preferences: reads settings
Sources/HeliosApp/Windows/HeliosWindowCoordinator.swift - Main window → Settings and tools: routes settings
Sources/HeliosApp/Windows/HeliosSettings.swift - Telemetry view model → Telemetry providers: samples metrics
Sources/HeliosApp/OverviewViewModel.swift - Telemetry view model → Telemetry history: records snapshots
Sources/HeliosApp/OverviewViewModel.swift - Telemetry view model → Health and longevity: supports assessment
Sources/HeliosApp/OverviewViewModel.swift - Telemetry view model → Health alerts: uses thresholds
Sources/HeliosApp/OverviewViewModel.swift - Monitoring pages → Telemetry view model: presents readings
Sources/HeliosApp/V2/HeliosStoragePage.swift - Monitoring pages → Reading presentation: formats values
Sources/HeliosApp/V2/HeliosStoragePage.swift - Monitoring pages → Network diagnosis: presents diagnosis
Sources/HeliosApp/V2/HeliosStoragePage.swift - Monitoring pages → Health and longevity: presents longevity
Sources/HeliosApp/V2/HeliosStoragePage.swift - Health alerts → Reading presentation: formats notices
Sources/HeliosApp/Telemetry/HealthAlerts.swift - Fan controls → Daemon client: requests control
Sources/HeliosApp/FanControlModel.swift - Cooling rules → Fan controls: configures cooling
- Settings and tools → App preferences: configures
Sources/HeliosApp/Windows/HeliosSettings.swift - Settings and tools → Daemon service manager: manages helper
Sources/HeliosApp/Windows/HeliosSettings.swift - Daemon service manager → Daemon client: connects helper
Sources/HeliosApp/DaemonService.swift - Daemon client → Daemon session: sends XPC requests
Sources/HeliosDaemon/DaemonSession.swift - Daemon client → XPC trust: checks identity
Sources/HeliosApp/DaemonClient.swift - Daemon session → Fan control coordinator: dispatches control
Sources/HeliosDaemon/DaemonSession.swift - Fan control coordinator → Fan control engine: coordinates control
Sources/HeliosDaemon/FanControlCoordinator.swift - Fan control coordinator → Fan layer runtime: uses fan layer
Sources/HeliosDaemon/DaemonSession.swift - Fan layer runtime → Fan layer engine: runs engine
Sources/HeliosDaemon/FanLayerRuntime.swift - Fan layer engine → Fan layer policy: applies policy
Sources/HeliosDaemon/FanLayerEngine.swift - Fan layer engine → Fan profiles: uses profile
Sources/HeliosDaemon/FanLayerEngine.swift - Fan layer runtime → SMC reader: reads hardware
Sources/HeliosDaemon/FanLayerRuntime.swift - Daemon client → Service identity: uses service name
Sources/HeliosApp/DaemonClient.swift - Daemon session → Service identity: uses service name
Sources/HeliosDaemon/DaemonSession.swift