# momochisoundpost/vremind architecture

> Architecture diagram of the GitHub repository momochisoundpost/vremind, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/momochisoundpost/vremind
- Repository: https://github.com/momochisoundpost/vremind

## Overview

VRemind is a native macOS menu-bar watchlist for YouTube and Twitch creators. Users add creators, the app polls for live and scheduled streams, then presents status in the menu bar, sends configurable notifications, and persists snapshots for desktop widgets that link to streams. AppDelegate is the main application coordinator; the polling service owns status refresh and downstream updates. README documents additional capabilities such as celebration mode, preferences, onboarding, and software updates; unsampled implementation details are represented conservatively.

Main entry points: [`Sources/VRemindKit/Views/MenuBar/MenuBarStatusView.swift`](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Views/MenuBar/MenuBarStatusView.swift) (Watchlist popover), [`Sources/VRemindKit/Services/StreamMonitorService.swift`](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Services/StreamMonitorService.swift) (Polling and status), [`Sources/VRemindKit/Views/Preferences/PreferencesView.swift`](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Views/Preferences/PreferencesView.swift) (Preferences window), [`Sources/VRemindKit/Services/ChannelStore.swift`](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Services/ChannelStore.swift) (Watchlist store)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and Menu Bar"]
  node_appdelegate["App coordinator<br/>[AppDelegate.swift]"]
  node_menubar["Watchlist popover"]
  node_addchannel["Add creator"]
  node_channelrow["Status rows"]
  node_linkopener["Stream links<br/>[LinkOpener.swift]"]
  node_confetti["Celebration effects"]
end

subgraph group_monitor["Stream Monitoring"]
  node_monitorservice["Polling and status"]
  node_power["Power and sleep"]
  node_notifications["Stream alerts"]
end

subgraph group_state["Preferences and State"]
  node_channelstore[("Watchlist store<br/>[ChannelStore.swift]")]
  node_preferences[("Preferences store")]
  node_snapshotstore[("Widget snapshot store")]
end

subgraph group_widget["Desktop Widgets"]
  node_snapshot["Widget snapshot model"]
  node_timeline["Widget timeline"]
  node_widgetentry["Timeline entry"]
  node_widgetviews["Widget layouts"]
end

subgraph group_support["Onboarding and Updates"]
  node_preferencesui["Preferences window"]
  node_loginhelper["Login integration"]
  node_onboarding["First-run onboarding"]
  node_updater["Release checker"]
  node_updatedialog["Update dialog"]
  node_markdown["Markdown renderer<br/>[MarkdownView.swift]"]
end

node_user(("Mac user"))
node_notificationos["macOS notifications"]
node_widgetkit["WidgetKit"]
node_browser["Default browser"]
node_github["GitHub Releases"]

node_user -->|"opens"| node_menubar
node_menubar -->|"renders"| node_addchannel
node_menubar -->|"renders"| node_channelrow
node_menubar -->|"refreshes"| node_monitorservice
node_addchannel -->|"adds creators"| node_channelstore
node_appdelegate -->|"hosts"| node_menubar
node_appdelegate -->|"coordinates"| node_monitorservice
node_appdelegate -->|"creates"| node_channelstore
node_appdelegate -->|"creates"| node_preferences
node_monitorservice -->|"reads and updates"| node_channelstore
node_monitorservice -->|"dispatches alerts"| node_notifications
node_notifications -->|"submits requests"| node_notificationos
node_monitorservice -->|"writes snapshot"| node_snapshotstore
node_monitorservice -->|"responds to sleep"| node_power
node_preferencesui -->|"updates settings"| node_preferences
node_preferencesui -->|"manages watchlist"| node_channelstore
node_preferencesui -->|"configures alerts"| node_notifications
node_preferencesui -->|"manages login"| node_loginhelper
node_timeline -.->|"loads snapshot"| node_snapshotstore
node_timeline -->|"builds entry"| node_widgetentry
node_snapshotstore -->|"persists"| node_snapshot
node_widgetkit -->|"requests timeline"| node_timeline
node_widgetkit -->|"presents widgets"| node_widgetviews
node_widgetviews -->|"renders"| node_widgetentry
node_widgetviews -->|"reads snapshot"| node_snapshotstore
node_user -->|"starts setup"| node_onboarding
node_onboarding -->|"adds starter channel"| node_channelstore
node_updater -->|"checks consent"| node_preferences
node_updater -->|"fetches releases"| node_github
node_preferencesui -->|"checks updates"| node_updater
node_updater -->|"offers release"| node_updatedialog
node_updatedialog -->|"renders notes"| node_markdown
node_channelrow -->|"opens stream"| node_linkopener
node_widgetviews -.->|"deep links"| node_linkopener
node_linkopener -->|"opens URL"| node_browser
node_menubar -->|"shows milestones"| node_confetti

