# egold070799/aureon architecture

> Architecture diagram of the GitHub repository egold070799/aureon, 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/aureon
- Repository: https://github.com/egold070799/aureon

## Overview

Aureon is an Electron media discovery and streaming application. Users configure access, browse or search titles, open movie or series details, choose a source, and watch or download media; the app also manages a library, settings, subtitles, and playback-related features. The graph reflects explicit calls and documented module references; several Electron bridge and playback connections are not visible in the excerpts, so those relationships are omitted rather than inferred.

Main entry points: [`src/App.jsx`](https://github.com/egold070799/aureon/blob/main/src/App.jsx) (App shell), [`index.js`](https://github.com/egold070799/aureon/blob/main/index.js) (Electron main), [`src/utils/api.js`](https://github.com/egold070799/aureon/blob/main/src/utils/api.js) (Metadata API), [`src/pages/SettingsPage.jsx`](https://github.com/egold070799/aureon/blob/main/src/pages/SettingsPage.jsx) (Settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_app["App shell<br/>[App.jsx]"]
  node_setup["API setup<br/>[SetupScreen.jsx]"]
  node_settings["Settings<br/>[SettingsPage.jsx]"]
  node_appearance["Appearance<br/>[appearance.js]"]
  node_backup["Backup tools<br/>[backup.js]"]
  node_update["Update dialog<br/>[UpdateModal.jsx]"]
  node_updates["Update checks<br/>[updates.js]"]
  node_blocked_stats["Blocked stats<br/>[blockStats.js]"]
  node_discord["Discord RPC<br/>[discordRpc.js]"]
end

subgraph group_discovery["Discovery"]
  node_browse["Browse<br/>[BrowsePage.jsx]"]
  node_home["Home<br/>[HomePage.jsx]"]
  node_search["Search<br/>[SearchModal.jsx]"]
  node_library["Library<br/>[LibraryPage.jsx]"]
  node_media["Media cards<br/>[MediaCard.jsx]"]
  node_api["Metadata API<br/>[api.js]"]
end

subgraph group_playback["Playback"]
  node_movie["Movie details<br/>[MoviePage.jsx]"]
  node_series["Series details<br/>[TVPage.jsx]"]
  node_ratings["Age ratings<br/>[ageRating.js]"]
  node_rating_hook["Rating lookup<br/>[useRatings.js]"]
  node_download_modal["Download controls<br/>[DownloadModal.jsx]"]
  node_downloads["Downloads<br/>[DownloadsPage.jsx]"]
  node_subtitle_modal["Subtitle browser"]
  node_subtitles["Subtitle utilities<br/>[subtitles.js]"]
  node_player_ipc["Player bridge<br/>[player.js]"]
  node_download_ipc["Download bridge<br/>[downloads.js]"]
end

subgraph group_platform["Persistence and platform"]
  node_storage[("Browser storage<br/>[storage.js]")]
  node_ipc_storage["Storage bridge<br/>[storage.js]"]
  node_main["Electron main<br/>[index.js]"]
  node_preload["Preload bridge<br/>[preload.js]"]
  node_popout_preload["Popout bridge<br/>[popout-preload.js]"]
end

node_user(("Viewer"))
node_tmdb{{"TMDB"}}
node_media_source{{"Streaming sources"}}

node_user -->|"opens"| node_app
node_app -->|"requests setup"| node_setup
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_browse
node_app -->|"routes to"| node_library
node_app -->|"routes to"| node_downloads
node_app -->|"routes to"| node_movie
node_app -->|"routes to"| node_series
node_app -->|"routes to"| node_settings
node_home -->|"fetches metadata"| node_api
node_browse -->|"fetches metadata"| node_api
node_search -->|"searches titles"| node_api
node_home -->|"renders cards"| node_media
node_browse -->|"renders cards"| node_media
node_movie -->|"fetches metadata"| node_api
node_series -->|"fetches metadata"| node_api
node_api -->|"requests data"| node_tmdb
node_movie -->|"fetches rating"| node_ratings
node_series -->|"uses ratings"| node_rating_hook
node_rating_hook -->|"fetches ratings"| node_ratings
node_ratings -->|"fetches certificates"| node_api
node_movie -->|"opens downloads"| node_download_modal
node_series -->|"opens downloads"| node_download_modal
node_download_modal -->|"uses utilities"| node_subtitles
node_subtitle_modal -->|"uses utilities"| node_subtitles
node_downloads -->|"opens browser"| node_subtitle_modal
node_download_modal -.->|"downloads media"| node_media_source
node_movie -.->|"plays media"| node_media_source
node_series -.->|"plays episodes"| node_media_source
node_movie -->|"reads and writes"| node_storage
node_series -->|"reads and writes"| node_storage
node_settings -->|"reads and writes"| node_storage
node_settings -->|"configures appearance"| node_appearance
node_settings -->|"uses backup tools"| node_backup
node_settings -->|"opens dialog"| node_update
node_settings -->|"checks updates"| node_updates
node_downloads -->|"reads state"| node_storage
node_app -->|"loads settings"| node_storage
node_main -->|"initializes"| node_blocked_stats
node_main -->|"registers RPC"| node_discord
node_main -.->|"dispatches player IPC"| node_player_ipc
node_main -.->|"dispatches download IPC"| node_download_ipc
node_main -.->|"dispatches storage IPC"| node_ipc_storage
node_preload -.->|"bridges IPC"| node_main
node_popout_preload -.->|"bridges IPC"| node_main

click node_app "https://github.com/egold070799/aureon/blob/main/src/App.jsx"
click node_setup "https://github.com/egold070799/aureon/blob/main/src/components/SetupScreen.jsx"
click node_browse "https://github.com/egold070799/aureon/blob/main/src/pages/BrowsePage.jsx"
click node_home "https://github.com/egold070799/aureon/blob/main/src/pages/HomePage.jsx"
click node_search "https://github.com/egold070799/aureon/blob/main/src/components/SearchModal.jsx"
click node_library "https://github.com/egold070799/aureon/blob/main/src/pages/LibraryPage.jsx"
click node_media "https://github.com/egold070799/aureon/blob/main/src/components/MediaCard.jsx"
click node_api "https://github.com/egold070799/aureon/blob/main/src/utils/api.js"
click node_movie "https://github.com/egold070799/aureon/blob/main/src/pages/MoviePage.jsx"
click node_series "https://github.com/egold070799/aureon/blob/main/src/pages/TVPage.jsx"
click node_ratings "https://github.com/egold070799/aureon/blob/main/src/utils/ageRating.js"
click node_rating_hook "https://github.com/egold070799/aureon/blob/main/src/utils/useRatings.js"
click node_download_modal "https://github.com/egold070799/aureon/blob/main/src/components/DownloadModal.jsx"
click node_downloads "https://github.com/egold070799/aureon/blob/main/src/pages/DownloadsPage.jsx"
click node_subtitle_modal "https://github.com/egold070799/aureon/blob/main/src/components/SubtitleDownloaderModal.jsx"
click node_subtitles "https://github.com/egold070799/aureon/blob/main/src/utils/subtitles.js"
click node_player_ipc "https://github.com/egold070799/aureon/blob/main/src/ipc/player.js"
click node_download_ipc "https://github.com/egold070799/aureon/blob/main/src/ipc/downloads.js"
click node_storage "https://github.com/egold070799/aureon/blob/main/src/utils/storage.js"
click node_ipc_storage "https://github.com/egold070799/aureon/blob/main/src/ipc/storage.js"
click node_main "https://github.com/egold070799/aureon/blob/main/index.js"
click node_preload "https://github.com/egold070799/aureon/blob/main/preload.js"
click node_popout_preload "https://github.com/egold070799/aureon/blob/main/popout-preload.js"
click node_settings "https://github.com/egold070799/aureon/blob/main/src/pages/SettingsPage.jsx"
click node_appearance "https://github.com/egold070799/aureon/blob/main/src/utils/appearance.js"
click node_backup "https://github.com/egold070799/aureon/blob/main/src/utils/backup.js"
click node_update "https://github.com/egold070799/aureon/blob/main/src/components/UpdateModal.jsx"
click node_updates "https://github.com/egold070799/aureon/blob/main/src/utils/updates.js"
click node_blocked_stats "https://github.com/egold070799/aureon/blob/main/src/ipc/blockStats.js"
click node_discord "https://github.com/egold070799/aureon/blob/main/src/ipc/discordRpc.js"

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_setup,node_settings,node_appearance,node_backup,node_update,node_updates,node_blocked_stats,node_discord,node_user toneBlue
class node_browse,node_home,node_search,node_library,node_media,node_api toneAmber
class node_movie,node_series,node_ratings,node_rating_hook,node_download_modal,node_downloads,node_subtitle_modal,node_subtitles,node_player_ipc,node_download_ipc toneMint
class node_storage,node_ipc_storage,node_main,node_preload,node_popout_preload toneRose
class node_tmdb,node_media_source toneIndigo
```

## Components

### Application

- [App shell](https://github.com/egold070799/aureon/blob/main/src/App.jsx): `src/App.jsx`
- [API setup](https://github.com/egold070799/aureon/blob/main/src/components/SetupScreen.jsx): `src/components/SetupScreen.jsx`
- [Settings](https://github.com/egold070799/aureon/blob/main/src/pages/SettingsPage.jsx): `src/pages/SettingsPage.jsx`
- [Appearance](https://github.com/egold070799/aureon/blob/main/src/utils/appearance.js): `src/utils/appearance.js`
- [Backup tools](https://github.com/egold070799/aureon/blob/main/src/utils/backup.js): `src/utils/backup.js`
- [Update dialog](https://github.com/egold070799/aureon/blob/main/src/components/UpdateModal.jsx): `src/components/UpdateModal.jsx`
- [Update checks](https://github.com/egold070799/aureon/blob/main/src/utils/updates.js): `src/utils/updates.js`
- [Blocked stats](https://github.com/egold070799/aureon/blob/main/src/ipc/blockStats.js): `src/ipc/blockStats.js`
- [Discord RPC](https://github.com/egold070799/aureon/blob/main/src/ipc/discordRpc.js): `src/ipc/discordRpc.js`

### Discovery

- [Browse](https://github.com/egold070799/aureon/blob/main/src/pages/BrowsePage.jsx): `src/pages/BrowsePage.jsx`
- [Home](https://github.com/egold070799/aureon/blob/main/src/pages/HomePage.jsx): `src/pages/HomePage.jsx`
- [Search](https://github.com/egold070799/aureon/blob/main/src/components/SearchModal.jsx): `src/components/SearchModal.jsx`
- [Library](https://github.com/egold070799/aureon/blob/main/src/pages/LibraryPage.jsx): `src/pages/LibraryPage.jsx`
- [Media cards](https://github.com/egold070799/aureon/blob/main/src/components/MediaCard.jsx): `src/components/MediaCard.jsx`
- [Metadata API](https://github.com/egold070799/aureon/blob/main/src/utils/api.js): `src/utils/api.js`

### Playback

- [Movie details](https://github.com/egold070799/aureon/blob/main/src/pages/MoviePage.jsx): `src/pages/MoviePage.jsx`
- [Series details](https://github.com/egold070799/aureon/blob/main/src/pages/TVPage.jsx): `src/pages/TVPage.jsx`
- [Age ratings](https://github.com/egold070799/aureon/blob/main/src/utils/ageRating.js): `src/utils/ageRating.js`
- [Rating lookup](https://github.com/egold070799/aureon/blob/main/src/utils/useRatings.js): `src/utils/useRatings.js`
- [Download controls](https://github.com/egold070799/aureon/blob/main/src/components/DownloadModal.jsx): `src/components/DownloadModal.jsx`
- [Downloads](https://github.com/egold070799/aureon/blob/main/src/pages/DownloadsPage.jsx): `src/pages/DownloadsPage.jsx`
- [Subtitle browser](https://github.com/egold070799/aureon/blob/main/src/components/SubtitleDownloaderModal.jsx): `src/components/SubtitleDownloaderModal.jsx`
- [Subtitle utilities](https://github.com/egold070799/aureon/blob/main/src/utils/subtitles.js): `src/utils/subtitles.js`
- [Player bridge](https://github.com/egold070799/aureon/blob/main/src/ipc/player.js): `src/ipc/player.js`
- [Download bridge](https://github.com/egold070799/aureon/blob/main/src/ipc/downloads.js): `src/ipc/downloads.js`

### Persistence and platform

- [Browser storage](https://github.com/egold070799/aureon/blob/main/src/utils/storage.js): `src/utils/storage.js`
- [Storage bridge](https://github.com/egold070799/aureon/blob/main/src/ipc/storage.js): `src/ipc/storage.js`
- [Electron main](https://github.com/egold070799/aureon/blob/main/index.js): `index.js`
- [Preload bridge](https://github.com/egold070799/aureon/blob/main/preload.js): `preload.js`
- [Popout bridge](https://github.com/egold070799/aureon/blob/main/popout-preload.js): `popout-preload.js`

### Other components

- **Viewer**
- **TMDB**
- **Streaming sources**

## Connections

- Viewer → App shell: opens
- App shell → API setup: requests setup (evidence: `src/App.jsx`)
- App shell → Home: routes to (evidence: `src/App.jsx`)
- App shell → Browse: routes to (evidence: `src/App.jsx`)
- App shell → Library: routes to (evidence: `src/App.jsx`)
- App shell → Downloads: routes to (evidence: `src/App.jsx`)
- App shell → Movie details: routes to (evidence: `src/App.jsx`)
- App shell → Series details: routes to (evidence: `src/App.jsx`)
- App shell → Settings: routes to (evidence: `src/App.jsx`)
- Home → Metadata API: fetches metadata (evidence: `src/pages/HomePage.jsx`)
- Browse → Metadata API: fetches metadata (evidence: `src/pages/BrowsePage.jsx`)
- Search → Metadata API: searches titles (evidence: `src/components/SearchModal.jsx`)
- Home → Media cards: renders cards (evidence: `src/pages/HomePage.jsx`)
- Browse → Media cards: renders cards (evidence: `src/pages/BrowsePage.jsx`)
- Movie details → Metadata API: fetches metadata (evidence: `src/pages/MoviePage.jsx`)
- Series details → Metadata API: fetches metadata (evidence: `src/pages/TVPage.jsx`)
- Metadata API → TMDB: requests data (evidence: `src/utils/api.js`)
- Movie details → Age ratings: fetches rating (evidence: `src/pages/MoviePage.jsx`)
- Series details → Rating lookup: uses ratings (evidence: `src/pages/TVPage.jsx`)
- Rating lookup → Age ratings: fetches ratings (evidence: `src/utils/useRatings.js`)
- Age ratings → Metadata API: fetches certificates (evidence: `src/utils/ageRating.js`)
- Movie details → Download controls: opens downloads (evidence: `src/pages/MoviePage.jsx`)
- Series details → Download controls: opens downloads (evidence: `src/pages/TVPage.jsx`)
- Download controls → Subtitle utilities: uses utilities (evidence: `src/components/DownloadModal.jsx`)
- Subtitle browser → Subtitle utilities: uses utilities (evidence: `src/components/SubtitleDownloaderModal.jsx`)
- Downloads → Subtitle browser: opens browser (evidence: `src/pages/DownloadsPage.jsx`)
- Download controls → Streaming sources: downloads media
- Movie details → Streaming sources: plays media
- Series details → Streaming sources: plays episodes
- Movie details → Browser storage: reads and writes (evidence: `src/pages/MoviePage.jsx`)
- Series details → Browser storage: reads and writes (evidence: `src/pages/TVPage.jsx`)
- Settings → Browser storage: reads and writes (evidence: `src/pages/SettingsPage.jsx`)
- Settings → Appearance: configures appearance (evidence: `src/pages/SettingsPage.jsx`)
- Settings → Backup tools: uses backup tools (evidence: `src/pages/SettingsPage.jsx`)
- Settings → Update dialog: opens dialog (evidence: `src/pages/SettingsPage.jsx`)
- Settings → Update checks: checks updates (evidence: `src/pages/SettingsPage.jsx`)
- Downloads → Browser storage: reads state (evidence: `src/pages/DownloadsPage.jsx`)
- App shell → Browser storage: loads settings (evidence: `src/App.jsx`)
- Electron main → Blocked stats: initializes (evidence: `index.js`)
- Electron main → Discord RPC: registers RPC (evidence: `index.js`)
- Electron main → Player bridge: dispatches player IPC (evidence: `index.js`)
- Electron main → Download bridge: dispatches download IPC (evidence: `index.js`)
- Electron main → Storage bridge: dispatches storage IPC (evidence: `index.js`)
- Preload bridge → Electron main: bridges IPC
- Popout bridge → Electron main: bridges IPC
