Introducing a new way to review your PRs.

Read the announcement

4gray / iptvnator

:tv: Cross-platform IPTV player application with multiple features, such as support of m3u and m3u8 playlists, favorites, TV guide, TV archive/catchup and more.

View on GitHub

26 documents · Updated Nov 23, 2026

overview

Knowledge Base updated: 2026-11-22

IPTVnator knowledge base

IPTVnator is a multi-runtime IPTV client: Electron and browser applications share playlist, portal, playback, workspace, and persistence libraries; Android TV adds a companion-oriented shell and TV-focused feature set.

The core user flows are source and provider ingestion, catalog browsing, program-guide presentation, stream playback, settings, and remote control. Browser deployments use a web backend, while self-hosted server access exposes libraries to approved companion devices through local, HTTPS, and Cloudflare-enabled connectivity.

Critical durable state is managed through shared database and service layers, with playlist and portal state coordinated across runtime-specific applications and self-hosted storage.

flowchart TD
  User[User] --> Web[Browser client]
  User --> Electron[Electron desktop runtime]
  User --> TV[Android TV shell]
  Web --> WB[Browser backend]
  Electron --> Hosted[Hosted server access]
  WB --> Hosted
  TV --> Hosted
  Hosted --> Storage[Hosted/local storage]
  Web --> Workspace[Workspace and dashboard]
  Electron --> Workspace
  TV --> Workspace
  Workspace --> Playlists[Playlist management]
  Workspace --> Portals[Provider portals]
  Playlists --> State[Shared state and services]
  Portals --> State
  State --> Database[Shared database]
  Playlists --> Playback[Playback and EPG]
  Portals --> Playback
  Playback --> User
sequenceDiagram
  participant C as Client device
  participant S as Hosted server
  participant H as Hosted ingress/listener
  participant D as Device registry
  C->>H: Discover or connect
  H->>S: Forward pairing request
  S->>D: Request approval / issue credential
  D-->>S: Approved device session
  S-->>C: Authenticated access to sources

Glossary

  • Hosted server — the self-hosted access mode that makes IPTV libraries available to approved browser and companion clients.
  • Portal — a provider-backed integration, including Xtream and Stalker sources, that supplies live and catalog media.
  • Source health — validation and cleanup state used to identify unusable or stale playlist sources.
  • Workspace shell — the shared application composition layer that hosts dashboard, navigation, settings, and viewing workflows.
  • Ingress — the browser-backend-facing hosted access entry point that selects and forwards hosted-server connectivity.

Codebase-wide invariants

  • Persistent data upgrades must remain compatible with existing client state; database connection and upgrade behavior is defined under libs/…/connection.ts and connection-upgrade-*.spec.ts.
  • Runtime-specific applications consume shared contracts rather than duplicating hosted-server models; see libs/…/hosted-server.interface.ts.
  • Playlist synchronization preserves source ownership and provider sessions across local and hosted storage; see libs/services/src/lib/source-sync/**.
  • Browser hosted access enters through the backend listener/ingress path rather than directly mounting server storage; see apps/…/hosted-listener.ts and hosted-ingress.ts.
  • Playback UI must translate platform-specific actions at the controls boundary; see libs/ui/playback/src/lib/player-controls/**.

Routing table