How momochisoundpost/vremind-win works
VRemind is a Windows system-tray stream reminder whose native WinUI frontend uses a Swift core engine through a CLI bridge. The principal workflow starts with tray/app activation, polls watched channels, fetches YouTube or Twitch stream state, projects live/upcoming/offline sections, and delivers toast alerts. Other documented branches include watchlist management, onboarding/settings, portable backups, release checks, celebration detection, and native tray presentation. Edges are limited to relationships shown in excerpts, indexed references, or README statements; unsampled subsystem wiring is omitted where it cannot be established.
Main entry points: StreamMonitorEngine.swift Monitor engine · StreamMonitorCoordinator.cs Monitor coordinator · App.xaml.cs App lifecycle · SettingsViewModel.cs Settings workflow
Components 26
Windows frontend
- Tray icon
VRemindWin/src/VRemindWin/Services/TrayIconService.cs - App lifecycle
VRemindWin/src/VRemindWin/App.xaml.cs - Watchlist popover
VRemindWin/src/VRemindWin/Views/PopoverView.xaml.cs - Popover state
VRemindWin/src/VRemindWin.Core/ViewModels/PopoverViewModel.cs - Settings workflow
VRemindWin/src/VRemindWin.Core/ViewModels/SettingsViewModel.cs - Onboarding
VRemindWin/src/VRemindWin.Core/ViewModels/OnboardingViewModel.cs - Monitor coordinator
VRemindWin/src/VRemindWin.Core/Services/StreamMonitorCoordinator.cs - Toast delivery
VRemindWin/src/VRemindWin.Core/Services/WindowsToastService.cs - Single instance
VRemindWin/src/VRemindWin.Core/Services/SingleInstanceService.cs - Channel ordering
VRemindWin/src/VRemindWin.Core/Services/ChannelOrderPolicy.cs
CLI interface
- Core CLI bridge
VRemindWin/src/VRemindWin.Core/Services/CoreCliBridge.cs - CLI commands
VRemindCoreCLI/Sources/VRemindCoreCLIKit/CliRunner.swift - CLI entrypoint
VRemindCoreCLI/Sources/VRemindCoreCLI/main.swift
Stream engine
- Watched channels
VRemindCore/Sources/VRemindCore/Models/WatchedChannel.swift - App settings
VRemindCore/Sources/VRemindCore/Models/AppSettings.swift - Stream states
VRemindCore/Sources/VRemindCore/Models/StreamStatus.swift - Monitor engine
VRemindCore/Sources/VRemindCore/Services/StreamMonitorEngine.swift - YouTube provider
VRemindCore/Sources/VRemindCore/Providers/YouTubeStreamProvider.swift - Twitch provider
VRemindCore/Sources/VRemindCore/Providers/TwitchStreamProvider.swift
Settings and extensions
- Celebration detection
VRemindCore/Sources/VRemindCore/Services/CelebrationDetector.swift - Portable backups
VRemindCoreCLI/Sources/VRemindCoreCLIKit/BackupPayload.swift - Release checks
VRemindCore/Sources/VRemindCore/Models/GitHubRelease.swift
Other components
- Windows user
- YouTube public pages
- Twitch public endpoint
- GitHub releases
Connections 27
- Windows user → Tray icon: activates
- Tray icon → App lifecycle: requests actions
VRemindWin/src/VRemindWin/Services/TrayIconService.cs - App lifecycle → Monitor coordinator: starts polling
VRemindWin/src/VRemindWin/App.xaml.cs - App lifecycle → Popover state: creates
VRemindWin/src/VRemindWin/App.xaml.cs - App lifecycle → Settings workflow: creates
VRemindWin/src/VRemindWin/App.xaml.cs - Watchlist popover → Popover state: uses state
VRemindWin/src/VRemindWin/Views/PopoverView.xaml.cs - Popover state → Monitor coordinator: reads state
VRemindWin/src/VRemindWin.Core/ViewModels/PopoverViewModel.cs - Settings workflow → Monitor coordinator: changes settings
VRemindWin/src/VRemindWin.Core/ViewModels/SettingsViewModel.cs - Onboarding → Monitor coordinator: completes setup
VRemindWin/src/VRemindWin.Core/ViewModels/OnboardingViewModel.cs - Monitor coordinator → Core CLI bridge: calls commands
VRemindWin/src/VRemindWin.Core/Services/StreamMonitorCoordinator.cs - Core CLI bridge → CLI entrypoint: invokes CLI
- CLI entrypoint → CLI commands: dispatches commands
VRemindCoreCLI/Sources/VRemindCoreCLI/main.swift - CLI commands → Monitor engine: refreshes streams
VRemindCoreCLI/Sources/VRemindCoreCLIKit/CliRunner.swift - Monitor engine → YouTube provider: fetches channels
- Monitor engine → Twitch provider: fetches channels
- YouTube provider → YouTube public pages: reads public pages
- Twitch provider → Twitch public endpoint: queries endpoint
- Monitor engine → Celebration detection: detects events
VRemindCore/Sources/VRemindCore/Services/StreamMonitorEngine.swift - Monitor coordinator → Toast delivery: dispatches alerts
VRemindWin/src/VRemindWin.Core/Services/StreamMonitorCoordinator.cs - Windows user → Portable backups: exports or restores
- Settings workflow → Release checks: checks updates
VRemindWin/src/VRemindWin.Core/ViewModels/SettingsViewModel.cs - Release checks → GitHub releases: checks releases
- App lifecycle → Single instance: enforces instance
VRemindWin/src/VRemindWin/App.xaml.cs - Watchlist popover → Channel ordering: reorders channels
VRemindWin/src/VRemindWin/Views/PopoverView.xaml.cs - Monitor engine → Watched channels: uses channel data
VRemindCore/Sources/VRemindCore/Services/StreamMonitorEngine.swift - Monitor engine → App settings: reads preferences
VRemindCore/Sources/VRemindCore/Services/StreamMonitorEngine.swift - Monitor engine → Stream states: updates statuses
VRemindCore/Sources/VRemindCore/Services/StreamMonitorEngine.swift