# matanganon/standup architecture

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

- Interactive diagram: https://gitdiagram.com/matanganon/standup
- Repository: https://github.com/matanganon/standup

## Overview

StandUp is a native macOS menu-bar break reminder. The principal workflow samples idle time and audio activity, advances an active-work/break state machine, then presents an overlay or quiet meeting nudge; users can also control the timer and settings from the menu bar. The app model is the composition root, while StandUpCore owns timing and meeting decisions. The README documents capabilities beyond the excerpts; those are represented where paths are supported. Arrows are limited to excerpted or indexed references and README statements.

Main entry points: [`StandUp/StandUp/AppModel.swift`](https://github.com/matanganon/standup/blob/main/StandUp/StandUp/AppModel.swift) (App Model), [`StandUpCore/Sources/StandUpCore/BreakCoordinator.swift`](https://github.com/matanganon/standup/blob/main/StandUpCore/Sources/StandUpCore/BreakCoordinator.swift) (Break Coordinator), [`StandUp/StandUp/StandUpApp.swift`](https://github.com/matanganon/standup/blob/main/StandUp/StandUp/StandUpApp.swift) (App Scenes), [`StandUp/StandUp/AppKit/BreakReminderWindowController.swift`](https://github.com/matanganon/standup/blob/main/StandUp/StandUp/AppKit/BreakReminderWindowController.swift) (Break Overlay)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Menu Bar UI"]
  node_app["App Scenes<br/>[StandUpApp.swift]"]
  node_menu["Menu Panel"]
  node_label["Countdown Label"]
  node_settings["Settings<br/>[SettingsView.swift]"]
end

subgraph group_orchestration["App Orchestration"]
  node_model["App Model<br/>[AppModel.swift]"]
  node_store[("Local Persistence")]
  node_login["Login Service"]
end

subgraph group_sensing["Activity Sensing"]
  node_activity["Idle Monitor"]
  node_audio["Audio Detector"]
  node_lifecycle["Workspace Monitor"]
end

subgraph group_core["Reminder Domain"]
  node_coordinator["Break Coordinator"]
  node_settingsdata["App Settings<br/>[AppSettings.swift]"]
  node_stats["Daily Stats<br/>[DailyStats.swift]"]
  node_meetingreducer["Meeting Reducer"]
  node_meetingstate["Meeting State<br/>[MeetingState.swift]"]
end

subgraph group_presentation["Reminder Surfaces"]
  node_presenter["Reminder Presenter"]
  node_breakwindow["Break Overlay"]
  node_meetingwindow["Meeting Nudge"]
  node_floating["Floating Panel"]
  node_placement["Screen Placement"]
  node_breakview["Break View"]
  node_meetingview["Meeting View"]
end

node_user(("Mac User"))

node_user -->|"launches"| node_app
node_app -->|"creates"| node_model
node_app -->|"shows"| node_menu
node_app -->|"shows"| node_label
node_app -->|"opens"| node_settings
node_user -->|"controls"| node_menu
node_menu -->|"controls"| node_coordinator
node_menu -->|"requests preview"| node_model
node_model -->|"loads and saves"| node_store
node_model -->|"creates and ticks"| node_coordinator
node_model -->|"creates"| node_activity
node_model -->|"samples"| node_audio
node_model -->|"wires"| node_lifecycle
node_model -->|"wires actions"| node_presenter
node_settings -->|"updates"| node_model
node_settings -->|"configures"| node_login
node_coordinator -->|"reads idle time"| node_activity
node_coordinator -->|"checks quiet state"| node_meetingstate
node_coordinator -->|"uses"| node_settingsdata
node_coordinator -->|"updates"| node_stats
node_coordinator -->|"requests presentation"| node_presenter
node_audio -->|"reduces signals"| node_meetingreducer
node_meetingreducer -->|"produces"| node_meetingstate
node_presenter -->|"shows overlay"| node_breakwindow
node_presenter -->|"shows nudge"| node_meetingwindow
node_breakwindow -->|"creates"| node_floating
node_breakwindow -->|"selects display"| node_placement
node_breakwindow -->|"renders"| node_breakview
node_meetingwindow -->|"creates"| node_floating
node_meetingwindow -->|"positions"| node_placement
node_meetingwindow -->|"renders"| node_meetingview
node_coordinator -->|"supplies countdown"| node_label

click node_app "https://github.com/matanganon/standup/blob/main/StandUp/StandUp/StandUpApp.swift"
click node_menu "https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Views/MenuBarContentView.swift"
click node_label "https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Views/MenuBarLabelView.swift"
click node_settings "https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Views/SettingsView.swift"
click node_model "https://github.com/matanganon/standup/blob/main/StandUp/StandUp/AppModel.swift"
click node_store "https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Services/PersistenceStore.swift"
click node_login "https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Services/LaunchAtLoginService.swift"
click node_activity "https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Services/SystemUserActivityMonitor.swift"
click node_audio "https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Services/CoreAudioMeetingDetector.swift"
click node_lifecycle "https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Services/WorkspaceLifecycleMonitor.swift"
click node_coordinator "https://github.com/matanganon/standup/blob/main/StandUpCore/Sources/StandUpCore/BreakCoordinator.swift"
click node_settingsdata "https://github.com/matanganon/standup/blob/main/StandUpCore/Sources/StandUpCore/AppSettings.swift"
click node_stats "https://github.com/matanganon/standup/blob/main/StandUpCore/Sources/StandUpCore/DailyStats.swift"
click node_meetingreducer "https://github.com/matanganon/standup/blob/main/StandUpCore/Sources/StandUpCore/MeetingDecisionReducer.swift"
click node_meetingstate "https://github.com/matanganon/standup/blob/main/StandUpCore/Sources/StandUpCore/MeetingState.swift"
click node_presenter "https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Services/ReminderPresenter.swift"
click node_breakwindow "https://github.com/matanganon/standup/blob/main/StandUp/StandUp/AppKit/BreakReminderWindowController.swift"
click node_meetingwindow "https://github.com/matanganon/standup/blob/main/StandUp/StandUp/AppKit/MeetingReminderWindowController.swift"
click node_floating "https://github.com/matanganon/standup/blob/main/StandUp/StandUp/AppKit/FloatingPanel.swift"
click node_placement "https://github.com/matanganon/standup/blob/main/StandUp/StandUp/AppKit/ScreenPlacement.swift"
click node_breakview "https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Views/BreakReminderView.swift"
click node_meetingview "https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Views/MeetingReminderView.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_app,node_menu,node_label,node_settings,node_user toneBlue
class node_model,node_store,node_login toneAmber
class node_activity,node_audio,node_lifecycle toneMint
class node_coordinator,node_settingsdata,node_stats,node_meetingreducer,node_meetingstate toneRose
class node_presenter,node_breakwindow,node_meetingwindow,node_floating,node_placement,node_breakview,node_meetingview toneIndigo
```

## Components

### Menu Bar UI

- [App Scenes](https://github.com/matanganon/standup/blob/main/StandUp/StandUp/StandUpApp.swift): `StandUp/StandUp/StandUpApp.swift`
- [Menu Panel](https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Views/MenuBarContentView.swift): `StandUp/StandUp/Views/MenuBarContentView.swift`
- [Countdown Label](https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Views/MenuBarLabelView.swift): `StandUp/StandUp/Views/MenuBarLabelView.swift`
- [Settings](https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Views/SettingsView.swift): `StandUp/StandUp/Views/SettingsView.swift`

### App Orchestration

- [App Model](https://github.com/matanganon/standup/blob/main/StandUp/StandUp/AppModel.swift): `StandUp/StandUp/AppModel.swift`
- [Local Persistence](https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Services/PersistenceStore.swift): `StandUp/StandUp/Services/PersistenceStore.swift`
- [Login Service](https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Services/LaunchAtLoginService.swift): `StandUp/StandUp/Services/LaunchAtLoginService.swift`

### Activity Sensing

- [Idle Monitor](https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Services/SystemUserActivityMonitor.swift): `StandUp/StandUp/Services/SystemUserActivityMonitor.swift`
- [Audio Detector](https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Services/CoreAudioMeetingDetector.swift): `StandUp/StandUp/Services/CoreAudioMeetingDetector.swift`
- [Workspace Monitor](https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Services/WorkspaceLifecycleMonitor.swift): `StandUp/StandUp/Services/WorkspaceLifecycleMonitor.swift`

### Reminder Domain

- [Break Coordinator](https://github.com/matanganon/standup/blob/main/StandUpCore/Sources/StandUpCore/BreakCoordinator.swift): `StandUpCore/Sources/StandUpCore/BreakCoordinator.swift`
- [App Settings](https://github.com/matanganon/standup/blob/main/StandUpCore/Sources/StandUpCore/AppSettings.swift): `StandUpCore/Sources/StandUpCore/AppSettings.swift`
- [Daily Stats](https://github.com/matanganon/standup/blob/main/StandUpCore/Sources/StandUpCore/DailyStats.swift): `StandUpCore/Sources/StandUpCore/DailyStats.swift`
- [Meeting Reducer](https://github.com/matanganon/standup/blob/main/StandUpCore/Sources/StandUpCore/MeetingDecisionReducer.swift): `StandUpCore/Sources/StandUpCore/MeetingDecisionReducer.swift`
- [Meeting State](https://github.com/matanganon/standup/blob/main/StandUpCore/Sources/StandUpCore/MeetingState.swift): `StandUpCore/Sources/StandUpCore/MeetingState.swift`

### Reminder Surfaces

- [Reminder Presenter](https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Services/ReminderPresenter.swift): `StandUp/StandUp/Services/ReminderPresenter.swift`
- [Break Overlay](https://github.com/matanganon/standup/blob/main/StandUp/StandUp/AppKit/BreakReminderWindowController.swift): `StandUp/StandUp/AppKit/BreakReminderWindowController.swift`
- [Meeting Nudge](https://github.com/matanganon/standup/blob/main/StandUp/StandUp/AppKit/MeetingReminderWindowController.swift): `StandUp/StandUp/AppKit/MeetingReminderWindowController.swift`
- [Floating Panel](https://github.com/matanganon/standup/blob/main/StandUp/StandUp/AppKit/FloatingPanel.swift): `StandUp/StandUp/AppKit/FloatingPanel.swift`
- [Screen Placement](https://github.com/matanganon/standup/blob/main/StandUp/StandUp/AppKit/ScreenPlacement.swift): `StandUp/StandUp/AppKit/ScreenPlacement.swift`
- [Break View](https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Views/BreakReminderView.swift): `StandUp/StandUp/Views/BreakReminderView.swift`
- [Meeting View](https://github.com/matanganon/standup/blob/main/StandUp/StandUp/Views/MeetingReminderView.swift): `StandUp/StandUp/Views/MeetingReminderView.swift`

### Other components

- **Mac User**

## Connections

- Mac User → App Scenes: launches (evidence: `README.md`)
- App Scenes → App Model: creates (evidence: `StandUp/StandUp/StandUpApp.swift`)
- App Scenes → Menu Panel: shows (evidence: `StandUp/StandUp/StandUpApp.swift`)
- App Scenes → Countdown Label: shows (evidence: `StandUp/StandUp/StandUpApp.swift`)
- App Scenes → Settings: opens (evidence: `StandUp/StandUp/StandUpApp.swift`)
- Mac User → Menu Panel: controls (evidence: `README.md`)
- Menu Panel → Break Coordinator: controls (evidence: `StandUp/StandUp/Views/MenuBarContentView.swift`)
- Menu Panel → App Model: requests preview (evidence: `StandUp/StandUp/Views/MenuBarContentView.swift`)
- App Model → Local Persistence: loads and saves (evidence: `StandUp/StandUp/AppModel.swift`)
- App Model → Break Coordinator: creates and ticks (evidence: `StandUp/StandUp/AppModel.swift`)
- App Model → Idle Monitor: creates (evidence: `StandUp/StandUp/AppModel.swift`)
- App Model → Audio Detector: samples (evidence: `StandUp/StandUp/AppModel.swift`)
- App Model → Workspace Monitor: wires (evidence: `StandUp/StandUp/AppModel.swift`)
- App Model → Reminder Presenter: wires actions (evidence: `StandUp/StandUp/AppModel.swift`)
- Settings → App Model: updates (evidence: `StandUp/StandUp/Views/SettingsView.swift`)
- Settings → Login Service: configures (evidence: `StandUp/StandUp/Views/SettingsView.swift`)
- Break Coordinator → Idle Monitor: reads idle time (evidence: `StandUpCore/Sources/StandUpCore/BreakCoordinator.swift`)
- Break Coordinator → Meeting State: checks quiet state (evidence: `StandUpCore/Sources/StandUpCore/BreakCoordinator.swift`)
- Break Coordinator → App Settings: uses (evidence: `StandUpCore/Sources/StandUpCore/BreakCoordinator.swift`)
- Break Coordinator → Daily Stats: updates (evidence: `StandUpCore/Sources/StandUpCore/BreakCoordinator.swift`)
- Break Coordinator → Reminder Presenter: requests presentation (evidence: `StandUpCore/Sources/StandUpCore/BreakCoordinator.swift`)
- Audio Detector → Meeting Reducer: reduces signals (evidence: `StandUp/StandUp/Services/CoreAudioMeetingDetector.swift`)
- Meeting Reducer → Meeting State: produces (evidence: `StandUpCore/Sources/StandUpCore/MeetingDecisionReducer.swift`)
- Reminder Presenter → Break Overlay: shows overlay (evidence: `StandUp/StandUp/Services/ReminderPresenter.swift`)
- Reminder Presenter → Meeting Nudge: shows nudge (evidence: `StandUp/StandUp/Services/ReminderPresenter.swift`)
- Break Overlay → Floating Panel: creates (evidence: `StandUp/StandUp/AppKit/BreakReminderWindowController.swift`)
- Break Overlay → Screen Placement: selects display (evidence: `StandUp/StandUp/AppKit/BreakReminderWindowController.swift`)
- Break Overlay → Break View: renders (evidence: `StandUp/StandUp/AppKit/BreakReminderWindowController.swift`)
- Meeting Nudge → Floating Panel: creates (evidence: `StandUp/StandUp/AppKit/MeetingReminderWindowController.swift`)
- Meeting Nudge → Screen Placement: positions (evidence: `StandUp/StandUp/AppKit/MeetingReminderWindowController.swift`)
- Meeting Nudge → Meeting View: renders (evidence: `StandUp/StandUp/AppKit/MeetingReminderWindowController.swift`)
- Break Coordinator → Countdown Label: supplies countdown (evidence: `StandUp/StandUp/Views/MenuBarLabelView.swift`)
