# capitainepoof8/iledynamique architecture

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

- Interactive diagram: https://gitdiagram.com/capitainepoof8/iledynamique
- Repository: https://github.com/capitainepoof8/iledynamique

## Overview

Île Dynamique is a macOS menu-bar utility that presents a hover-expanded island around the display notch. The main workflow runs from app startup through a window controller and shared view model, which combines media, battery, levels, calendar, and file-shelf state for compact or expanded SwiftUI views. Preferences select modules and display. The README documents MediaRemote listening with a Perl helper and AppleScript fallback; sampled source confirms media orchestration but not the helper’s implementation, so that link is documented. Other edges below are limited to relationships shown in excerpts or the source index.

Main entry points: [`Sources/IleDynamique/ViewModel/IleViewModel.swift`](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/ViewModel/IleViewModel.swift) (Island state), [`Sources/IleDynamique/Fenetre/ControleurFenetre.swift`](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Fenetre/ControleurFenetre.swift) (Window controller), [`Sources/IleDynamique/Vues/VueIle.swift`](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Vues/VueIle.swift) (Island root view), [`Sources/IleDynamique/Vues/VueEtendue.swift`](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Vues/VueEtendue.swift) (Expanded view)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_lifecycle["App and Window"]
  node_delegate["App delegate<br/>[AppDelegate.swift]"]
  node_window["Window controller"]
  node_panel["Floating panel<br/>[PanneauIle.swift]"]
  node_geometry["Notch geometry"]
end

subgraph group_state["State and Preferences"]
  node_vm["Island state<br/>[IleViewModel.swift]"]
  node_prefs[("Preferences<br/>[Preferences.swift]")]
  node_prefsui["Preferences UI"]
  node_login["Login item"]
end

subgraph group_sensing["System Modules"]
  node_music["Media playback"]
  node_listening["Now Playing helper<br/>[AideLecture.swift]"]
  node_battery["Battery"]
  node_levels["Volume and brightness"]
  node_calendar["Calendar events"]
  node_shelf["File shelf"]
end

subgraph group_interface["Island Interface"]
  node_rootview["Island root view<br/>[VueIle.swift]"]
  node_compact["Compact view<br/>[VueCompacte.swift]"]
  node_expanded["Expanded view<br/>[VueEtendue.swift]"]
  node_playerui["Player view<br/>[VueLecteur.swift]"]
  node_calendarui["Calendar view"]
  node_shelfui["Shelf view<br/>[VueEtagere.swift]"]
  node_header["Header and battery<br/>[VueEnTete.swift]"]
  node_shape["Island shape<br/>[FormeIle.swift]"]
  node_equalizer["Equalizer<br/>[Egaliseur.swift]"]
end

node_user(("User"))
node_perl["Perl helper host"]
node_apps["Music and Spotify"]
node_eventkit["macOS Calendar"]

node_user -->|"launches"| node_delegate
node_delegate -->|"creates and starts"| node_vm
node_delegate -->|"creates and shows"| node_window
node_window -->|"hosts view"| node_panel
node_window -->|"hosts"| node_rootview
node_window -->|"tracks pointer"| node_vm
node_window -->|"positions using"| node_geometry
node_prefsui -->|"edits"| node_prefs
node_prefsui -->|"configures"| node_login
node_vm -->|"reads settings"| node_prefs
node_vm -->|"starts and refreshes"| node_music
node_vm -->|"starts"| node_battery
node_vm -->|"starts"| node_levels
node_vm -->|"starts and refreshes"| node_calendar
node_vm -->|"accepts drops"| node_shelf
node_music -->|"uses"| node_listening
node_listening -.->|"exchanges JSON"| node_perl
node_music -.->|"AppleScript fallback"| node_apps
node_calendar -.->|"reads events"| node_eventkit
node_rootview -->|"observes"| node_vm
node_rootview -->|"draws"| node_shape
node_rootview -->|"shows"| node_compact
node_rootview -->|"shows"| node_expanded
node_compact -->|"reads state"| node_vm
node_compact -->|"renders"| node_equalizer
node_expanded -->|"renders"| node_playerui
node_expanded -->|"renders"| node_calendarui
node_expanded -->|"renders"| node_shelfui
node_expanded -->|"renders"| node_header
node_playerui -->|"displays and controls"| node_music
node_calendarui -->|"displays"| node_calendar
node_shelfui -->|"displays"| node_shelf
node_header -->|"displays"| node_battery