click node_appdelegate "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemind/AppDelegate.swift"
click node_menubar "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Views/MenuBar/MenuBarStatusView.swift"
click node_addchannel "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Views/MenuBar/AddChannelBarView.swift"
click node_channelrow "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Views/MenuBar/ChannelRowView.swift"
click node_monitorservice "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Services/StreamMonitorService.swift"
click node_channelstore "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Services/ChannelStore.swift"
click node_power "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Services/PowerStateMonitor.swift"
click node_notifications "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Services/NotificationService.swift"
click node_preferences "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Services/PreferencesStore.swift"
click node_snapshotstore "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Services/WidgetSnapshotStore.swift"
click node_snapshot "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Models/WidgetSnapshot.swift"
click node_timeline "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Services/VRemindTimelineProvider.swift"
click node_widgetentry "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Models/VRemindWidgetEntry.swift"
click node_widgetviews "https://github.com/momochisoundpost/vremind/tree/main/Sources/VRemindKit/Views/Widget"
click node_linkopener "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Utilities/LinkOpener.swift"
click node_preferencesui "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Views/Preferences/PreferencesView.swift"
click node_loginhelper "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Utilities/LaunchAtLoginHelper.swift"
click node_onboarding "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Views/Onboarding/OnboardingView.swift"
click node_updater "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Services/UpdateService.swift"
click node_updatedialog "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Views/Updates/UpdateAvailableView.swift"
click node_markdown "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Views/Components/MarkdownView.swift"
click node_confetti "https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Views/Components/ConfettiOverlayView.swift"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_appdelegate,node_menubar,node_addchannel,node_channelrow,node_linkopener,node_confetti,node_user,node_browser toneBlue
class node_monitorservice,node_power,node_notifications toneAmber
class node_channelstore,node_preferences,node_snapshotstore toneMint
class node_snapshot,node_timeline,node_widgetentry,node_widgetviews toneRose
class node_preferencesui,node_loginhelper,node_onboarding,node_updater,node_updatedialog,node_markdown,node_notificationos,node_widgetkit,node_github toneIndigo
```

## Components

### App and Menu Bar

- [App coordinator](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemind/AppDelegate.swift): `Sources/VRemind/AppDelegate.swift`
- [Watchlist popover](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Views/MenuBar/MenuBarStatusView.swift): `Sources/VRemindKit/Views/MenuBar/MenuBarStatusView.swift`
- [Add creator](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Views/MenuBar/AddChannelBarView.swift): `Sources/VRemindKit/Views/MenuBar/AddChannelBarView.swift`
- [Status rows](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Views/MenuBar/ChannelRowView.swift): `Sources/VRemindKit/Views/MenuBar/ChannelRowView.swift`
- [Stream links](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Utilities/LinkOpener.swift): `Sources/VRemindKit/Utilities/LinkOpener.swift`
- [Celebration effects](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Views/Components/ConfettiOverlayView.swift): `Sources/VRemindKit/Views/Components/ConfettiOverlayView.swift`

### Stream Monitoring

- [Polling and status](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Services/StreamMonitorService.swift): `Sources/VRemindKit/Services/StreamMonitorService.swift`
- [Power and sleep](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Services/PowerStateMonitor.swift): `Sources/VRemindKit/Services/PowerStateMonitor.swift`
- [Stream alerts](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Services/NotificationService.swift): `Sources/VRemindKit/Services/NotificationService.swift`

### Preferences and State

- [Watchlist store](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Services/ChannelStore.swift): `Sources/VRemindKit/Services/ChannelStore.swift`
- [Preferences store](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Services/PreferencesStore.swift): `Sources/VRemindKit/Services/PreferencesStore.swift`
- [Widget snapshot store](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Services/WidgetSnapshotStore.swift): `Sources/VRemindKit/Services/WidgetSnapshotStore.swift`

### Desktop Widgets

- [Widget snapshot model](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Models/WidgetSnapshot.swift): `Sources/VRemindKit/Models/WidgetSnapshot.swift`
- [Widget timeline](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Services/VRemindTimelineProvider.swift): `Sources/VRemindKit/Services/VRemindTimelineProvider.swift`
- [Timeline entry](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Models/VRemindWidgetEntry.swift): `Sources/VRemindKit/Models/VRemindWidgetEntry.swift`
- [Widget layouts](https://github.com/momochisoundpost/vremind/tree/main/Sources/VRemindKit/Views/Widget): `Sources/VRemindKit/Views/Widget`

### Onboarding and Updates

- [Preferences window](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Views/Preferences/PreferencesView.swift): `Sources/VRemindKit/Views/Preferences/PreferencesView.swift`
- [Login integration](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Utilities/LaunchAtLoginHelper.swift): `Sources/VRemindKit/Utilities/LaunchAtLoginHelper.swift`
- [First-run onboarding](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Views/Onboarding/OnboardingView.swift): `Sources/VRemindKit/Views/Onboarding/OnboardingView.swift`
- [Release checker](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Services/UpdateService.swift): `Sources/VRemindKit/Services/UpdateService.swift`
- [Update dialog](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Views/Updates/UpdateAvailableView.swift): `Sources/VRemindKit/Views/Updates/UpdateAvailableView.swift`
- [Markdown renderer](https://github.com/momochisoundpost/vremind/blob/main/Sources/VRemindKit/Views/Components/MarkdownView.swift): `Sources/VRemindKit/Views/Components/MarkdownView.swift`

### Other components

- **Mac user**
- **macOS notifications**
- **WidgetKit**
- **Default browser**
- **GitHub Releases**

## Connections

- Mac user → Watchlist popover: opens
- Watchlist popover → Add creator: renders (evidence: `Sources/VRemindKit/Views/MenuBar/MenuBarStatusView.swift`)
- Watchlist popover → Status rows: renders (evidence: `Sources/VRemindKit/Views/MenuBar/MenuBarStatusView.swift`)
- Watchlist popover → Polling and status: refreshes (evidence: `Sources/VRemindKit/Views/MenuBar/MenuBarStatusView.swift`)
- Add creator → Watchlist store: adds creators (evidence: `Sources/VRemindKit/Views/MenuBar/MenuBarStatusView.swift`)
- App coordinator → Watchlist popover: hosts (evidence: `Sources/VRemind/AppDelegate.swift`)
- App coordinator → Polling and status: coordinates (evidence: `Sources/VRemind/AppDelegate.swift`)
- App coordinator → Watchlist store: creates (evidence: `Sources/VRemind/AppDelegate.swift`)
- App coordinator → Preferences store: creates (evidence: `Sources/VRemind/AppDelegate.swift`)
- Polling and status → Watchlist store: reads and updates (evidence: `Sources/VRemindKit/Services/StreamMonitorService.swift`)
- Polling and status → Stream alerts: dispatches alerts (evidence: `Sources/VRemindKit/Services/StreamMonitorService.swift`)
- Stream alerts → macOS notifications: submits requests (evidence: `Sources/VRemindKit/Services/NotificationService.swift`)
- Polling and status → Widget snapshot store: writes snapshot (evidence: `Sources/VRemindKit/Services/StreamMonitorService.swift`)
- Polling and status → Power and sleep: responds to sleep (evidence: `Sources/VRemindKit/Services/StreamMonitorService.swift`)
- Preferences window → Preferences store: updates settings (evidence: `Sources/VRemindKit/Views/Preferences/PreferencesView.swift`)
- Preferences window → Watchlist store: manages watchlist (evidence: `Sources/VRemindKit/Views/Preferences/PreferencesView.swift`)
- Preferences window → Stream alerts: configures alerts (evidence: `Sources/VRemindKit/Views/Preferences/PreferencesView.swift`)
- Preferences window → Login integration: manages login (evidence: `Sources/VRemindKit/Views/Preferences/PreferencesView.swift`)
- Widget timeline → Widget snapshot store: loads snapshot
- Widget timeline → Timeline entry: builds entry
- Widget snapshot store → Widget snapshot model: persists (evidence: `Sources/VRemindKit/Services/WidgetSnapshotStore.swift`)
- WidgetKit → Widget timeline: requests timeline
- WidgetKit → Widget layouts: presents widgets
- Widget layouts → Timeline entry: renders (evidence: `Sources/VRemindKit/Views/Widget/LargeDashboardWidgetView.swift`)
- Widget layouts → Widget snapshot store: reads snapshot (evidence: `Sources/VRemindKit/Views/Widget/LargeDashboardWidgetView.swift`)
- Mac user → First-run onboarding: starts setup
- First-run onboarding → Watchlist store: adds starter channel (evidence: `Sources/VRemindKit/Views/Onboarding/OnboardingView.swift`)
- Release checker → Preferences store: checks consent (evidence: `Sources/VRemindKit/Services/UpdateService.swift`)
- Release checker → GitHub Releases: fetches releases (evidence: `Sources/VRemindKit/Services/UpdateService.swift`)
- Preferences window → Release checker: checks updates (evidence: `Sources/VRemindKit/Views/Preferences/PreferencesView.swift`)
- Release checker → Update dialog: offers release
- Update dialog → Markdown renderer: renders notes (evidence: `Sources/VRemindKit/Views/Updates/UpdateAvailableView.swift`)
- Status rows → Stream links: opens stream (evidence: `Sources/VRemindKit/Views/MenuBar/ChannelRowView.swift`)
- Widget layouts → Stream links: deep links
- Stream links → Default browser: opens URL (evidence: `Sources/VRemindKit/Utilities/LinkOpener.swift`)
- Watchlist popover → Celebration effects: shows milestones (evidence: `Sources/VRemindKit/Views/MenuBar/MenuBarStatusView.swift`)
