# matheus-caldeira/cleanyourtv-ui architecture

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

- Interactive diagram: https://gitdiagram.com/matheus-caldeira/cleanyourtv-ui
- Repository: https://github.com/matheus-caldeira/cleanyourtv-ui

## Overview

CleanYourTV UI combines the retained CleanYourTV TV-debloating tools and minimal launcher with a richer Android TV home screen. The main user flow is home-screen browsing into Explore: search or filter catalogs, inspect a title, manage a TMDB list, then open a supported streaming app. Home, remote configuration, weather, screensaver, and optional integrations are meaningful parallel capabilities. The README documents most of these flows; source excerpts are limited, so edges for those features cite the README rather than implying uninspected implementation details.

Main entry points: [`launcher-ui/app/src/io/cleanyourtv/ui`](https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui) (Home screen), [`tools`](https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/tools) (Computer setup), [`launcher-ui`](https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui) (TV configuration), [`launcher-ui/app/src/io/cleanyourtv/ui/ServicesActivity.java`](https://github.com/matheus-caldeira/cleanyourtv-ui/blob/main/launcher-ui/app/src/io/cleanyourtv/ui/ServicesActivity.java) (Service settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_home["Home screen"]
  node_homeui["Home screen"]
  node_shelf["App shelf"]
  node_homecontent["Picks and Continue Watching"]
  node_weather["Weather and theme"]
  node_photos["Photo screensaver"]
end

subgraph group_explore["Explore and discovery"]
  node_explore["Explore navigation"]
  node_catalog["Catalogs and top 10"]
  node_search["Search and filters"]
  node_title["Title details"]
  node_lists["TMDB lists"]
  node_streaming["Streaming handoff"]
end

subgraph group_settings["Configuration and remote"]
  node_services["Service settings"]
  node_remote["Remote key service"]
  node_config["TV configuration"]
end

subgraph group_system["TV setup and integrations"]
  node_clean["CleanYourTV debloat"]
  node_adb["Computer setup"]
end

node_viewer(("TV viewer"))
node_tmdb["TMDB"]
node_wikidata["Wikidata"]
node_meteo["Open-Meteo"]
node_tvapps["Installed streaming apps"]

node_viewer -->|"uses"| node_homeui
node_homeui -->|"shows"| node_shelf
node_homeui -->|"shows"| node_homecontent
node_homeui -->|"opens"| node_explore
node_homeui -->|"shows"| node_weather
node_homeui -->|"offers"| node_photos
node_homecontent -->|"fetches picks"| node_tmdb
node_homecontent -.->|"reads Watch Next"| node_tvapps
node_explore -->|"opens"| node_catalog
node_explore -->|"opens"| node_search
node_catalog -->|"fetches titles"| node_tmdb
node_search -->|"queries"| node_tmdb
node_title -->|"loads details"| node_tmdb
node_title -->|"updates"| node_lists
node_title -->|"offers watch"| node_streaming
node_streaming -->|"resolves service IDs"| node_wikidata
node_streaming -->|"opens title"| node_tvapps
node_weather -->|"fetches weather"| node_meteo
node_viewer -->|"configures"| node_services
node_viewer -->|"presses keys"| node_remote
node_config -->|"configures"| node_homeui
node_adb -->|"pushes config"| node_config
node_adb -->|"runs setup"| node_clean

click node_homeui "https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui"
click node_shelf "https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui"
click node_homecontent "https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui"
click node_weather "https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui"
click node_photos "https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui"
click node_explore "https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui"
click node_catalog "https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui"
click node_search "https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui"
click node_title "https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui"
click node_lists "https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui"
click node_streaming "https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui"
click node_services "https://github.com/matheus-caldeira/cleanyourtv-ui/blob/main/launcher-ui/app/src/io/cleanyourtv/ui/ServicesActivity.java"
click node_remote "https://github.com/matheus-caldeira/cleanyourtv-ui/blob/main/launcher-ui/app/src/io/cleanyourtv/ui/RemoteKeyService.java"
click node_config "https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui"
click node_clean "https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher"
click node_adb "https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/tools"

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_homeui,node_shelf,node_homecontent,node_weather,node_photos,node_viewer toneBlue
class node_explore,node_catalog,node_search,node_title,node_lists,node_streaming toneAmber
class node_services,node_remote,node_config toneMint
class node_clean,node_adb toneRose
class node_tmdb,node_wikidata,node_meteo,node_tvapps toneIndigo
```

## Components

### Home screen

- [Home screen](https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui): `launcher-ui/app/src/io/cleanyourtv/ui`
- [App shelf](https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui): `launcher-ui/app/src/io/cleanyourtv/ui`
- [Picks and Continue Watching](https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui): `launcher-ui/app/src/io/cleanyourtv/ui`
- [Weather and theme](https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui): `launcher-ui/app/src/io/cleanyourtv/ui`
- [Photo screensaver](https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui): `launcher-ui/app/src/io/cleanyourtv/ui`

### Explore and discovery

- [Explore navigation](https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui): `launcher-ui/app/src/io/cleanyourtv/ui`
- [Catalogs and top 10](https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui): `launcher-ui/app/src/io/cleanyourtv/ui`
- [Search and filters](https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui): `launcher-ui/app/src/io/cleanyourtv/ui`
- [Title details](https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui): `launcher-ui/app/src/io/cleanyourtv/ui`
- [TMDB lists](https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui): `launcher-ui/app/src/io/cleanyourtv/ui`
- [Streaming handoff](https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui/app/src/io/cleanyourtv/ui): `launcher-ui/app/src/io/cleanyourtv/ui`

### Configuration and remote

- [Service settings](https://github.com/matheus-caldeira/cleanyourtv-ui/blob/main/launcher-ui/app/src/io/cleanyourtv/ui/ServicesActivity.java): `launcher-ui/app/src/io/cleanyourtv/ui/ServicesActivity.java`
- [Remote key service](https://github.com/matheus-caldeira/cleanyourtv-ui/blob/main/launcher-ui/app/src/io/cleanyourtv/ui/RemoteKeyService.java): `launcher-ui/app/src/io/cleanyourtv/ui/RemoteKeyService.java`
- [TV configuration](https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher-ui): `launcher-ui`

### TV setup and integrations

- [CleanYourTV debloat](https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/launcher): `launcher`
- [Computer setup](https://github.com/matheus-caldeira/cleanyourtv-ui/tree/main/tools): `tools`

### Other components

- **TV viewer**
- **TMDB**
- **Wikidata**
- **Open-Meteo**
- **Installed streaming apps**

## Connections

- TV viewer → Home screen: uses (evidence: `README.md`)
- Home screen → App shelf: shows (evidence: `README.md`)
- Home screen → Picks and Continue Watching: shows (evidence: `README.md`)
- Home screen → Explore navigation: opens (evidence: `README.md`)
- Home screen → Weather and theme: shows (evidence: `README.md`)
- Home screen → Photo screensaver: offers (evidence: `README.md`)
- Picks and Continue Watching → TMDB: fetches picks (evidence: `README.md`)
- Picks and Continue Watching → Installed streaming apps: reads Watch Next (evidence: `README.md`)
- Explore navigation → Catalogs and top 10: opens (evidence: `README.md`)
- Explore navigation → Search and filters: opens (evidence: `README.md`)
- Catalogs and top 10 → TMDB: fetches titles (evidence: `README.md`)
- Search and filters → TMDB: queries (evidence: `README.md`)
- Title details → TMDB: loads details (evidence: `README.md`)
- Title details → TMDB lists: updates (evidence: `README.md`)
- Title details → Streaming handoff: offers watch (evidence: `README.md`)
- Streaming handoff → Wikidata: resolves service IDs (evidence: `README.md`)
- Streaming handoff → Installed streaming apps: opens title (evidence: `README.md`)
- Weather and theme → Open-Meteo: fetches weather (evidence: `README.md`)
- TV viewer → Service settings: configures (evidence: `launcher-ui/app/src/io/cleanyourtv/ui/ServicesActivity.java`)
- TV viewer → Remote key service: presses keys (evidence: `README.md`)
- TV configuration → Home screen: configures (evidence: `README.md`)
- Computer setup → TV configuration: pushes config (evidence: `README.md`)
- Computer setup → CleanYourTV debloat: runs setup (evidence: `README.md`)
