# creepsooff/nuviodesktop architecture

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

- Interactive diagram: https://gitdiagram.com/creepsooff/nuviodesktop
- Repository: https://github.com/creepsooff/nuviodesktop

## Overview

1. **What this repo is**
   - Nuvio is a **Kotlin Multiplatform / Compose Multiplatform media client**.
   - The core product is shared across **Android, iOS, and desktop**, with native entry points and platform adapters.
   - It is not a backend service; it is a **client app** that aggregates metadata, addon content, watch state, downloads, and playback.

2. **Top-level architectural split**
   - `composeApp/src/commonMain` holds most of the **shared UI, feature logic, repositories, and domain models**.
   - Platform-specific source sets (`androidMain`, `iosMain`, `desktopMain`, plus `androidFull`, `iosFull`, `androidPlaystore`, `iosAppStore`) provide **OS integrations, storage, playback backends, notifications, and build-variant policy**.
   - `iosApp/` is a separate **native Xcode shell** around the shared Kotlin app.
   - `Docs/Stremio addons refer/` documents the addon protocol the app is built around.

3. **Shared core layer**
   - `core/` provides app-wide primitives: **auth, networking, storage, sync, UI theming, i18n, deeplinks, and build policy**.
   - Important abstractions include:
     - `AuthStorage` / `AuthRepository`
     - `NetworkStatusRepository`
     - `SyncManager` / `ProfileSettingsSync`
     - `PlatformImageLoader`, `PlatformBackHandler`, `PlatformExitApp`
   - This layer is where cross-platform behavior is normalized before being specialized per OS.

4. **Feature-driven UI and domain organization**
   - The app is organized by feature modules rather than technical layers.
   - Major feature areas are:
     - **Home** and catalog browsing
     - **Search**
     - **Details** pages
     - **Player**
     - **Streams**
     - **Downloads**
     - **Library**
     - **Collections**
     - **Profiles**
     - **Settings**
     - **Watched / Watch progress**
     - **Notifications**
   - Each feature usually has a `Repository`, `Models`, and one or more Compose screens/components.

5. **Content discovery and metadata flow**
   - Discovery starts in `Home`, `Search`, `Catalog`, and `Details`.
   - Metadata can come from **TMDb**, **Trakt**, **MDBList**, and addon-derived catalogs.
   - The details pipeline includes parsing and shaping metadata via repositories like:
     - `TmdbMetadataService`
     - `MetaDetailsRepository`
     - `Trakt*Repository` classes
     - `MdbListMetadataService`
   - UI screens consume normalized models, not provider-specific payloads.

6. **Stremio addon ecosystem boundary**
   - Addons are a first-class integration point.
   - Shared addon code parses manifests and content IDs, then resolves addon capabilities into **catalog/meta/stream/resource** behavior.
   - The repo includes a dedicated `Docs/Stremio addons refer/` area, which matches the code’s role as a **Stremio addon-compatible client**.
   - Platform source sets supply the “addon platform” pieces needed for networking, crypto, and runtime support.

7. **Playback architecture**
   - Playback is centered around `features/player`.
   - Shared player logic handles:
     - track selection
     - subtitles/audio modes
     - player layout and overlays
     - intro skip / next-episode rules
     - runtime tracing and preferences
   - Platform-specific backends connect shared player state to actual media engines:
     - **Android** uses Media3/ExoPlayer-related integrations.
     - **iOS** bridges to native playback via AVFoundation-style integration.
     - **Desktop** supports both **mpv** and a native bridge backend.
   - Stream resolution happens before playback through `StreamsRepository`, `StreamParser`, and autoplay selection logic.

8. **Stream resolution and launch flow**
   - Streams are treated as a separate subsystem from player rendering.
   - The flow is roughly:
     - content/detail selection
     - stream link parsing and caching
     - autoplay policy selection
     - launch context storage
     - handoff to the player backend
   - `StreamLinkCache*`, `StreamContextStore`, and `StreamLaunchStore` indicate the app deliberately separates **stream discovery** from **playback execution**.

9. **Watch state, progress, and syncing**
   - The app maintains two related but distinct state families:
     - **Watched** state
     - **Watch progress / continue watching**
   - These are managed by repositories, rules, and storage layers in `features/watched` and `features/watchprogress`.
   - Sync adapters bridge local state to external services:
     - **Supabase**
     - **Trakt**
   - `SyncManager` and `SyncPlatform` suggest sync is coordinated centrally, then fanned out through provider-specific adapters.