click node_delegate "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/App/AppDelegate.swift"
click node_window "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Fenetre/ControleurFenetre.swift"
click node_panel "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Fenetre/PanneauIle.swift"
click node_geometry "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Fenetre/GeometrieEncoche.swift"
click node_vm "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/ViewModel/IleViewModel.swift"
click node_prefs "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Preferences/Preferences.swift"
click node_prefsui "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Preferences/VuePreferences.swift"
click node_login "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Preferences/LancementAuDemarrage.swift"
click node_music "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Modules/ModuleMusique.swift"
click node_listening "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Modules/AideLecture.swift"
click node_battery "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Modules/ModuleBatterie.swift"
click node_levels "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Modules/ModuleVolumeLuminosite.swift"
click node_calendar "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Modules/ModuleCalendrier.swift"
click node_shelf "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Modules/ModuleEtagere.swift"
click node_rootview "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Vues/VueIle.swift"
click node_compact "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Vues/VueCompacte.swift"
click node_expanded "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Vues/VueEtendue.swift"
click node_playerui "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Vues/VueLecteur.swift"
click node_calendarui "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Vues/VueCalendrier.swift"
click node_shelfui "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Vues/VueEtagere.swift"
click node_header "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Vues/VueEnTete.swift"
click node_shape "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Vues/FormeIle.swift"
click node_equalizer "https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Vues/Egaliseur.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_delegate,node_window,node_panel,node_geometry,node_user toneBlue
class node_vm,node_prefs,node_prefsui,node_login toneAmber
class node_music,node_listening,node_battery,node_levels,node_calendar,node_shelf toneMint
class node_rootview,node_compact,node_expanded,node_playerui,node_calendarui,node_shelfui,node_header,node_shape,node_equalizer toneRose
class node_perl,node_apps,node_eventkit toneIndigo
```

## Components

### App and Window

- [App delegate](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/App/AppDelegate.swift): `Sources/IleDynamique/App/AppDelegate.swift`
- [Window controller](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Fenetre/ControleurFenetre.swift): `Sources/IleDynamique/Fenetre/ControleurFenetre.swift`
- [Floating panel](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Fenetre/PanneauIle.swift): `Sources/IleDynamique/Fenetre/PanneauIle.swift`
- [Notch geometry](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Fenetre/GeometrieEncoche.swift): `Sources/IleDynamique/Fenetre/GeometrieEncoche.swift`

### State and Preferences

- [Island state](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/ViewModel/IleViewModel.swift): `Sources/IleDynamique/ViewModel/IleViewModel.swift`
- [Preferences](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Preferences/Preferences.swift): `Sources/IleDynamique/Preferences/Preferences.swift`
- [Preferences UI](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Preferences/VuePreferences.swift): `Sources/IleDynamique/Preferences/VuePreferences.swift`
- [Login item](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Preferences/LancementAuDemarrage.swift): `Sources/IleDynamique/Preferences/LancementAuDemarrage.swift`

### System Modules

- [Media playback](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Modules/ModuleMusique.swift): `Sources/IleDynamique/Modules/ModuleMusique.swift`
- [Now Playing helper](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Modules/AideLecture.swift): `Sources/IleDynamique/Modules/AideLecture.swift`
- [Battery](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Modules/ModuleBatterie.swift): `Sources/IleDynamique/Modules/ModuleBatterie.swift`
- [Volume and brightness](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Modules/ModuleVolumeLuminosite.swift): `Sources/IleDynamique/Modules/ModuleVolumeLuminosite.swift`
- [Calendar events](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Modules/ModuleCalendrier.swift): `Sources/IleDynamique/Modules/ModuleCalendrier.swift`
- [File shelf](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Modules/ModuleEtagere.swift): `Sources/IleDynamique/Modules/ModuleEtagere.swift`

### Island Interface

- [Island root view](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Vues/VueIle.swift): `Sources/IleDynamique/Vues/VueIle.swift`
- [Compact view](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Vues/VueCompacte.swift): `Sources/IleDynamique/Vues/VueCompacte.swift`
- [Expanded view](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Vues/VueEtendue.swift): `Sources/IleDynamique/Vues/VueEtendue.swift`
- [Player view](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Vues/VueLecteur.swift): `Sources/IleDynamique/Vues/VueLecteur.swift`
- [Calendar view](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Vues/VueCalendrier.swift): `Sources/IleDynamique/Vues/VueCalendrier.swift`
- [Shelf view](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Vues/VueEtagere.swift): `Sources/IleDynamique/Vues/VueEtagere.swift`
- [Header and battery](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Vues/VueEnTete.swift): `Sources/IleDynamique/Vues/VueEnTete.swift`
- [Island shape](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Vues/FormeIle.swift): `Sources/IleDynamique/Vues/FormeIle.swift`
- [Equalizer](https://github.com/capitainepoof8/iledynamique/blob/main/Sources/IleDynamique/Vues/Egaliseur.swift): `Sources/IleDynamique/Vues/Egaliseur.swift`

### Other components

- **User**
- **Perl helper host**
- **Music and Spotify**
- **macOS Calendar**

## Connections

- User → App delegate: launches (evidence: `Sources/IleDynamique/App/AppDelegate.swift`)
- App delegate → Island state: creates and starts (evidence: `Sources/IleDynamique/App/AppDelegate.swift`)
- App delegate → Window controller: creates and shows (evidence: `Sources/IleDynamique/App/AppDelegate.swift`)
- Window controller → Floating panel: hosts view (evidence: `Sources/IleDynamique/Fenetre/ControleurFenetre.swift`)
- Window controller → Island root view: hosts (evidence: `Sources/IleDynamique/Fenetre/ControleurFenetre.swift`)
- Window controller → Island state: tracks pointer (evidence: `Sources/IleDynamique/Fenetre/ControleurFenetre.swift`)
- Window controller → Notch geometry: positions using (evidence: `Sources/IleDynamique/Fenetre/ControleurFenetre.swift`)
- Preferences UI → Preferences: edits (evidence: `Sources/IleDynamique/Preferences/VuePreferences.swift`)
- Preferences UI → Login item: configures (evidence: `Sources/IleDynamique/Preferences/VuePreferences.swift`)
- Island state → Preferences: reads settings (evidence: `Sources/IleDynamique/ViewModel/IleViewModel.swift`)
- Island state → Media playback: starts and refreshes (evidence: `Sources/IleDynamique/ViewModel/IleViewModel.swift`)
- Island state → Battery: starts (evidence: `Sources/IleDynamique/ViewModel/IleViewModel.swift`)
- Island state → Volume and brightness: starts (evidence: `Sources/IleDynamique/ViewModel/IleViewModel.swift`)
- Island state → Calendar events: starts and refreshes (evidence: `Sources/IleDynamique/ViewModel/IleViewModel.swift`)
- Island state → File shelf: accepts drops (evidence: `Sources/IleDynamique/ViewModel/IleViewModel.swift`)
- Media playback → Now Playing helper: uses (evidence: `Sources/IleDynamique/Modules/ModuleMusique.swift`)
- Now Playing helper → Perl helper host: exchanges JSON (evidence: `README.md`)
- Media playback → Music and Spotify: AppleScript fallback (evidence: `README.md`)
- Calendar events → macOS Calendar: reads events (evidence: `README.md`)
- Island root view → Island state: observes (evidence: `Sources/IleDynamique/Vues/VueIle.swift`)
- Island root view → Island shape: draws (evidence: `Sources/IleDynamique/Vues/VueIle.swift`)
- Island root view → Compact view: shows (evidence: `Sources/IleDynamique/Vues/VueIle.swift`)
- Island root view → Expanded view: shows (evidence: `Sources/IleDynamique/Vues/VueIle.swift`)
- Compact view → Island state: reads state (evidence: `Sources/IleDynamique/Vues/VueCompacte.swift`)
- Compact view → Equalizer: renders (evidence: `Sources/IleDynamique/Vues/VueCompacte.swift`)
- Expanded view → Player view: renders (evidence: `Sources/IleDynamique/Vues/VueEtendue.swift`)
- Expanded view → Calendar view: renders (evidence: `Sources/IleDynamique/Vues/VueEtendue.swift`)
- Expanded view → Shelf view: renders (evidence: `Sources/IleDynamique/Vues/VueEtendue.swift`)
- Expanded view → Header and battery: renders (evidence: `Sources/IleDynamique/Vues/VueEtendue.swift`)
- Player view → Media playback: displays and controls (evidence: `Sources/IleDynamique/Vues/VueLecteur.swift`)
- Calendar view → Calendar events: displays (evidence: `Sources/IleDynamique/Vues/VueCalendrier.swift`)
- Shelf view → File shelf: displays (evidence: `Sources/IleDynamique/Vues/VueEtagere.swift`)
- Header and battery → Battery: displays (evidence: `Sources/IleDynamique/Vues/VueEnTete.swift`)
