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
apps/electron/**,libs/electron/**-> docs/electron-desktop-runtime.mdapps/web/src/**,libs/workspace/**-> docs/browser-client.mdapps/web-backend/src/**-> docs/browser-backend.mdlibs/playlist/**, libs/…/playlist-*.service.ts -> docs/playlist-management.mdlibs/m3u/**,libs/m3u-state/**-> docs/m3u-playlist-import.mdlibs/services/src/lib/source-sync/**,apps/**/settings/*hosted*-> docs/self-hosted-source-synchronization.mdlibs/portal/shared/**-> docs/provider-portals.mdlibs/portal/xtream/**,libs/portal/stalker/**-> docs/xtream-and-stalker-portals.mdlibs/portal/**/downloads/**,libs/portal/**/recordings/**,libs/portal/**/catalog/**-> docs/portal-catalog-and-downloads.mdlibs/ui/playback/**,libs/epg/**-> docs/viewing-experience.mdlibs/ui/playback/**,libs/player/**-> docs/media-playback.mdlibs/epg/**,libs/**/program-guide/**-> docs/electronic-program-guide.mdlibs/workspace/shell/**,libs/remote-control/**-> docs/dashboard-and-remote-control.mdlibs/workspace/shell/**,apps/web/src/app/**remote**-> docs/dashboard-remote-control-flow.mdlibs/shared/**,libs/services/**,libs/m3u-state/**-> docs/application-foundations.mdlibs/m3u-state/**,libs/services/**,libs/shared/database/**,libs/shared/interfaces/**-> docs/shared-state-services-and-data.mdapps/**/settings/**,libs/**/parental/**,libs/workspace/shell/util/src/lib/settings-search/**-> docs/settings-and-parental-controls.md- package.json, nx.json, project.json, apps/…/project.json -> docs/release-and-delivery.md
.github/workflows/**,tools/packaging/**,Dockerfile*,docker/**-> docs/packaging-automation-and-deployment.mdapps/tv/**,libs/tv/**-> docs/television-client.mdlibs/tv/**,apps/tv/**/src/**-> docs/television-browsing-and-playback.mdapps/tv-shell/**,libs/tv-shell/**-> docs/tv-shell-runtime.mdapps/**/hosted-server/**,libs/**/hosted-server/**, libs/…/hosted-server.interface.ts -> docs/hosted-server-and-device-access.md- apps/…/hosted-*.ts, libs/…/hosted-pairing-bridge.ts,
apps/tv-shell/**/pairing/**-> docs/hosted-server-pairing-and-sessions.md apps/electron/**,apps/web/**,apps/web-backend/**-> docs/client-applications.md