# egold070799/lumiere architecture

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

- Interactive diagram: https://gitdiagram.com/egold070799/lumiere
- Repository: https://github.com/egold070799/lumiere

## Overview

Lumiere is a Flutter music player. Its user-facing workflow is to navigate music discovery and library screens, choose music or radio, and use playback controls; playlists, lyrics, listening statistics, and updates are also represented in the source tree. The README confirms the product identity but does not document these internal flows. Accordingly, most app-level connections are shown as unverified; platform-launch and Android update relationships use the sampled native source evidence.

Main entry points: [`lib/services/audio_service.dart`](https://github.com/egold070799/lumiere/blob/main/lib/services/audio_service.dart) (Audio service), [`lib/screens/bottom_navigation_page.dart`](https://github.com/egold070799/lumiere/blob/main/lib/screens/bottom_navigation_page.dart) (Navigation), [`lib/screens/now_playing_page.dart`](https://github.com/egold070799/lumiere/blob/main/lib/screens/now_playing_page.dart) (Now playing), [`packages/youtube_explode_dart/lib/src`](https://github.com/egold070799/lumiere/tree/main/packages/youtube_explode_dart/lib/src) (YouTube client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["App experience"]
  node_app["Flutter app<br/>[main.dart]"]
  node_navigation["Navigation"]
  node_discovery["Search and home<br/>[search_page.dart]"]
  node_nowplaying["Now playing"]
end

subgraph group_music["Music and playback"]
  node_audio["Audio service<br/>[audio_service.dart]"]
  node_radio["Radio"]
  node_lyrics["Lyrics"]
  node_youtube["YouTube client"]
end

subgraph group_state["Library and state"]
  node_playlists["Playlist management"]
  node_database[("Local music data")]
  node_settings["Settings"]
  node_stats["Listening statistics"]
end

subgraph group_platform["Platform and integrations"]
  node_youtube_api["YouTube API<br/>[youtube.js]"]
  node_android["Android activity<br/>[MainActivity.kt]"]
  node_updater["Install receiver"]
  node_linux["Linux runner<br/>[main.cc]"]
  node_linuxapp["GTK application<br/>[my_application.h]"]
  node_windows["Windows entry<br/>[main.cpp]"]
  node_flutterwindow["Flutter window<br/>[flutter_window.h]"]
  node_win32["Win32 window<br/>[win32_window.cpp]"]
end

node_user(("Listener"))

node_user -.->|"uses"| node_app
node_app -.->|"opens"| node_navigation
node_navigation -.->|"navigates"| node_discovery
node_navigation -.->|"navigates"| node_nowplaying
node_nowplaying -.->|"controls"| node_audio
node_discovery -.->|"searches"| node_youtube
node_audio -.->|"streams"| node_youtube
node_audio -.->|"plays"| node_radio
node_nowplaying -.->|"displays"| node_lyrics
node_playlists -.->|"persists"| node_database
node_settings -.->|"stores"| node_database
node_audio -.->|"records"| node_stats
node_youtube_api -.->|"integrates"| node_youtube
node_windows -->|"creates"| node_flutterwindow
node_flutterwindow -->|"inherits"| node_win32
node_linux -.->|"creates"| node_linuxapp
node_android -->|"registers callback"| node_updater

click node_app "https://github.com/egold070799/lumiere/blob/main/lib/main.dart"
click node_navigation "https://github.com/egold070799/lumiere/blob/main/lib/screens/bottom_navigation_page.dart"
click node_discovery "https://github.com/egold070799/lumiere/blob/main/lib/screens/search_page.dart"
click node_nowplaying "https://github.com/egold070799/lumiere/blob/main/lib/screens/now_playing_page.dart"
click node_audio "https://github.com/egold070799/lumiere/blob/main/lib/services/audio_service.dart"
click node_radio "https://github.com/egold070799/lumiere/blob/main/lib/screens/radio_stations_page.dart"
click node_lyrics "https://github.com/egold070799/lumiere/blob/main/lib/services/lyrics_manager.dart"
click node_youtube "https://github.com/egold070799/lumiere/tree/main/packages/youtube_explode_dart/lib/src"
click node_youtube_api "https://github.com/egold070799/lumiere/blob/main/api/youtube.js"
click node_playlists "https://github.com/egold070799/lumiere/blob/main/lib/services/playlists_manager.dart"
click node_database "https://github.com/egold070799/lumiere/tree/main/lib/database"
click node_settings "https://github.com/egold070799/lumiere/blob/main/lib/services/settings_manager.dart"
click node_stats "https://github.com/egold070799/lumiere/blob/main/lib/services/listening_stats_service.dart"
click node_android "https://github.com/egold070799/lumiere/blob/main/android/app/src/main/kotlin/com/egold070799/lumiere/MainActivity.kt"
click node_updater "https://github.com/egold070799/lumiere/blob/main/android/app/src/main/kotlin/com/egold070799/lumiere/UpdateInstallReceiver.kt"
click node_linux "https://github.com/egold070799/lumiere/blob/main/linux/runner/main.cc"
click node_linuxapp "https://github.com/egold070799/lumiere/blob/main/linux/runner/my_application.h"
click node_windows "https://github.com/egold070799/lumiere/blob/main/windows/runner/main.cpp"
click node_flutterwindow "https://github.com/egold070799/lumiere/blob/main/windows/runner/flutter_window.h"
click node_win32 "https://github.com/egold070799/lumiere/blob/main/windows/runner/win32_window.cpp"

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_navigation,node_discovery,node_nowplaying toneBlue
class node_audio,node_radio,node_lyrics,node_youtube toneAmber
class node_playlists,node_database,node_settings,node_stats toneMint
class node_youtube_api,node_android,node_updater,node_linux,node_linuxapp,node_windows,node_flutterwindow,node_win32 toneRose
class node_user toneIndigo
```

## Components

### App experience

- [Flutter app](https://github.com/egold070799/lumiere/blob/main/lib/main.dart): `lib/main.dart`
- [Navigation](https://github.com/egold070799/lumiere/blob/main/lib/screens/bottom_navigation_page.dart): `lib/screens/bottom_navigation_page.dart`
- [Search and home](https://github.com/egold070799/lumiere/blob/main/lib/screens/search_page.dart): `lib/screens/search_page.dart`
- [Now playing](https://github.com/egold070799/lumiere/blob/main/lib/screens/now_playing_page.dart): `lib/screens/now_playing_page.dart`

### Music and playback

- [Audio service](https://github.com/egold070799/lumiere/blob/main/lib/services/audio_service.dart): `lib/services/audio_service.dart`
- [Radio](https://github.com/egold070799/lumiere/blob/main/lib/screens/radio_stations_page.dart): `lib/screens/radio_stations_page.dart`
- [Lyrics](https://github.com/egold070799/lumiere/blob/main/lib/services/lyrics_manager.dart): `lib/services/lyrics_manager.dart`
- [YouTube client](https://github.com/egold070799/lumiere/tree/main/packages/youtube_explode_dart/lib/src): `packages/youtube_explode_dart/lib/src`

### Library and state

- [Playlist management](https://github.com/egold070799/lumiere/blob/main/lib/services/playlists_manager.dart): `lib/services/playlists_manager.dart`
- [Local music data](https://github.com/egold070799/lumiere/tree/main/lib/database): `lib/database`
- [Settings](https://github.com/egold070799/lumiere/blob/main/lib/services/settings_manager.dart): `lib/services/settings_manager.dart`
- [Listening statistics](https://github.com/egold070799/lumiere/blob/main/lib/services/listening_stats_service.dart): `lib/services/listening_stats_service.dart`

### Platform and integrations

- [YouTube API](https://github.com/egold070799/lumiere/blob/main/api/youtube.js): `api/youtube.js`
- [Android activity](https://github.com/egold070799/lumiere/blob/main/android/app/src/main/kotlin/com/egold070799/lumiere/MainActivity.kt): `android/app/src/main/kotlin/com/egold070799/lumiere/MainActivity.kt`
- [Install receiver](https://github.com/egold070799/lumiere/blob/main/android/app/src/main/kotlin/com/egold070799/lumiere/UpdateInstallReceiver.kt): `android/app/src/main/kotlin/com/egold070799/lumiere/UpdateInstallReceiver.kt`
- [Linux runner](https://github.com/egold070799/lumiere/blob/main/linux/runner/main.cc): `linux/runner/main.cc`
- [GTK application](https://github.com/egold070799/lumiere/blob/main/linux/runner/my_application.h): `linux/runner/my_application.h`
- [Windows entry](https://github.com/egold070799/lumiere/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window](https://github.com/egold070799/lumiere/blob/main/windows/runner/flutter_window.h): `windows/runner/flutter_window.h`
- [Win32 window](https://github.com/egold070799/lumiere/blob/main/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`

### Other components

- **Listener**

## Connections

- Listener → Flutter app: uses
- Flutter app → Navigation: opens
- Navigation → Search and home: navigates
- Navigation → Now playing: navigates
- Now playing → Audio service: controls
- Search and home → YouTube client: searches
- Audio service → YouTube client: streams
- Audio service → Radio: plays
- Now playing → Lyrics: displays
- Playlist management → Local music data: persists
- Settings → Local music data: stores
- Audio service → Listening statistics: records
- YouTube API → YouTube client: integrates
- Windows entry → Flutter window: creates (evidence: `windows/runner/main.cpp`)
- Flutter window → Win32 window: inherits (evidence: `windows/runner/flutter_window.h`)
- Linux runner → GTK application: creates (evidence: `linux/runner/main.cc`)
- Android activity → Install receiver: registers callback (evidence: `android/app/src/main/kotlin/com/egold070799/lumiere/MainActivity.kt`)
