How vorssaintapp/vorssaint-utils works
Purpose and Runtime
Vorssaint is a local-first macOS 14+ Apple Silicon utility suite centered on one menu-bar application. It combines system monitoring, window/input automation, capture/media workflows, file utilities, and app management; features can be installed/uninstalled so inactive capabilities do not load. The primary Swift executable enters at Sources/Vorssaint/main.swift, with app lifecycle and runtime feature activation in Sources/Vorssaint/App/AppDelegate.swift and Sources/Vorssaint/App/FeatureRuntime.swift.
Application Shell and Presentation
The AppKit/SwiftUI shell owns the status-item lifecycle, menu-bar rendering, panel visibility, appearance, onboarding, and settings navigation. MenuBarRenderer/StatusItemController connect runtime state and services to the persistent user entry point; UI is organized by feature area rather than a separate frontend backend.
• Sources/Vorssaint/App/MenuBarRenderer.swift
• Sources/Vorssaint/App/StatusItemController.swift
• Sources/Vorssaint/UI/MenuPanel/MenuPanelView.swift
Feature Catalog, Persistence, and Permissions
A central feature catalog and presets determine what is installed, visible, and started. Defaults/backups preserve settings when a feature is removed and later reinstalled. Permissions are modeled centrally so onboarding and feature activation can request only required macOS access.
• Sources/Vorssaint/Core/FeatureCatalog.swift
• Sources/Vorssaint/Core/FeaturePresets.swift
• Sources/Vorssaint/Core/Defaults.swift
• Sources/Vorssaint/Core/Permissions.swift
Control flow is broadly: launch → load persisted feature state → construct enabled services → render menu/panel/settings → react to shortcuts, OS events, timers, and user actions. Feature services must tolerate missing permissions and disabled peers.
System Integration and Automation Boundary
Services are the operational layer over macOS APIs, Accessibility, event taps, WindowServer behavior, pasteboard, shell processes, and system settings. Window/switcher, mouse/keyboard, Finder, and quick-tool features are separate service families but share permission and shortcut infrastructure. This is the main privilege-sensitive boundary: Accessibility, Screen Recording, Automation, Full Disk Access, microphone/audio capture, notifications, and optional administrator access.
• Sources/Vorssaint/Services/Switcher/AppSwitcher.swift
• Sources/Vorssaint/Services/WindowLayout/WindowLayoutService.swift
• Sources/Vorssaint/Services/ShortcutRecordingTap.swift
• Sources/Vorssaint/Services/BoundedProcessRunner.swift
Monitoring, Audio, and Hardware Control
Sampling and control services collect CPU/memory/disk/network/power/temperature data and drive menu-panel metrics, alerts, display controls, and audio routing/mixing. Hardware-facing fan control crosses into a dedicated XPC helper, isolating privileged fan operations from the app process.
• Sources/Vorssaint/Services/SystemMonitor/SystemMonitor.swift
• Sources/Vorssaint/Services/Metrics/NetworkSampler.swift
• Sources/Vorssaint/Services/Audio/AppVolumeMixer.swift
• Sources/Vorssaint/Services/FanControl/FanControlXPC.swift
• Sources/FanControlHelper/main.swift
Native interoperability modules expose HID event-system and VM-statistics interfaces to Swift:
• Sources/HIDEventSystem/include/HIDEventSystem.h
• Sources/VMStatisticsCompat/include/VMStatisticsCompat.h
Capture, Recording, and Local Content Workflows
Screen capture is a shared selector/capture pipeline feeding screenshots, OCR, color sampling, and recordings. Screenshot services manage selection, rendering, editing, pinning, local storage, and optional sharing; recorder services separately manage capture, timeline/edit documents, composition, and export. Clipboard, shelf, snippets, scratchpad, media, cleaner, and uninstaller similarly operate on local user data/files.
• Sources/Vorssaint/Services/QuickTools/ScreenCaptureService.swift
• Sources/Vorssaint/Services/QuickTools/ScreenshotCaptureEngine.swift
• Sources/Vorssaint/Services/Recorder/ScreenRecorderService.swift
• Sources/Vorssaint/Services/Recorder/RecorderExporter.swift
External Services, Distribution, and Updates
The product has no account, telemetry, or required cloud backend. Network use is user-visible and feature-specific: app/update catalog checks, speed tests, Homebrew actions, explicit feedback, and temporary capture-sharing links. Update services coordinate app updates, while Homebrew is mediated through local process execution. Swift Package Manager defines build targets; release scripts build, sign, notarize, package, and publish macOS artifacts.
• Package.swift
• Sources/Vorssaint/Services/AppUpdates/AppUpdatesService.swift
• Sources/Vorssaint/Services/Homebrew/HomebrewManager.swift
• Tools/notarize.sh
• .github/workflows/release.yml
Main entry points: FeatureRuntime.swift Feature runtime · ScreenCaptureService.swift Screen capture pipeline · Permissions.swift Permissions · main.swift App executable
Components 20
Application shell
- App executable
Sources/Vorssaint/main.swift - App lifecycle
Sources/Vorssaint/App/AppDelegate.swift - Menu-bar UI
Sources/Vorssaint/App/MenuBarRenderer.swift - Menu panel
Sources/Vorssaint/UI/MenuPanel/MenuPanelView.swift
Feature runtime
- Feature runtime · Constructs only enabled feature services.
Sources/Vorssaint/App/FeatureRuntime.swift - Feature catalog
Sources/Vorssaint/Core/FeatureCatalog.swift - Feature state · Preserves settings across feature removal and reinstall.
Sources/Vorssaint/Core/Defaults.swift - Permissions
Sources/Vorssaint/Core/Permissions.swift
macOS services
Permission-sensitive operational boundary.
- Automation services · Uses Accessibility, event taps, WindowServer, pasteboard, and shell processes.
Sources/Vorssaint/Services/WindowLayout/WindowLayoutService.swift - Local process runner
Sources/Vorssaint/Services/BoundedProcessRunner.swift - System monitoring
Sources/Vorssaint/Services/SystemMonitor/SystemMonitor.swift - Audio mixing
Sources/Vorssaint/Services/Audio/AppVolumeMixer.swift - Fan-control client · Isolates privileged fan operations from the app process.
Sources/Vorssaint/Services/FanControl/FanControlXPC.swift - Fan-control helper
Sources/FanControlHelper/main.swift - Updates and Homebrew · Checks updates and mediates Homebrew through local processes.
Sources/Vorssaint/Services/AppUpdates/AppUpdatesService.swift
Local content workflows
- Screen capture pipeline · Shared input for screenshots, OCR, color sampling, and recording.
Sources/Vorssaint/Services/QuickTools/ScreenCaptureService.swift - Screenshot workflow
Sources/Vorssaint/Services/QuickTools/ScreenshotCaptureEngine.swift - Screen recorder
Sources/Vorssaint/Services/Recorder/ScreenRecorderService.swift
Build and delivery
- Swift package
Package.swift - Release pipeline
.github/workflows/release.yml
Connections 21
- App executable → App lifecycle: starts
- App lifecycle → Feature runtime: activates
- Feature runtime → Feature catalog: reads enabled features
- Feature runtime → Feature state: loads state
- Feature runtime → Permissions: checks access
- Feature runtime → Menu-bar UI: provides active services
- Menu-bar UI → Menu panel: presents
- Feature runtime → Automation services: starts when enabled
- Feature runtime → System monitoring: starts when enabled
- Feature runtime → Audio mixing: starts when enabled
- Feature runtime → Fan-control client: starts when enabled
- Fan-control client → Fan-control helper: XPC requests
- Feature runtime → Screen capture pipeline: starts when enabled
- Screen capture pipeline → Screenshot workflow: feeds
- Screen capture pipeline → Screen recorder: feeds
- Feature runtime → Updates and Homebrew: starts when enabled
- Updates and Homebrew → Local process runner: runs Homebrew
- Automation services → Permissions: requires macOS access
- Screen capture pipeline → Permissions: requires screen recording
- Swift package → App executable: builds target
- Release pipeline → Swift package: builds and packages