10. **Downloads and notifications**
   - Downloads are a separate subsystem with storage, live status, and platform downloader implementations.
   - Android includes notification receivers/workers for background progress updates.
   - iOS includes a **Downloads Widget / Live Activity extension** in `iosApp/DownloadsWidgetExtension`.
   - This implies a split between:
     - shared download state and UI
     - platform execution and notification surfaces

11. **Profiles, auth, and local persistence**
   - Profiles are strongly scoped and backed by local storage plus crypto helpers for secrets/PINs.
   - Auth and profile data are persisted through platform-specific storages in each OS source set.
   - `LocalAccountDataCleaner` and `ProfileScopedKey` show the app manages **per-profile local data separation** rather than one global account blob.

12. **Platform-specific architecture boundaries**
   - `androidMain`, `iosMain`, and `desktopMain` supply the concrete implementation of:
     - storage
     - UI affordances
     - foreground/background monitoring
     - image loading
     - app lifecycle/back navigation
     - updater hooks
   - `androidFull` / `iosFull` and store-specific variants imply **feature gating by build target**, not just by OS.
   - `AppFeaturePolicy.*` files are the key switchboard for what features are available in each distribution.

13. **Desktop-specific runtime**
   - Desktop has its own runtime shell: window state, URI handling, single-instance management, and native bootstrap code.
   - Player backends are more elaborate here, with both **mpv** and **native bridge** implementations.
   - This makes desktop the most infrastructure-heavy target in terms of runtime orchestration.

14. **Testing and validation**
   - `commonTest` contains broad unit coverage for parsers, rules, repositories, and UI helpers.
   - Tests focus on **domain behavior and data transformations**, which fits the app’s architecture: shared logic is meant to be portable and testable outside the platform layers.

15. **How to draw the architecture**
   - A good diagram would show:
     - **Shared Compose app** in the center
     - feature modules radiating out from it
     - **platform adapters** on the sides for Android, iOS, and desktop
     - external services at the edge: **Stremio addons, TMDb, Trakt, MDBList, Supabase**
     - playback engines and download/notification systems as separate platform-bound execution paths
   - The main data flow is: **UI → repository/domain logic → local storage and external services → normalized models → UI**, with playback and sync as the two major side-effect-heavy pipelines.

Main entry points: [`composeApp/src/commonMain/kotlin/com/nuvio/app/features`](https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features) (Features), [`composeApp/src/commonMain/kotlin/com/nuvio/app/features/player`](https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/player) (Player), [`composeApp/src/commonMain/kotlin/com/nuvio/app/features/settings`](https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/settings) (Settings), [`composeApp/src/commonMain/kotlin/com/nuvio/app/features/addons`](https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/addons) (Addons)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shared["Shared app"]
  node_app_shell["Compose app<br/>KMP app shell<br/>[App.kt]"]
  node_core_primitives["Core<br/>shared primitives"]
  node_feature_hub["Features<br/>feature modules"]
  node_home_browse["Home<br/>discovery UI"]
  node_search_discovery["Search<br/>discovery UI"]
  node_details_meta["Details<br/>metadata UI"]
  node_streams_flow["Streams<br/>stream resolution"]
  node_player_core["Player<br/>playback logic"]
  node_downloads_sync["Downloads<br/>download subsystem"]
  node_watch_state["Watching<br/>progress state"]
  node_profiles_auth["Profiles<br/>account scope"]
  node_settings_panel["Settings"]
  node_addons_boundary["Addons<br/>stremio integration"]
end

subgraph group_platforms["Platform targets"]
  node_android_target["Android<br/>platform runtime<br/>[MainActivity.kt]"]
  node_ios_target["iOS<br/>platform runtime"]
  node_desktop_target["Desktop<br/>platform runtime<br/>[DesktopApp.kt]"]
end

subgraph group_external["External services"]
  node_tmdb_provider[("TMDb<br/>metadata provider")]
  node_trakt_provider[("Trakt<br/>sync/provider")]
  node_mdblist_provider[("MDBList<br/>catalog provider")]
  node_supabase_sync[("Supabase<br/>sync backend")]
  node_docs_addons["Addon docs<br/>protocol docs<br/>[README.md]"]
