# niyamvora/ilovenotch architecture

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

- Interactive diagram: https://gitdiagram.com/niyamvora/ilovenotch
- Repository: https://github.com/niyamvora/ilovenotch

## Overview

ILoveNotch is a native macOS menu-bar/notch tray. The user opens the notch or selects a tab, uses a feature, and gets an in-notch result; feature lifecycle and the notch surface provide the shared runtime layer. The README documents the feature breadth, while the source index confirms AppDelegate registers many feature modules. Several feature implementations were not sampled, so their internal dependencies are omitted rather than inferred.

Main entry points: [`App/AppDelegate.swift`](https://github.com/niyamvora/ilovenotch/blob/main/App/AppDelegate.swift) (Feature host), [`Sources/NotchSurface/NotchView.swift`](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchSurface/NotchView.swift) (Notch surface), [`Sources/NotchTransfer/TransferFeature.swift`](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchTransfer/TransferFeature.swift) (Quick Share), [`Sources/NotchCore/NotchEngine.swift`](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchCore/NotchEngine.swift) (Notch state engine)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_appdelegate["Feature host<br/>[AppDelegate.swift]"]
  node_preferences[("Preferences")]
  node_settings["Settings UI<br/>[Settings.swift]"]
end

subgraph group_surface["Notch surface"]
  node_engine["Notch state engine<br/>[NotchEngine.swift]"]
  node_surfaceview["Notch surface<br/>[NotchView.swift]"]
  node_controller["Display controller"]
end

subgraph group_daily["Daily tools"]
  node_calendar["Calendar"]
  node_tasks["Reminders and tasks<br/>[TasksFeature.swift]"]
  node_notes["Notes<br/>[NotesFeature.swift]"]
  node_clipboard["Clipboard history"]
  node_shortcuts["Shortcuts"]
  node_timer["Timer and awake<br/>[TimerFeature.swift]"]
  node_network["Network monitor"]
end

subgraph group_sound["Media and sound"]
  node_media["Now playing<br/>[MediaFeature.swift]"]
  node_mixer["Per-app sound<br/>[Mixer.swift]"]
end

subgraph group_integrations["Sharing and AI"]
  node_shelf["File shelf<br/>[ShelfFeature.swift]"]
  node_transfer["Quick Share"]
  node_usage["AI usage<br/>[UsageFeature.swift]"]
  node_usagehttp["Provider HTTP<br/>[HTTPClient.swift]"]
  node_agents["Agent alerts"]
  node_mirror["Camera mirror"]
end

node_user(("Mac user"))
node_macos{{"macOS services"}}
node_providers{{"AI providers"}}
node_android{{"Android phone"}}

node_user -->|"opens notch"| node_controller
node_controller -->|"sends events"| node_engine
node_engine -->|"updates presentation"| node_surfaceview
node_surfaceview -->|"shows feature"| node_user
node_appdelegate -->|"hosts"| node_calendar
node_appdelegate -->|"hosts"| node_tasks
node_appdelegate -->|"hosts"| node_notes
node_appdelegate -->|"hosts"| node_clipboard
node_appdelegate -->|"hosts"| node_shortcuts
node_appdelegate -->|"hosts"| node_timer
node_appdelegate -->|"hosts"| node_network
node_appdelegate -->|"hosts"| node_media
node_appdelegate -->|"hosts"| node_mixer
node_appdelegate -->|"hosts"| node_shelf
node_appdelegate -->|"hosts"| node_transfer
node_appdelegate -->|"hosts"| node_usage
node_appdelegate -->|"hosts"| node_agents
node_appdelegate -->|"hosts"| node_mirror
node_settings -->|"configures"| node_preferences
node_surfaceview -->|"reads settings"| node_preferences
node_tasks -->|"uses Reminders"| node_macos
node_calendar -->|"uses Calendar"| node_macos
node_mirror -->|"uses camera"| node_macos
node_usage -->|"requests usage"| node_usagehttp
node_usagehttp -.->|"fetches metrics"| node_providers
node_transfer -->|"shares files"| node_android
node_shelf -->|"sends shelf files"| node_transfer

click node_appdelegate "https://github.com/niyamvora/ilovenotch/blob/main/App/AppDelegate.swift"
click node_preferences "https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchCore/NotchPreferences.swift"
click node_settings "https://github.com/niyamvora/ilovenotch/blob/main/App/Settings.swift"
click node_engine "https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchCore/NotchEngine.swift"
click node_surfaceview "https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchSurface/NotchView.swift"
click node_controller "https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchSurface/NotchController.swift"
click node_calendar "https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchFeatures/Calendar/CalendarFeature.swift"
click node_tasks "https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchFeatures/Tasks/TasksFeature.swift"
click node_notes "https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchFeatures/Notes/NotesFeature.swift"
click node_clipboard "https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchFeatures/Clipboard/ClipboardFeature.swift"
click node_shortcuts "https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchFeatures/Shortcuts/ShortcutsFeature.swift"
click node_timer "https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchFeatures/Timer/TimerFeature.swift"
click node_network "https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchFeatures/Network/NetworkFeature.swift"
click node_media "https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchFeatures/Media/MediaFeature.swift"
click node_mixer "https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchMixer/Mixer.swift"
click node_shelf "https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchFeatures/Shelf/ShelfFeature.swift"
click node_transfer "https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchTransfer/TransferFeature.swift"
click node_usage "https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchUsage/UsageFeature.swift"
click node_usagehttp "https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchUsage/OpenUsage/Services/HTTPClient.swift"
click node_agents "https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchUsage/Agents/AgentsFeature.swift"
click node_mirror "https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchFeatures/Mirror/MirrorFeature.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_preferences,node_settings,node_user toneBlue
class node_engine,node_surfaceview,node_controller toneAmber
class node_calendar,node_tasks,node_notes,node_clipboard,node_shortcuts,node_timer,node_network toneMint
class node_media,node_mixer toneRose
class node_shelf,node_transfer,node_usage,node_usagehttp,node_agents,node_mirror,node_macos,node_providers,node_android toneIndigo
```

## Components

### App shell

- [Feature host](https://github.com/niyamvora/ilovenotch/blob/main/App/AppDelegate.swift): `App/AppDelegate.swift`
- [Preferences](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchCore/NotchPreferences.swift): `Sources/NotchCore/NotchPreferences.swift`
- [Settings UI](https://github.com/niyamvora/ilovenotch/blob/main/App/Settings.swift): `App/Settings.swift`

### Notch surface

- [Notch state engine](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchCore/NotchEngine.swift): `Sources/NotchCore/NotchEngine.swift`
- [Notch surface](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchSurface/NotchView.swift): `Sources/NotchSurface/NotchView.swift`
- [Display controller](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchSurface/NotchController.swift): `Sources/NotchSurface/NotchController.swift`

### Daily tools

- [Calendar](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchFeatures/Calendar/CalendarFeature.swift): `Sources/NotchFeatures/Calendar/CalendarFeature.swift`
- [Reminders and tasks](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchFeatures/Tasks/TasksFeature.swift): `Sources/NotchFeatures/Tasks/TasksFeature.swift`
- [Notes](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchFeatures/Notes/NotesFeature.swift): `Sources/NotchFeatures/Notes/NotesFeature.swift`
- [Clipboard history](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchFeatures/Clipboard/ClipboardFeature.swift): `Sources/NotchFeatures/Clipboard/ClipboardFeature.swift`
- [Shortcuts](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchFeatures/Shortcuts/ShortcutsFeature.swift): `Sources/NotchFeatures/Shortcuts/ShortcutsFeature.swift`
- [Timer and awake](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchFeatures/Timer/TimerFeature.swift): `Sources/NotchFeatures/Timer/TimerFeature.swift`
- [Network monitor](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchFeatures/Network/NetworkFeature.swift): `Sources/NotchFeatures/Network/NetworkFeature.swift`

### Media and sound

- [Now playing](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchFeatures/Media/MediaFeature.swift): `Sources/NotchFeatures/Media/MediaFeature.swift`
- [Per-app sound](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchMixer/Mixer.swift): `Sources/NotchMixer/Mixer.swift`

### Sharing and AI

- [File shelf](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchFeatures/Shelf/ShelfFeature.swift): `Sources/NotchFeatures/Shelf/ShelfFeature.swift`
- [Quick Share](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchTransfer/TransferFeature.swift): `Sources/NotchTransfer/TransferFeature.swift`
- [AI usage](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchUsage/UsageFeature.swift): `Sources/NotchUsage/UsageFeature.swift`
- [Provider HTTP](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchUsage/OpenUsage/Services/HTTPClient.swift): `Sources/NotchUsage/OpenUsage/Services/HTTPClient.swift`
- [Agent alerts](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchUsage/Agents/AgentsFeature.swift): `Sources/NotchUsage/Agents/AgentsFeature.swift`
- [Camera mirror](https://github.com/niyamvora/ilovenotch/blob/main/Sources/NotchFeatures/Mirror/MirrorFeature.swift): `Sources/NotchFeatures/Mirror/MirrorFeature.swift`

### Other components

- **Mac user**
- **macOS services**
- **AI providers**
- **Android phone**

## Connections

- Mac user → Display controller: opens notch
- Display controller → Notch state engine: sends events (evidence: `Sources/NotchSurface/NotchController.swift`)
- Notch state engine → Notch surface: updates presentation (evidence: `Sources/NotchSurface/NotchController.swift`)
- Notch surface → Mac user: shows feature
- Feature host → Calendar: hosts (evidence: `App/AppDelegate.swift`)
- Feature host → Reminders and tasks: hosts (evidence: `App/AppDelegate.swift`)
- Feature host → Notes: hosts (evidence: `App/AppDelegate.swift`)
- Feature host → Clipboard history: hosts (evidence: `App/AppDelegate.swift`)
- Feature host → Shortcuts: hosts (evidence: `App/AppDelegate.swift`)
- Feature host → Timer and awake: hosts (evidence: `App/AppDelegate.swift`)
- Feature host → Network monitor: hosts (evidence: `App/AppDelegate.swift`)
- Feature host → Now playing: hosts (evidence: `App/AppDelegate.swift`)
- Feature host → Per-app sound: hosts (evidence: `App/AppDelegate.swift`)
- Feature host → File shelf: hosts (evidence: `App/AppDelegate.swift`)
- Feature host → Quick Share: hosts (evidence: `App/AppDelegate.swift`)
- Feature host → AI usage: hosts (evidence: `App/AppDelegate.swift`)
- Feature host → Agent alerts: hosts (evidence: `App/AppDelegate.swift`)
- Feature host → Camera mirror: hosts (evidence: `App/AppDelegate.swift`)
- Settings UI → Preferences: configures (evidence: `App/Settings.swift`)
- Notch surface → Preferences: reads settings (evidence: `Sources/NotchSurface/NotchView.swift`)
- Reminders and tasks → macOS services: uses Reminders
- Calendar → macOS services: uses Calendar
- Camera mirror → macOS services: uses camera
- AI usage → Provider HTTP: requests usage
- Provider HTTP → AI providers: fetches metrics
- Quick Share → Android phone: shares files
- File shelf → Quick Share: sends shelf files
