# fellowbee/fy architecture

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

- Interactive diagram: https://gitdiagram.com/fellowbee/fy
- Repository: https://github.com/fellowbee/fy

## Overview

Fy is an Android live-TV browser and player. A user opens the category view, selects a category, browses or filters its parsed channels, and selects a channel to play. The ViewModel retrieves category and playlist data, decrypts responses when needed, and parses M3U metadata; the UI also supports refresh, channel search/group filtering, network-loaded artwork, and a dedicated player screen. The source excerpts show the main data and navigation links, but do not expose enough of the player setup to map its playback dependencies in detail.

Main entry points: [`app/src/main/java/com/solo/fy/MainActivity.kt`](https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/MainActivity.kt) (App router), [`app/src/main/java/com/solo/fy/MainViewModel.kt`](https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/MainViewModel.kt) (Content state), [`app/src/main/java/com/solo/fy/ui/components/NetworkImage.kt`](https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/ui/components/NetworkImage.kt) (Network artwork), [`app/src/main/java/com/solo/fy/ui/screens/ChannelListScreen.kt`](https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/ui/screens/ChannelListScreen.kt) (Channel list)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Browsing and navigation"]
  node_activity["App router<br/>[MainActivity.kt]"]
  node_category_screen["Categories<br/>[CategoryScreen.kt]"]
  node_channel_grid["Channel grid"]
  node_channel_list["Channel list"]
end

subgraph group_content["Content retrieval"]
  node_viewmodel["Content state<br/>[MainViewModel.kt]"]
  node_network["Fetch and decrypt<br/>[NetworkClient.kt]"]
  node_parser["M3U parser<br/>[M3uParser.kt]"]
end

subgraph group_playback["Playback"]
  node_player["Player screen<br/>[PlayerScreen.kt]"]
end

subgraph group_presentation["Shared presentation"]
  node_network_image["Network artwork<br/>[NetworkImage.kt]"]
  node_colors["Color palette<br/>[Color.kt]"]
  node_typography["Typography<br/>[Type.kt]"]
end

node_viewer(("Viewer"))
node_catalog_service["Category and playlist service"]
node_artwork_service["Artwork hosts"]

node_viewer -->|"opens app"| node_activity
node_activity -->|"routes to"| node_category_screen
node_activity -->|"routes to"| node_channel_grid
node_activity -->|"routes to"| node_player
node_category_screen -->|"refreshes categories"| node_viewmodel
node_channel_grid -->|"refreshes channels"| node_viewmodel
node_viewmodel -->|"fetches and decrypts"| node_network
node_viewmodel -->|"parses playlists"| node_parser
node_network -->|"requests content"| node_catalog_service
node_channel_list -->|"fetches and decrypts"| node_network
node_channel_list -->|"parses playlist"| node_parser
node_category_screen -->|"renders artwork"| node_network_image
node_channel_grid -->|"renders artwork"| node_network_image
node_channel_list -->|"renders artwork"| node_network_image
node_network_image -->|"loads images"| node_artwork_service
node_player -->|"uses palette"| node_colors
node_player -->|"uses typography"| node_typography