end

subgraph group_nativeios["Native iOS shell"]
  node_ios_shell["iOS shell<br/>Swift host<br/>[iOSApp.swift]"]
end

node_app_shell -->|"uses"| node_core_primitives
node_app_shell -->|"composes"| node_feature_hub
node_feature_hub -->|"includes"| node_home_browse
node_feature_hub -->|"includes"| node_search_discovery
node_feature_hub -->|"includes"| node_details_meta
node_feature_hub -->|"includes"| node_streams_flow
node_feature_hub -->|"includes"| node_player_core
node_feature_hub -->|"includes"| node_downloads_sync
node_feature_hub -->|"includes"| node_watch_state
node_feature_hub -->|"includes"| node_profiles_auth
node_feature_hub -->|"includes"| node_settings_panel
node_feature_hub -->|"includes"| node_addons_boundary
node_home_browse -->|"reads metadata"| node_tmdb_provider
node_search_discovery -->|"discovers"| node_addons_boundary
node_details_meta -->|"normalizes"| node_tmdb_provider
node_details_meta -->|"enriches"| node_trakt_provider
node_streams_flow -->|"resolves streams"| node_addons_boundary
node_player_core -->|"consumes"| node_streams_flow
node_watch_state -->|"syncs"| node_trakt_provider
node_watch_state -->|"syncs"| node_supabase_sync
node_settings_panel -->|"configures"| node_tmdb_provider
node_settings_panel -->|"configures"| node_trakt_provider
node_settings_panel -->|"configures"| node_mdblist_provider
node_settings_panel -->|"configures"| node_addons_boundary
node_android_target -->|"binds engine"| node_player_core
node_android_target -->|"runs downloads"| node_downloads_sync
node_android_target -->|"implements"| node_core_primitives
node_ios_target -->|"binds engine"| node_player_core
node_ios_target -->|"runs downloads"| node_downloads_sync
node_ios_target -->|"implements"| node_core_primitives
node_desktop_target -->|"binds engine"| node_player_core
node_desktop_target -->|"implements"| node_core_primitives
node_ios_shell -->|"hosts"| node_ios_target
node_ios_shell -->|"bridges player"| node_player_core
node_docs_addons -.->|"documents"| node_addons_boundary

