How kbmin24/rehls works
ReHLS is an under-construction IPTV playlist and HLS streaming application, with account administration and electronic program guide (EPG) support visible in its server modules and database types. The intended user journey is to authenticate, manage playlist sources, browse channels, and play a channel through authenticated media endpoints; the excerpts show server-side stages, but not enough client API or server assembly code to verify all links end to end. EPG and background refresh are represented as documented-by-module capabilities; their runtime wiring is not shown.
Main entry points: streaming.service.ts Streaming service · api.ts API client · playlist.service.ts Playlist service · index.ts Server composition
Components 29
Web client
- Application shell
client/src/App.vue - Page routing
client/src/router.ts - Session state
client/src/composables/useSession.ts - API client
client/src/api.ts - Library view
client/src/views/LibraryView.vue - Player view
client/src/views/PlayerView.vue - Account and admin views
client/src/views/AdminUsersView.vue
Accounts and access
- Authentication routes
server/src/user/user.routes.ts - User service
server/src/user/user.service.ts - User repository
server/src/user/user.repository.ts - Session authorization
server/src/middlewares/auth.ts - Admin routes
server/src/admin/admin.routes.ts - Admin service
server/src/admin/admin.service.ts
Playlist library
- Playlist routes
server/src/playlist/playlist.routes.ts - Playlist service
server/src/playlist/playlist.service.ts - Playlist parsing
server/src/playlist/playlist.parse.ts - Channel service
server/src/channel/channel.service.ts - Channel repository
server/src/channel/channel.repository.ts
Playback
- Media routes
server/src/streaming/streaming.routes.ts - Streaming service
server/src/streaming/streaming.service.ts - Resource registry
server/src/streaming/streaming.registry.ts - HLS rewriting
server/src/streaming/streaming.rewrite.ts - Guarded fetching
server/src/upstream/public-fetch.ts
Guide and persistence
- EPG service
server/src/epg/epg.service.ts - XMLTV parser
server/src/epg/xmltv.parse.ts - Guide repository
server/src/epg/epg.repository.ts - Database pool
server/src/db/pool.ts - Server composition
server/src/index.ts
Other components
- User
Connections 33
- User → Application shell: uses
- Application shell → Session state: uses
client/src/App.vue - Page routing → Session state: loads
client/src/router.ts - Session state → API client: requests session
client/src/composables/useSession.ts - User → Library view: manages sources
- User → Player view: plays channel
- API client → Authentication routes: HTTP requests
- API client → Playlist routes: HTTP requests
- API client → Media routes: HTTP requests
- Authentication routes → User service: calls
server/src/user/user.routes.ts - Session authorization → User service: checks session
server/src/middlewares/auth.ts - User service → User repository: queries
server/src/user/user.service.ts - Admin routes → Admin service: calls
server/src/admin/admin.routes.ts - Admin service → User service: delegates
server/src/admin/admin.service.ts - Playlist routes → Playlist service: calls
server/src/playlist/playlist.routes.ts - Playlist service → Guarded fetching: fetches sources
server/src/playlist/playlist.service.ts - Playlist service → Playlist parsing: parses playlists
server/src/playlist/playlist.service.ts - Playlist service → Channel repository: stores channels
server/src/playlist/playlist.service.ts - Channel service → Channel repository: queries
server/src/channel/channel.service.ts - Media routes → Streaming service: requests media
server/src/streaming/streaming.routes.ts - Media routes → Session authorization: requires user
server/src/streaming/streaming.routes.ts - Streaming service → Channel repository: checks ownership
server/src/streaming/streaming.service.ts - Streaming service → Guarded fetching: fetches upstream
server/src/streaming/streaming.service.ts - Streaming service → Resource registry: registers resources
server/src/streaming/streaming.service.ts - Streaming service → HLS rewriting: rewrites manifests
server/src/streaming/streaming.service.ts - Resource registry → HLS rewriting: uses rewriting
server/src/streaming/streaming.registry.ts - EPG service → Guarded fetching: fetches guide
server/src/epg/epg.service.ts - EPG service → XMLTV parser: parses XMLTV
server/src/epg/epg.service.ts - EPG service → Guide repository: stores guide
server/src/epg/epg.service.ts - Server composition → Authentication routes: assembles
server/src/index.ts - Server composition → Playlist routes: assembles
server/src/index.ts - Server composition → Admin routes: assembles
server/src/index.ts - Database pool → Server composition: configured by
server/src/index.ts