How biolend83/tubehaus works
TubeHaus is a self-hosted YouTube client for browsers, with a TV-friendly interface and a shared household library. A viewer enters through the web app, searches or browses content, opens a watch page, and plays video through the browser player; the app requests content from the server, which runs its own YouTube engine. The client also provides music playback, localization, casting and synchronized viewing. The README documents server capabilities beyond the sampled excerpts; edges to those features are shown only where documented. The large Python server was read, but its internal call relationships are not represented here.
Main entry points: main.js App entry and navigation · util.js API and local helpers · tubehaus_server.py HTTP server and API · watch.js Watch page
Components 19
Browser client
- App entry and navigation
web/y/main.js - Browse and search pages
web/y/pages.js - Library and interactions
web/y/core.js - API and local helpers
web/y/util.js - Local library access
web/y/locallib.js - Interface translations
web/y/i18n.js
Playback features
- Watch page
web/y/watch.js - Video player
web/y/player.js - Audio effects
web/y/sound.js - Music player
web/y/music.js - Synchronized viewing
web/y/party.js - Cast to TV
web/y/cast.js - TV interface
web/y/tv.js
Server services
- HTTP server and API
server/tubehaus_server.py
YouTube engine
- SABR and stream solving
server/sabr/sabr.mjs - SABR protocol library
server/sabr/vendor.mjs
Other components
- Viewer
- YouTube
- Cloudflare WARP
Connections 24
- Viewer → App entry and navigation: uses
README.md - App entry and navigation → Browse and search pages: routes to
web/y/main.js - App entry and navigation → Watch page: opens
web/y/main.js - App entry and navigation → API and local helpers: requests data
web/y/main.js - Browse and search pages → API and local helpers: fetches content
web/y/pages.js - Browse and search pages → Library and interactions: uses
web/y/pages.js - Library and interactions → API and local helpers: accesses library
web/y/core.js - API and local helpers → Local library access: delegates local reads
web/y/util.js - Watch page → Video player: loads video
web/y/watch.js - Watch page → Browse and search pages: loads playlist
web/y/watch.js - Watch page → Synchronized viewing: opens controls
web/y/watch.js - Video player → Audio effects: uses effects
web/y/player.js - Music player → Video player: loads Shaka
web/y/music.js - App entry and navigation → Music player: routes to
web/y/main.js - App entry and navigation → TV interface: initializes
web/y/main.js - App entry and navigation → Cast to TV: initializes
web/y/main.js - API and local helpers → Interface translations: uses translations
web/y/util.js - Interface translations → HTTP server and API: loads language data
web/y/i18n.js - API and local helpers → HTTP server and API: calls API
web/y/util.js - HTTP server and API → SABR and stream solving: uses stream engine
- SABR and stream solving → SABR protocol library: imports protocol tools
server/sabr/sabr.mjs - HTTP server and API → YouTube: fetches YouTube data
README.md - HTTP server and API → Cloudflare WARP: routes through
README.md - SABR and stream solving → YouTube: solves stream challenges
server/sabr/sabr.mjs