click node_app_shell "https://github.com/creepsooff/nuviodesktop/blob/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/App.kt"
click node_core_primitives "https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/core"
click node_feature_hub "https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features"
click node_home_browse "https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/home"
click node_search_discovery "https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/search"
click node_details_meta "https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/details"
click node_streams_flow "https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/streams"
click node_player_core "https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/player"
click node_downloads_sync "https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/downloads"
click node_watch_state "https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/watching"
click node_profiles_auth "https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/profiles"
click node_settings_panel "https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/settings"
click node_addons_boundary "https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/addons"
click node_tmdb_provider "https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/tmdb"
click node_trakt_provider "https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/trakt"
click node_mdblist_provider "https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/mdblist"
click node_supabase_sync "https://github.com/creepsooff/nuviodesktop/blob/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/core/network/SupabaseProvider.kt"
click node_android_target "https://github.com/creepsooff/nuviodesktop/blob/windows-experimental/composeApp/src/androidMain/kotlin/com/nuvio/app/MainActivity.kt"
click node_ios_target "https://github.com/creepsooff/nuviodesktop/blob/windows-experimental/composeApp/src/iosMain/kotlin/com/nuvio/app/MainViewController.kt"
click node_desktop_target "https://github.com/creepsooff/nuviodesktop/blob/windows-experimental/composeApp/src/desktopMain/kotlin/com/nuvio/app/DesktopApp.kt"
click node_ios_shell "https://github.com/creepsooff/nuviodesktop/blob/windows-experimental/iosApp/iosApp/iOSApp.swift"
click node_docs_addons "https://github.com/creepsooff/nuviodesktop/blob/windows-experimental/Docs/Stremio addons refer/README.md"

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_shell,node_core_primitives,node_feature_hub,node_home_browse,node_search_discovery,node_details_meta,node_streams_flow,node_player_core,node_downloads_sync,node_watch_state,node_profiles_auth,node_settings_panel,node_addons_boundary toneBlue
class node_android_target,node_ios_target,node_desktop_target toneAmber
class node_tmdb_provider,node_trakt_provider,node_mdblist_provider,node_supabase_sync,node_docs_addons toneMint
class node_ios_shell toneRose
```

## Components

### Shared app

Multiplatform Kotlin app with common UI, domain logic, and feature modules.

- [Compose app](https://github.com/creepsooff/nuviodesktop/blob/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/App.kt): KMP app shell · Shared Compose Multiplatform application entry and top-level UI composition. · `composeApp/src/commonMain/kotlin/com/nuvio/app/App.kt`
- [Core](https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/core): shared primitives · Cross-cutting app primitives for auth, networking, storage, sync, theming, i18n, deeplinks, and platform abstraction. · `composeApp/src/commonMain/kotlin/com/nuvio/app/core`
- [Features](https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features): feature modules · Feature-driven shared screens, repositories, models, and flows. · `composeApp/src/commonMain/kotlin/com/nuvio/app/features`
- [Home](https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/home): discovery UI · Homepage, catalog definitions, and continue-watching surfacing. · `composeApp/src/commonMain/kotlin/com/nuvio/app/features/home`
- [Search](https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/search): discovery UI · Search history and discovery entry point for content lookup. · `composeApp/src/commonMain/kotlin/com/nuvio/app/features/search`
- [Details](https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/details): metadata UI · Metadata shaping, detail pages, series rules, trailers, and related content views. · `composeApp/src/commonMain/kotlin/com/nuvio/app/features/details`
- [Streams](https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/streams): stream resolution · Stream parsing, cache, autoplay policy, and launch context management before playback. · `composeApp/src/commonMain/kotlin/com/nuvio/app/features/streams`
- [Player](https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/player): playback logic · Shared playback state, controls, subtitles, track selection, skip rules, and runtime tracing. · `composeApp/src/commonMain/kotlin/com/nuvio/app/features/player`
- [Downloads](https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/downloads): download subsystem · Shared download state, repository, storage, and live status coordination. · `composeApp/src/commonMain/kotlin/com/nuvio/app/features/downloads`
- [Watching](https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/watching): progress state · Watched and watch-progress logic, rules, and sync adapters for continuity. · `composeApp/src/commonMain/kotlin/com/nuvio/app/features/watching`
- [Profiles](https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/profiles): account scope · Profile selection, PIN handling, avatars, and per-profile storage boundaries. · `composeApp/src/commonMain/kotlin/com/nuvio/app/features/profiles`
- [Settings](https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/settings): app settings · Feature gating, integrations, playback, appearance, notifications, and provider settings. · `composeApp/src/commonMain/kotlin/com/nuvio/app/features/settings`
- [Addons](https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/addons): stremio integration · Addon manifest parsing, repository, transport URLs, and addon-facing screens. · `composeApp/src/commonMain/kotlin/com/nuvio/app/features/addons`

### Platform targets

Android, iOS, and desktop entry points plus OS-specific adapters and runtimes.

- [Android](https://github.com/creepsooff/nuviodesktop/blob/windows-experimental/composeApp/src/androidMain/kotlin/com/nuvio/app/MainActivity.kt): platform runtime · Android entry point, storage, lifecycle, notifications, downloads, and Media3/ExoPlayer playback bindings. · `composeApp/src/androidMain/kotlin/com/nuvio/app/MainActivity.kt`
- [iOS](https://github.com/creepsooff/nuviodesktop/blob/windows-experimental/composeApp/src/iosMain/kotlin/com/nuvio/app/MainViewController.kt): platform runtime · iOS entry point, native storage, foreground monitoring, playback bridge, and widget/live activity support. · `composeApp/src/iosMain/kotlin/com/nuvio/app/MainViewController.kt`
- [Desktop](https://github.com/creepsooff/nuviodesktop/blob/windows-experimental/composeApp/src/desktopMain/kotlin/com/nuvio/app/DesktopApp.kt): platform runtime · Desktop bootstrap, window/URI handling, single-instance management, and player backend orchestration. · `composeApp/src/desktopMain/kotlin/com/nuvio/app/DesktopApp.kt`

### External services

Metadata, sync, addon, and playback dependencies the client integrates with.

- [TMDb](https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/tmdb): metadata provider · TMDb service and settings used for metadata enrichment and browsing. · `composeApp/src/commonMain/kotlin/com/nuvio/app/features/tmdb`
- [Trakt](https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/trakt): sync/provider · Trakt auth, comments, library, scrobble, progress, and list integration. · `composeApp/src/commonMain/kotlin/com/nuvio/app/features/trakt`
- [MDBList](https://github.com/creepsooff/nuviodesktop/tree/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/features/mdblist): catalog provider · MDBList metadata/settings used for list-driven discovery. · `composeApp/src/commonMain/kotlin/com/nuvio/app/features/mdblist`
- [Supabase](https://github.com/creepsooff/nuviodesktop/blob/windows-experimental/composeApp/src/commonMain/kotlin/com/nuvio/app/core/network/SupabaseProvider.kt): sync backend · Remote backend used by sync and watched/progress adapters. · `composeApp/src/commonMain/kotlin/com/nuvio/app/core/network/SupabaseProvider.kt`
- [Addon docs](https://github.com/creepsooff/nuviodesktop/blob/HEAD/Docs/Stremio%20addons%20refer/README.md): protocol docs · Reference documentation for the Stremio addon protocol and deep-link behavior. · `Docs/Stremio addons refer/README.md`

### Native iOS shell

Swift/Xcode host and iOS-only extension surfaces around the shared app.

- [iOS shell](https://github.com/creepsooff/nuviodesktop/blob/windows-experimental/iosApp/iosApp/iOSApp.swift): Swift host · Native Xcode wrapper around the shared Kotlin app plus iOS-specific extensions and player bridge. · `iosApp/iosApp/iOSApp.swift`

## Connections

- Compose app → Core: uses · Top-level UI depends on shared app primitives.
- Compose app → Features: composes · Shared app composes feature modules.
- Features → Home: includes · Home is a major feature area.
- Features → Search: includes · Search is a major feature area.
- Features → Details: includes · Details and metadata are a major feature area.
- Features → Streams: includes · Stream discovery and launch are a major feature area.
- Features → Player: includes · Playback is a major feature area.
- Features → Downloads: includes · Downloads are a major feature area.
- Features → Watching: includes · Watched and progress tracking are a major feature area.
- Features → Profiles: includes · Profiles and auth scope are a major feature area.
- Features → Settings: includes · Settings organize most app configuration.
- Features → Addons: includes · Addon integration is a first-class feature boundary.
- Home → TMDb: reads metadata · Home catalogs can be enriched by TMDb.
- Search → Addons: discovers · Search can route through addon content.
- Details → TMDb: normalizes · Details resolve metadata through TMDb.
- Details → Trakt: enriches · Details consume Trakt comments, lists, and related data.
- Streams → Addons: resolves streams · Streams come from addon-derived capabilities and content IDs.
- Player → Streams: consumes · Player receives resolved streams and launch context.
- Watching → Trakt: syncs · Watched/progress state syncs to Trakt.
- Watching → Supabase: syncs · Watched/progress state also syncs through Supabase adapters.
- Settings → TMDb: configures · Settings include TMDb integration.
- Settings → Trakt: configures · Settings include Trakt integration.
- Settings → MDBList: configures · Settings include MDBList integration.
- Settings → Addons: configures · Settings manage addon behavior.
- Android → Player: binds engine · Android connects shared playback logic to Media3/ExoPlayer integrations.
- Android → Downloads: runs downloads · Android provides downloader, live status, and notification surfaces.
- Android → Core: implements · Android supplies platform-specific core adapters.
- iOS → Player: binds engine · iOS bridges shared playback logic to native playback.
- iOS → Downloads: runs downloads · iOS supplies download live-activity surfaces and storage.
- iOS → Core: implements · iOS supplies platform-specific core adapters.
- Desktop → Player: binds engine · Desktop orchestrates mpv and native bridge player backends.
- Desktop → Core: implements · Desktop supplies runtime, windowing, and lifecycle adapters.
- iOS shell → iOS: hosts · Native Swift shell embeds the shared iOS target.
- iOS shell → Player: bridges player · Swift player bridge connects to shared playback.
- Addon docs → Addons: documents · Protocol docs describe the addon boundary implemented in code.
