# saqlainraza14/iptv-webos-player architecture

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

- Interactive diagram: https://gitdiagram.com/saqlainraza14/iptv-webos-player
- Repository: https://github.com/saqlainraza14/iptv-webos-player

## Overview

TV Navigator is a client-side webOS IPTV player. Users add and validate an Xtream or M3U source, then browse cached Live TV, Movies, and Series catalogs, search and manage favorites/history, and play streams with resume support. The sampled app.js excerpt confirms IndexedDB source persistence and player integrations; the README documents catalog, EPG, multi-source, search, and playback capabilities not fully visible in excerpts. Edges are limited to documented or excerpted relationships.

Main entry points: [`app.js`](https://github.com/saqlainraza14/iptv-webos-player/blob/main/app.js) (Player application), [`login.js`](https://github.com/saqlainraza14/iptv-webos-player/blob/main/login.js) (Source onboarding), [`polyfills.js`](https://github.com/saqlainraza14/iptv-webos-player/blob/main/polyfills.js) (Browser compatibility)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Source setup"]
  node_setup_ui["Source onboarding<br/>[login.js]"]
  node_credentials["Xtream and M3U<br/>[login.js]"]
end

subgraph group_catalog["Catalog and discovery"]
  node_main_app["Player application<br/>[app.js]"]
  node_live["Live TV and EPG<br/>[app.js]"]
  node_movies["Movie catalog<br/>[app.js]"]
  node_series["Series catalog<br/>[app.js]"]
  node_search["Global search<br/>[app.js]"]
  node_user_library["Favorites and history<br/>[app.js]"]
  node_catalog_cache[("Catalog cache<br/>[app.js]")]
end

subgraph group_playback["Playback"]
  node_stream_player["Stream playback<br/>[app.js]"]
  node_hls["HLS engine"]
  node_mpegts["MPEG-TS engine"]
end

subgraph group_platform["TV runtime"]
  node_webos{{"webOS services"}}
  node_compat["Browser compatibility<br/>[polyfills.js]"]
end

node_viewer(("TV viewer"))
node_portal{{"IPTV provider"}}

node_viewer -->|"adds source"| node_setup_ui
node_setup_ui -->|"validates"| node_credentials
node_credentials -->|"requests catalog"| node_portal
node_viewer -->|"browses"| node_main_app
node_main_app -->|"opens"| node_live
node_main_app -->|"opens"| node_movies
node_main_app -->|"opens"| node_series
node_main_app -->|"searches"| node_search
node_main_app -->|"manages"| node_user_library
node_main_app -->|"caches sources"| node_catalog_cache
node_main_app -->|"plays selection"| node_stream_player
node_stream_player -.->|"uses"| node_hls
node_stream_player -->|"uses"| node_mpegts
node_stream_player -->|"invokes services"| node_webos
node_main_app -.->|"relies on shims"| node_compat

click node_setup_ui "https://github.com/saqlainraza14/iptv-webos-player/blob/main/login.js"
click node_credentials "https://github.com/saqlainraza14/iptv-webos-player/blob/main/login.js"
click node_main_app "https://github.com/saqlainraza14/iptv-webos-player/blob/main/app.js"
click node_live "https://github.com/saqlainraza14/iptv-webos-player/blob/main/app.js"
click node_movies "https://github.com/saqlainraza14/iptv-webos-player/blob/main/app.js"
click node_series "https://github.com/saqlainraza14/iptv-webos-player/blob/main/app.js"
click node_search "https://github.com/saqlainraza14/iptv-webos-player/blob/main/app.js"
click node_user_library "https://github.com/saqlainraza14/iptv-webos-player/blob/main/app.js"
click node_catalog_cache "https://github.com/saqlainraza14/iptv-webos-player/blob/main/app.js"
click node_stream_player "https://github.com/saqlainraza14/iptv-webos-player/blob/main/app.js"
click node_compat "https://github.com/saqlainraza14/iptv-webos-player/blob/main/polyfills.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_setup_ui,node_credentials,node_viewer toneBlue
class node_main_app,node_live,node_movies,node_series,node_search,node_user_library,node_catalog_cache toneAmber
class node_stream_player,node_hls,node_mpegts toneMint
class node_webos,node_compat toneRose
class node_portal toneIndigo
```

## Components

### Source setup

- [Source onboarding](https://github.com/saqlainraza14/iptv-webos-player/blob/main/login.js): `login.js`
- [Xtream and M3U](https://github.com/saqlainraza14/iptv-webos-player/blob/main/login.js): `login.js`

### Catalog and discovery

- [Player application](https://github.com/saqlainraza14/iptv-webos-player/blob/main/app.js): `app.js`
- [Live TV and EPG](https://github.com/saqlainraza14/iptv-webos-player/blob/main/app.js): `app.js`
- [Movie catalog](https://github.com/saqlainraza14/iptv-webos-player/blob/main/app.js): `app.js`
- [Series catalog](https://github.com/saqlainraza14/iptv-webos-player/blob/main/app.js): `app.js`
- [Global search](https://github.com/saqlainraza14/iptv-webos-player/blob/main/app.js): `app.js`
- [Favorites and history](https://github.com/saqlainraza14/iptv-webos-player/blob/main/app.js): `app.js`
- [Catalog cache](https://github.com/saqlainraza14/iptv-webos-player/blob/main/app.js): `app.js`

### Playback

- [Stream playback](https://github.com/saqlainraza14/iptv-webos-player/blob/main/app.js): `app.js`
- **HLS engine**
- **MPEG-TS engine**

### TV runtime

- **webOS services**
- [Browser compatibility](https://github.com/saqlainraza14/iptv-webos-player/blob/main/polyfills.js): `polyfills.js`

### Other components

- **TV viewer**
- **IPTV provider**

## Connections

- TV viewer → Source onboarding: adds source (evidence: `README.md`)
- Source onboarding → Xtream and M3U: validates (evidence: `login.js`)
- Xtream and M3U → IPTV provider: requests catalog (evidence: `login.js`)
- TV viewer → Player application: browses (evidence: `README.md`)
- Player application → Live TV and EPG: opens (evidence: `README.md`)
- Player application → Movie catalog: opens (evidence: `README.md`)
- Player application → Series catalog: opens (evidence: `README.md`)
- Player application → Global search: searches (evidence: `README.md`)
- Player application → Favorites and history: manages (evidence: `README.md`)
- Player application → Catalog cache: caches sources (evidence: `app.js`)
- Player application → Stream playback: plays selection (evidence: `README.md`)
- Stream playback → HLS engine: uses
- Stream playback → MPEG-TS engine: uses (evidence: `app.js`)
- Stream playback → webOS services: invokes services (evidence: `app.js`)
- Player application → Browser compatibility: relies on shims
