How kirasync2748/kiraiptv works
KiraIPTV is an anonymous browser-based IPTV directory and player. The main journey is browsing and filtering a channel catalog, selecting a channel, and playing its stream with mirror failover; users can also verify channels and manage their viewing order. Catalog data is maintained by a separate collection workflow. The graph preserves documented proxying, presence, and PWA capabilities, but some route and client wiring is not shown in the excerpts, so those links are omitted or marked unverified.
Main entry points: KiraIptvApp.tsx Channel browser · channels-server.ts Catalog loader · collect_channels.py Channel collector · page.tsx Live TV entry
Components 19
Catalog pipeline
- Catalog loader
lib/channels-server.ts - Channel index
channels/channels_index.json - Filtering and health
lib/channel-logic.ts - Channel collector
channels/collect_channels.py - Curated seed sources
channels/seed_sources.json
Web experience
- Live TV entry
app/page.tsx - Channel browser
components/KiraIptvApp.tsx - Saved channel order
lib/use-channel-order.ts - Channel cards
components/ChannelCard.tsx - Channel identity
components/ChannelIcon.tsx - Verification panel
components/VerifyModal.tsx - Offline app support
public/sw.js - Service worker setup
components/ServiceWorkerRegistrar.tsx
Playback services
- Video player
components/VideoPlayer.tsx - Stream proxy
app/api/stream-proxy/route.ts
Live operations
- Stream verification
app/api/verify/route.ts - Viewer presence
app/api/presence/route.ts
Other components
- Viewer
- Public playlists
Connections 19
- Viewer → Live TV entry: opens
README.md - Live TV entry → Catalog loader: loads catalog
app/page.tsx - Live TV entry → Channel browser: renders
app/page.tsx - Catalog loader → Channel index: loads index
lib/channels-server.ts - Catalog loader → Filtering and health: deduplicates
lib/channels-server.ts - Channel browser → Filtering and health: filters channels
components/KiraIptvApp.tsx - Channel browser → Saved channel order: manages order
components/KiraIptvApp.tsx - Channel browser → Channel cards: renders cards
components/KiraIptvApp.tsx - Channel cards → Channel identity: renders identity
components/ChannelCard.tsx - Channel browser → Video player: renders playback
components/KiraIptvApp.tsx - Video player → Filtering and health: selects mirrors
components/VideoPlayer.tsx - Video player → Stream proxy: may relay streams
- Channel browser → Verification panel: opens verification
components/KiraIptvApp.tsx - Stream verification → Catalog loader: loads channels
app/api/verify/route.ts - Channel browser → Viewer presence: sends heartbeat
components/KiraIptvApp.tsx - Service worker setup → Offline app support: registers worker
components/ServiceWorkerRegistrar.tsx - Channel collector → Curated seed sources: reads seeds
channels/collect_channels.py - Public playlists → Channel collector: provides playlists
README.md - Channel collector → Channel index: rebuilds index
README.md