본문으로 건너뛰기
AI NEWS JOURNAL
Hacker News Show HNAI NEWS / JOURNAL

Show HN: TubeHaus – Open-source YouTube app for Android, desktop and TV

Article URL: https://github.com/biolend83/tubehaus Comments URL: https://news.ycombinator.com/item?id=50363507 Points: 1 # Comments: 0

번역 서비스가 일시 중지되어 원문을 표시합니다.

English · 한국어 A private YouTube client with no Google account and no tracking: run it on your own server, or install the app on your device. Both look and work like YouTube (same layout, same keyboard shortcuts), and both keep your subscriptions and history to yourself instead of in a Google account. ⬇ Get the app (Android & TV, Windows, macOS, Linux, iPad) · 🖥️ Run the server (Docker) 🚀 TubeHaus is launching on Product Hunt on November 1, 2026. Feedback there is very welcome. Independent open-source software, not affiliated with YouTube or Google. Please read the disclaimer. Two ways to use TubeHaus TubeHaus comes in two separate forms. They share the look and the name, but they work differently: Not sure? Want it on one phone or PC, today, with nothing to set up? Get the app. Want one library for the whole household, iPhone/iPad without sideloading, or to keep YouTube away from your devices' addresses? Run the server. Both? Since 0.5.4 the app can connect to your server (Settings → TubeHaus server): one library on every device and in the browser, while each app still plays videos itself. 📱 Get the app (beta): Android APK (Android 8+; on Android TV, Downloader code 3155410) · Windows · macOS (Apple Silicon, Intel) · Linux .deb · .rpm · iPad/iPhone .ipa (beta; install it with Sideloadly) · all files (Windows portable and ARM, Linux ARM64) · Android updates with Obtainium. Install notes and source per platform: android-app, windows-app, mac-app, linux-app, ios-app 🍎 iPad / iPhone: the same app, built for iOS 16+ (beta): Apple's player up to 4K, background play, picture-in-picture, offline downloads, and a YouTube engine that updates itself without reinstalling. It isn't in the App Store, so you install the .ipa with Sideloadly (free, Windows or Mac) and your Apple ID; with a free Apple ID it is re-signed every 7 days. Step by step: ios-app. No sideloading wanted? Use the server version in Safari. 🖥️ Run the server: see Quick start (Docker) below. The rest of this README is about the server version. The server version is built on top of Invidious and invidious-companion, which do the hard work of talking to YouTube. TubeHaus adds its own front end and a small server next to them. All credit to the Invidious team. Why the server version Instant clicks. Video pages come from a local cache that refreshes in the background, and the videos you are most likely to open next are fetched before you click (measured: about 1-2 s cold, a few milliseconds warm) Live streams that don't stall. The server pulls segments ahead of the player over kept-alive connections and serves a longer, gap-free playlist with exact segment timing, so the timeline never jumps Always the best quality. It never lowers resolution on its own. It prefers 60 fps and the codec your device decodes in hardware (checked with MediaCapabilities), switches codec instead of resolution when frames drop, and sizes the buffer from the bitrate so even 8K fits the browser's media buffer 🔒 Private Your devices never talk to Google. Video, thumbnails and pages are streamed through your own server; no Google account, cookies or YouTube scripts in your browser YouTube never sees your home IP. Everything your server asks YouTube goes out through Cloudflare WARP No accounts, no telemetry. Subscriptions, history, resume positions and playlists are files on your server, shared by your household and nobody else ☁️ Runs on a cloud server Many cloud addresses get "Sign in to confirm you're not a bot" from YouTube. TubeHaus sends its YouTube traffic through Cloudflare WARP in proxy mode, and reconnects WARP and retries when requests start failing (rate-limited), so it works on a cheap cloud VM 🎙️ Live captions YouTube gives no captions for live streams. TubeHaus transcribes them on the fly with whisper.cpp, a few seconds ahead of playback, on a single CPU core 🌿 Calm mode One switch in Settings turns YouTube back into a tool: the home screen is only new videos from your subscriptions, Shorts, trending and recommended videos disappear everywhere, nothing autoplays after a video, and comments stay folded until you open them. Search still works, so you watch what you came for 🧠 Shorts that learn from you, on your server The Shorts feed learns what you like from how you watch: how long you watched, whether you looped it, liked it or swiped it away. It keeps a score per channel and per topic (tags, hashtags, genre) in a small file on your server, and picks the next Shorts from your subscriptions, channels you like, topics you like and what's popular, with every fourth slot left for something new. No Google account, nothing leaves your server, and you can reset it any time under History 🌍 13 languages: 한국어 · English · 日本語 · 简体中文 · Español · Português · Français · Deutsch · Русский · हिन्दी · Bahasa Indonesia · Türkçe · বাংলা — chosen on the first visit (English until you pick one) and changeable any time under Language in the account menu or Settings. View counts and dates follow each language's own style. Everything else YouTube-identical UI: home, search, channels, playlists, subscriptions, history, library, trending Custom player on Shaka Player (DASH/HLS): chapters, storyboard seek previews, SponsorBlock, speed, sleep timer, stats, mini player, theater mode, ambient mode, Media Session (lock screen / Bluetooth keys) One library for every device: subscriptions (with an RSS-based feed), watch history, resume positions, Watch Later, likes, playlists Send to TV: pick a video on your phone and it starts on the TV (no Chromecast; open screens long-poll the server) High-quality offline save: 1080p/4K come as separate video and audio; the server fetches both and merges them with ffmpeg Translated subtitles for videos that have none in your language TV mode: full remote-control navigation (arrows / OK / Back) for TV browsers Dislike counts (Return YouTube Dislike), comments, transcripts Optional lookups the browser makes itself: SponsorBlock (by a hash prefix, not the video ID) and Return YouTube Dislike. (Formerly HomeTube, renamed to avoid a clash with an unrelated project of the same name.) How it fits together browser ──► Caddy ─┬─ /y/*, page navigations ─────────► web/ (the app) ├─ /api/p/*, /api/v1/videos/* ─────► TubeHaus server ──┐ ├─ /companion/* ───────────────────► invidious-companion ─┤ └─ everything else ────────────────► Invidious │ ▼ Cloudflare WARP (proxy mode) │ YouTube TubeHaus uses Invidious as its YouTube backend and adds its own server next to it. Invidious' companion private_url points at the TubeHaus server, which passes everything through and patches in what is missing (live HLS URLs, an empty storyboards key some old videos lack, WARP rotation when YouTube blocks). Requirements Server: Linux with Docker and docker compose, x86-64 or ARM64 (a free Oracle Cloud ARM VM works fine) CPU / RAM: 2+ cores and about 4 GB RAM for the whole stack. Live captions use about one more core, only while someone watches a live stream with captions on Disk: about 10-20 GB, mostly Docker images. Videos are streamed, not stored, so this doesn't grow with use A hostname for HTTPS (a domain, or a free wildcard DNS name such as sslip.io), or plain HTTP on a LAN Quick start (Docker) One command brings up everything: Caddy, the TubeHaus server with Cloudflare WARP built in, the PO-token provider for live streams, whisper.cpp for live captions, and the official Invidious + companion + PostgreSQL images. Works on x86-64 and ARM64. git clone https://github.com/biolend83/tubehaus && cd tubehaus cp .env.example .env # set your domain and three secrets docker compose pull # prebuilt images, amd64 and arm64 docker compose up -d Or with Flisk (optional; docker compose stays the main way). The same six containers are also described for Flisk and read the same .env, so if you already use it: npm install -g @flisk-sh/flisk # Flisk 1.4.26 or later git clone https://github.com/biolend83/tubehaus && cd tubehaus cp .env.example .env flisk up # flisk status / flisk logs --service tubehaus / flisk down Pick one of the two for a server, not both. Ports, volumes, updates and moving an existing install are in docs/FLISK.md. Thanks to @odykyi for the Flisk setup (#40, #42). To build the TubeHaus image yourself instead (for example after changing the code), use docker compose up -d --build. The first build takes a few minutes because of whisper.cpp. Then open your domain. WARP registers itself on first start and keeps its registration in a volume; the companion reaches YouTube through it as well. No domain, or your own reverse proxy? Caddy can serve plain HTTP on any port. In .env: # plain HTTP on a LAN, at http://192.168.1.10:8080 TUBEHAUS_SITE=:80 TUBEHAUS_HTTP_BIND=8080 TUBEHAUS_URL=http://192.168.1.10:8080 TUBEHAUS_DOMAIN=192.168.1.10 TUBEHAUS_HTTPS=false TUBEHAUS_EXTERNAL_PORT=8080 # behind your own nginx, Traefik or Caddy, which handles HTTPS for tube.example.com TUBEHAUS_SITE=:80 TUBEHAUS_HTTP_BIND=127.0.0.1:8080 # only your proxy reaches it TUBEHAUS_HTTPS_BIND=127.0.0.1:8443 # unused, kept off the public 443 TUBEHAUS_URL=https://tube.example.com TUBEHAUS_DOMAIN=tube.example.com TUBEHAUS_HTTPS=true TUBEHAUS_EXTERNAL_PORT=443 Then point your proxy at http://127.0.0.1:8080 for everything, unbuffered (video and live streams), e.g. in nginx: proxy_pass http://127.0.0.1:8080; proxy_buffering off; proxy_read_timeout 1h; proxy_set_header Host $host; Add a login before you expose it. TubeHaus has no accounts of its own. The simplest option is the built-in password: set TUBEHAUS_AUTH=basic, TUBEHAUS_USER and TUBEHAUS_PASSWORD_HASH in .env (the hash comes from docker compose run --rm caddy caddy hash-password; write every $ as $$). Or put Authelia, Authentik or a passkey gate in front with forward_auth. Check that everything works: docker compose exec tubehaus python3 /app/server/tubehaus_server.py --doctor It tests WARP, YouTube, Invidious, a real video lookup and the optional tools, one line each. If something fails, see Troubleshooting. To update or back up, see Updating and backups. Manual setup You need a Linux server with Python 3.10+, Caddy, and Docker for Invidious. 1. Cloudflare WARP in proxy mode Install the official client (pkg.cloudflareclient.com), then — set proxy mode before connecting, or the whole server's routing moves into WARP: warp-cli --accept-tos registration new warp-cli --accept-tos mode proxy # listens on 127.0.0.1:40000 warp-cli --accept-tos connect curl -x http://127.0.0.1:40000 https://www.cloudflare.com/cdn-cgi/trace # warp=on Containers can't reach 127.0.0.1 on the host, so re-expose it on the Docker bridge for the companion: socat TCP-LISTEN:18080,bind=172.17.0.1,fork,reuseaddr TCP:127.0.0.1:40000 # run it as a service (Unofficial WARP clients such as wgcf get rate-limited by Cloudflare; use the official one.) 2. Invidious + companion Follow the Invidious installation guide with invidious-companion. Then: companion: PROXY=socks5://172.17.0.1:18080 (WARP) and publish it on 127.0.0.1:8282 Invidious config: point the companion's private_url at TubeHaus, e.g. invidious_companion: [{ private_url: "http://172.17.0.1:3010/companion", public_url: "https://tube.example.com/companion" }] (then bind TubeHaus to an address the container can reach, e.g. HT_BIND=172.17.0.1) 3. TubeHaus server git clone https://github.com/biolend83/tubehaus /opt/tubehaus cd /opt/tubehaus && cp .env.example .env # edit it sudo cp deploy/tubehaus.service /etc/systemd/system/ && sudo systemctl enable --now tubehaus Optional extras: Live streams: yt-dlp with the bgutil-ytdlp-pot-provider plugin (PO tokens keep live URLs alive) Live captions: build whisper.cpp and download ggml-base-q5_1.bin; set HT_WHISPER_BIN / HT_WHISPER_MODEL Offline save: ffmpeg 4. Reverse proxy: Caddy or nginx Copy web/ to /srv/tubehaus/web and adapt deploy/Caddyfile.example for Caddy. If you use nginx instead, start from deploy/nginx.conf.example and replace the hostname, TLS certificate paths and upstream addresses for your setup. The nginx example keeps long-lived API, companion and download requests unbuffered with extended timeouts. TubeHaus has no accounts. Anyone who can open it shares the same library. Put your own login in front (Caddy basic_auth, or forward_auth to Authelia / Authentik / a passkey gate) before exposing it. Set window.TUBEHAUS_LOGIN_URL in index.html if expired sessions should be sent to your login page. Is this a replacement for Invidious? No, it runs alongside it. Invidious and its companion fetch everything from YouTube; TubeHaus is a YouTube-style front end plus a server that adds live streams, live captions, a shared library, send to TV, downloads and WARP egress. The docker compose file runs the official Invidious images for you. Can I use my existing Invidious instance (or keep using Yattee, FreeTube, ...)? Yes, follow Manual setup and point TubeHaus at it. Apps that talk to Invidious keep working, and if the companion goes out through WARP they benefit from it too. Live streams and WARP rotation work best when TubeHaus sits in front of the companion as described. Where does the content come from? Does it store videos? Everything comes from YouTube. Nothing is stored except your library (subscriptions, history, playlists) and short-lived files for offline downloads. Is there a recommendation algorithm? For Shorts, yes, and it runs entirely on your server (see Shorts that learn from you above). For regular videos you get your subscriptions feed, trending and category tabs, and YouTube's per-video related list. Nothing is learned by Google, since no Google account is involved. Age-restricted videos? They usually don't play, since there's no signed-in account to pass the age check. That is the same as Invidious. Can I bring my subscriptions in, and take my data out? Yes. Under Settings → My data (or the subscriptions page), Import from file takes Google Takeout (the subscriptions CSV and watch-history.json), Invidious, NewPipe and FreeTube exports, OPML, and TubeHaus backups. Export gives you a full TubeHaus backup (subscriptions, history, resume points, playlists, likes), an Invidious-format file, a Takeout-style CSV, or OPML for any feed reader. Your data is never stuck here. Does anything phone home? No. There are no accounts and no telemetry. The only outside requests are YouTube (through Invidious and WARP) and, from the browser, the optional SponsorBlock and Return YouTube Dislike lookups. How do phones and TVs connect? It's a web app: open your address in the browser, or use "Add to Home Screen" to install it like an app. TV browsers get a TV mode with remote-control navigation. On Android you can also skip the server entirely with the TubeHaus app. Running a public instance Want to let people try TubeHaus without installing it? Set TUBEHAUS_PUBLIC=1 in .env (or HT_PUBLIC_MODE=1 for a manual install). Then: Every visitor's library lives in their own browser. Subscriptions, history, resume points and playlists are kept in the browser's local storage; the server stores nothing about its visitors, and visitors never see each other's data. A note in Settings tells them to export a backup now and then The server only does stateless work: fetching feeds for the channels a browser sends, parsing imports and converting exports, and playing video Switched off: send to TV and server-side downloads (they would be shared between strangers), and Shorts recommendations don't learn Handling a crowd. TubeHaus protects itself, and your YouTube access, when many people show up at once: Always on: when many people open the same video (or the same channel feeds) at once, YouTube is asked once and the answer is shared; live streams are fetched once per stream however many people watch; idle connections are dropped after 30 seconds; and public instances don't pre-load recommended videos. The ready-made public setup. deploy/docker-compose.public.yml puts all of this together the way the instance above runs: Anubis in front: every visitor's browser solves a short proof-of-work check ("Making sure you're not a bot") before anything else loads, which keeps scrapers and bulk bots out Sign-up required (HT_ACCOUNTS=1): a user name and a password, no e-mail or other personal details. Passwords are stored as PBKDF2 hashes (600,000 rounds); sessions are signed HttpOnly cookies; sign-ups and log-ins are rate-limited per network Invidious' own accounts and admin pages switched off, only the player's reads allowed on the companion, load limits, memory/CPU caps, no access log docker compose --env-file .env -f deploy/docker-compose.public.yml up -d Also firewall the box so the containers can reach the internet only: no private networks, no cloud metadata service, none of your other servers. Before you open one, keep in mind: Bandwidth: video is streamed through your server. Watch your provider's traffic limits YouTube blocks: many viewers on one address get it flagged sooner; WARP rotation helps but has limits Trust: visitors' requests pass through your server. Be clear about what you log (TubeHaus logs no viewing history), and don't put the built-in password on it Leave TUBEHAUS_AUTH=none, and consider rate limiting in Caddy Public instances Running one? Add it here (or in the discussion) so others can find it. Configuration All settings are environment variables — see .env.example. Translations Interface text lives in web/y/lang/.js (the key is the original Korean text). The 13 languages are complete and no new ones are being added for now, so each can be kept up to date with every release. Corrections to the existing translations are very welcome. Community Questions and setup help: Discussions (please include the --doctor output) Bugs and feature requests: Issues Contributing: see CONTRIBUTING.md. Start with a good first issue; ROADMAP.md shows what's planned and docs/ARCHITECTURE.md maps the code Security problems: report them privately, see SECURITY.md What changed: CHANGELOG.md and Releases People who made TubeHaus better, with code, translations, testing or ideas: Code and design @Aaqibhafeezkhan: the house-and-play icon, remembering the playback speed, an nginx example, Spanish polish (#28, #29, #30, #31) @bh-official: the exact upload date on hover, and tests for exact upload times (#26, #27) @onyks-os: the first contribution, fixing the install instructions (#1) Translations @SakarPaisen: Turkish (#8) @rahul05ranjan: Bengali, and a Hindi review by a native speaker (#16, #17) Ideas and bug reports @JamesMowery: import from file and data export (which became v0.4.0), and the wrong posted time on new videos (#14, #15, #20) Testing the apps (on r/DigitalEscapeTools) u/Proper_Witness9173: brightness and volume swipes, the tablet layout, comments beside the video, picture-in-picture and most of 0.3.8 u/DryYam2258: the first Mac tester; asked for text size, removing subscriptions and channel pictures, and suggested subscription groups u/Gloomy_Acadia_445: asked for Linux, which led to the .deb, .rpm and tar.gz builds u/Victor_Orbis35: reported "mpv is missing" on Windows, which turned out to be a missing Vulkan runtime (fixed in 0.3.5) Opened a useful issue, sent a pull request or tested an app? You belong here too. Invidious and invidious-companion (AGPL-3.0) — the backend this sits on Shaka Player (Apache-2.0) — bundled in web/y/lib/ Layout after varun-jasti/Youtube-UI-UX (MIT); progress bar and volume after pncsoares/youtube-video-player-clone (MIT) Icons: Material Symbols (Apache-2.0) whisper.cpp (MIT), SponsorBlock, Return YouTube Dislike Cloudflare WARP Disclaimer TubeHaus is independent, free, open-source software. It is not affiliated with, endorsed by or sponsored by YouTube or Google. "YouTube" is a trademark of Google LLC. TubeHaus does not host, store or distribute any videos. They come straight from YouTube to your own device (the app) or to a server you run yourself (the server version). Downloaded videos are for your own personal viewing. Their copyright belongs to their owners. If you share, upload, sell or otherwise distribute them, that is entirely your own responsibility, and the authors are not liable for it. It is provided "as is", without warranty of any kind, as the license says. The authors and contributors are not responsible for how it is used or for anything that results from using it. You are responsible for using it in line with the laws where you live and the terms of the services you connect to. The maintainer does not run a public instance or any other service for it. Rights holders: if you believe something in this repository infringes your rights, open an issue with the details (or ask there for a private contact). It will be looked at and, where justified, removed promptly. AGPL-3.0, like Invidious. See the disclaimer above.

자료 출처

원문 읽기 ↗

관련 주제

← 전체 소식 이어 읽기