click node_activity "https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/MainActivity.kt"
click node_category_screen "https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/ui/screens/CategoryScreen.kt"
click node_channel_grid "https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/ui/screens/ChannelGridScreen.kt"
click node_channel_list "https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/ui/screens/ChannelListScreen.kt"
click node_viewmodel "https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/MainViewModel.kt"
click node_network "https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/network/NetworkClient.kt"
click node_parser "https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/m3u/M3uParser.kt"
click node_network_image "https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/ui/components/NetworkImage.kt"
click node_player "https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/ui/screens/PlayerScreen.kt"
click node_colors "https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/ui/theme/Color.kt"
click node_typography "https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/ui/theme/Type.kt"

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_activity,node_category_screen,node_channel_grid,node_channel_list,node_viewer toneBlue
class node_viewmodel,node_network,node_parser toneAmber
class node_player toneMint
class node_network_image,node_colors,node_typography toneRose
class node_catalog_service,node_artwork_service toneIndigo
```

## Components

### Browsing and navigation

- [App router](https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/MainActivity.kt): `app/src/main/java/com/solo/fy/MainActivity.kt`
- [Categories](https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/ui/screens/CategoryScreen.kt): `app/src/main/java/com/solo/fy/ui/screens/CategoryScreen.kt`
- [Channel grid](https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/ui/screens/ChannelGridScreen.kt): `app/src/main/java/com/solo/fy/ui/screens/ChannelGridScreen.kt`
- [Channel list](https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/ui/screens/ChannelListScreen.kt): `app/src/main/java/com/solo/fy/ui/screens/ChannelListScreen.kt`

### Content retrieval

- [Content state](https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/MainViewModel.kt): `app/src/main/java/com/solo/fy/MainViewModel.kt`
- [Fetch and decrypt](https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/network/NetworkClient.kt): `app/src/main/java/com/solo/fy/network/NetworkClient.kt`
- [M3U parser](https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/m3u/M3uParser.kt): `app/src/main/java/com/solo/fy/m3u/M3uParser.kt`

### Playback

- [Player screen](https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/ui/screens/PlayerScreen.kt): `app/src/main/java/com/solo/fy/ui/screens/PlayerScreen.kt`

### Shared presentation

- [Network artwork](https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/ui/components/NetworkImage.kt): `app/src/main/java/com/solo/fy/ui/components/NetworkImage.kt`
- [Color palette](https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/ui/theme/Color.kt): `app/src/main/java/com/solo/fy/ui/theme/Color.kt`
- [Typography](https://github.com/fellowbee/fy/blob/main/app/src/main/java/com/solo/fy/ui/theme/Type.kt): `app/src/main/java/com/solo/fy/ui/theme/Type.kt`

### Other components

- **Viewer**
- **Category and playlist service**
- **Artwork hosts**

## Connections

- Viewer → App router: opens app
- App router → Categories: routes to (evidence: `app/src/main/java/com/solo/fy/MainActivity.kt`)
- App router → Channel grid: routes to (evidence: `app/src/main/java/com/solo/fy/MainActivity.kt`)
- App router → Player screen: routes to (evidence: `app/src/main/java/com/solo/fy/MainActivity.kt`)
- Categories → Content state: refreshes categories (evidence: `app/src/main/java/com/solo/fy/ui/screens/CategoryScreen.kt`)
- Channel grid → Content state: refreshes channels (evidence: `app/src/main/java/com/solo/fy/ui/screens/ChannelGridScreen.kt`)
- Content state → Fetch and decrypt: fetches and decrypts (evidence: `app/src/main/java/com/solo/fy/MainViewModel.kt`)
- Content state → M3U parser: parses playlists (evidence: `app/src/main/java/com/solo/fy/MainViewModel.kt`)
- Fetch and decrypt → Category and playlist service: requests content
- Channel list → Fetch and decrypt: fetches and decrypts (evidence: `app/src/main/java/com/solo/fy/ui/screens/ChannelListScreen.kt`)
- Channel list → M3U parser: parses playlist (evidence: `app/src/main/java/com/solo/fy/ui/screens/ChannelListScreen.kt`)
- Categories → Network artwork: renders artwork (evidence: `app/src/main/java/com/solo/fy/ui/screens/CategoryScreen.kt`)
- Channel grid → Network artwork: renders artwork (evidence: `app/src/main/java/com/solo/fy/ui/screens/ChannelGridScreen.kt`)
- Channel list → Network artwork: renders artwork (evidence: `app/src/main/java/com/solo/fy/ui/screens/ChannelListScreen.kt`)
- Network artwork → Artwork hosts: loads images (evidence: `app/src/main/java/com/solo/fy/ui/components/NetworkImage.kt`)
- Player screen → Color palette: uses palette (evidence: `app/src/main/java/com/solo/fy/ui/screens/PlayerScreen.kt`)
- Player screen → Typography: uses typography (evidence: `app/src/main/java/com/solo/fy/ui/screens/PlayerScreen.kt`)
