How lgldsilva/jackui works
JackUI is a self-hosted torrent-streaming media server with a React web interface and Go backend. The main workflow is search through Jackett, choose a torrent, stream it while pieces download, and optionally transcode it for browser playback. The product also supports local media, downloads, library features, recommendations, authentication, and optional integrations. Relationships follow the README and shown source references; several subsystems are documented but their implementation details were not sampled.
Main entry points: routes.go HTTP server · PlayerProvider.tsx Playback interface · client.ts Web API client · stream.go Stream handlers
Components 27
User experience
- Web application
web/src/App.tsx - Search and discover
web/src/pages/SearchPage.tsx - Playback interface
web/src/components/PlayerProvider.tsx - Downloads interface
web/src/pages/DownloadsPage.tsx - Session management
web/src/auth/AuthContext.tsx - Web API client
web/src/api/client.ts
Discovery and library
- Search handlers
internal/handlers/search.go - Library and history
internal/library/store.go - Recommendations
internal/handlers/recommendations.go - Watchlist worker
internal/watchlist/worker.go - Download handlers
internal/handlers/downloads.go - Download worker
internal/downloads/worker.go
Media delivery
- Stream handlers
internal/handlers/stream.go - Torrent streamer
internal/streamer/streamer.go - Piece cache
internal/streamer/downloadstorage.go - Transcode pipeline
internal/transcode/pipeline.go - Local media access
internal/handlers/local/local.go
Server platform
- Authentication
internal/auth/middleware.go - HTTP server
cmd/server/routes.go - PostgreSQL
internal/db/pool.go
External integrations
- Indexer client
internal/jackett/client.go - FFmpeg
- BitTorrent swarm
- Desktop wrapper
electron/main.ts - TMDB metadata
internal/tmdb/client.go - OpenSubtitles
internal/subtitles/opensubtitles.go
Other components
- Viewer
Connections 31
- Viewer → Web application: uses
README.md - Web application → Search and discover: opens search
web/src/App.tsx - Search and discover → Web API client: requests search
web/src/api/client.ts - Web API client → HTTP server: calls API
README.md - HTTP server → Search handlers: routes requests
cmd/server/routes.go - Search handlers → Indexer client: queries indexers
README.md - Viewer → Downloads interface: manages downloads
README.md - Downloads interface → Web API client: requests actions
web/src/api/client.ts - HTTP server → Download handlers: routes requests
cmd/server/routes.go - Download handlers → Download worker: manages queue
- Download worker → Torrent streamer: registers downloads
internal/downloads/worker.go - Viewer → Playback interface: starts playback
README.md - Playback interface → Web API client: requests stream
web/src/components/PlayerProvider.tsx - HTTP server → Stream handlers: routes streams
cmd/server/routes.go - Stream handlers → Torrent streamer: serves torrent
README.md - BitTorrent swarm → Torrent streamer: provides pieces
README.md - Torrent streamer → Piece cache: caches pieces
README.md - Stream handlers → Transcode pipeline: requests transcode
- Transcode pipeline → FFmpeg: runs encoding
README.md - Stream handlers → Playback interface: streams media
README.md - HTTP server → Local media access: routes local media
cmd/server/routes.go - Playback interface → Local media access: plays local files
README.md - Session management → Web API client: authenticates requests
web/src/auth/AuthContext.tsx - HTTP server → Authentication: protects routes
cmd/server/routes.go - Viewer → Library and history: uses library
README.md - Watchlist worker → Indexer client: searches releases
internal/watchlist/worker.go - Viewer → Recommendations: views recommendations
README.md - HTTP server → PostgreSQL: persists application data
README.md - HTTP server → Desktop wrapper: can be bundled by
README.md - HTTP server → TMDB metadata: enriches metadata
README.md - Playback interface → OpenSubtitles: fetches subtitles
README.md