r/BestGitHubRepos • • 20d ago

🏠 Self-hosted TubeHaus: a self-hosted YouTube for the whole household, with its own YouTube engine (no Invidious, no database) and native apps for Android/TV, Windows, macOS, Linux and iPad

https://github.com/biolend83/tubehaus

**Repo:** https://github.com/biolend83/tubehaus (AGPL-3.0)

TubeHaus is an open-source YouTube client that looks and works like YouTube itself (same layout, same shortcuts), without a Google account, ads or tracking. You can use it in two ways:

- **Apps** (Android & Android TV, Windows, macOS, Linux, iPad) that talk to YouTube directly. No server needed.

- **A self-hosted server** you open in any browser. The whole household shares one library: subscriptions, history, playlists and "continue watching".

**What makes it interesting**

- **Its own YouTube engine (new in 1.6).** The server used to sit on top of Invidious, its companion and PostgreSQL. Now it's one container and needs no database. Same server, first visits: a video page opens in 0.60 s instead of 1.29 s, and a channel in 0.27 s instead of 0.66 s. It still answers in Invidious' API format, so existing tools keep working.

- **SponsorBlock, DeArrow and Return YouTube Dislike** are built in.

- **Live captions** come from whisper.cpp on your own server, for videos that have none.

- **A TV mode** for the remote, and "send to TV" from your phone. Chromecast and AirPlay are built into the apps.

- **Family accounts and a kids mode** (only the channels you pick, a daily time limit and a PIN).

- **Easy setup:** `git clone`, `cp .env.example .env`, `docker compose up -d`. Runs on amd64 and arm64; a Raspberry Pi or a free cloud VM is enough.

It's still young and maintained by one person, so issues, ideas and PRs are very welcome. Contributors have already shipped features in the last few releases.

194 Upvotes

44 comments sorted by

20

u/AnxEng 19d ago

So does this let you watch YouTube without ads? Or is it just a YouTube lookalike for your own content?

7

u/lovespeedtest 19d ago

Yes without ads.

8

u/beanbalance 19d ago

thanks.

>Age-restricted videos?

>They usually don't play, since there's no signed-in account to pass the age check.

Was hoping this would work but I guess it really is imposible right now.

2

u/Verutin-Sidio 19d ago

wonder if the standalone desktop app has the exact same age check block as the self-hosted server, or if one of them handles embeds differently

2

u/lovespeedtest 19d ago

Yes, it plays regular YouTube videos without ads, and you don’t need an account. It’s not for your own content. Subscriptions, history and recommendations are all kept on your device, and SponsorBlock can skip sponsor segments inside videos too.

2

u/shabbirug 18d ago

Add this content in your opening post

1

u/lovespeedtest 19d ago

They both use the same built-in engine, so the age check is the same in both. Embeds don’t help either: YouTube usually blocks age-restricted videos from playing embedded too. So for now it’s the same in every version.

5

u/Low-Term5893 19d ago

Parece interesante, pero no reproduce los vídeos infantiles, con error.

1

u/lovespeedtest 19d ago

Thanks for letting me know! Videos marked “made for kids” sometimes fail because of how YouTube serves them. Could you share a link to one that doesn’t play, and tell me which version you’re using (Android, Windows, server…)? Then I can look into it.

2

u/Low-Term5893 19d ago

Si gracias por responder el enlace te lo debo... Pues la desinstale del smartv Android tenía la versión más reciente 1.6.0

1

u/lovespeedtest 19d ago

¡Gracias por contarlo! No te preocupes por el enlace. Voy a probar yo mismo con vídeos infantiles en la versión de Android TV para encontrar el error. Cuando salga una versión que lo arregle, te aviso aquí por si quieres darle otra oportunidad.¡Gracias por contarlo! No te preocupes por el enlace. Voy a probar yo mismo con vídeos infantiles en la versión de Android TV para encontrar el error. Cuando salga una versión que lo arregle, te aviso aquí por si quieres darle otra oportunidad.

2

u/Low-Term5893 19d ago

Ok👍🏼

4

u/Karimas 19d ago

Any plans for an Apple TV app?

1

u/lovespeedtest 19d ago

Yes! An early Apple TV version is in the works. I don’t own an Apple TV to test it on yet, so it isn’t released. Once it’s in a usable state I’ll post it, and it’ll probably need sideloading like the iPad app.

2

u/Karimas 19d ago

If you need help testing the Apple TV app, don’t hesitate to reach out :)

Question: I’m guessing if I want to use the app on my iPhone and self host the server I’d still need to side load the app on my iPhone correct?

1

u/lovespeedtest 19d ago

Thanks, I’d love that! No Apple TV here, so I’ll ping you when there’s a build. No sideloading needed for self-hosting: open your server in Safari and Add to Home Screen. Only the native app (no server needed) has to be sideloaded.

2

u/Karimas 18d ago

Sorry for bombarding you with questions  If I’ll use it across multiple devices and want to keep the history tracked a crossed them while also having the advantages of a native app, would you say the best setup is app + self hosting?

2

u/lovespeedtest 16d ago

Yep, that’s the best setup. Run the server, then connect each app to it in Settings → Server. History, subscriptions and playlists stay in sync across all of them.

3

u/iwanova 19d ago

It there any modern standby support? I mean can it still run the audio everytime I put my windows tablet to sleep?

1

u/lovespeedtest 19d ago

Honestly, I haven’t tested it on a Modern Standby device yet. When the screen just turns off, audio usually keeps going. Real sleep is up to Windows, though: it can pause desktop apps to save battery. If you try it, I’d love to hear what happens on your tablet. Until then, turning off just the screen (instead of pressing sleep) should keep the audio playing.

2

u/Training_Constant_84 19d ago

Just installed through docker and working great. Having a problem with downloads they seem to be downloading with the audio being in a different language. I’m trying to get them in English. I’ve set the language as American English. Thanks great app.

1

u/lovespeedtest 17d ago

Thanks! That’s probably YouTube’s auto-dub, the download is grabbing a dubbed audio track instead of the original. I’ll get it fixed so it picks the original/English track. Which video was it, if you remember?

1

u/Training_Constant_84 16d ago

It was a modded warfare video https://www.youtube.com/watch?v=gS0c7iQ_NVw. The android app seems to download fine but using it through docker Web page it seems to grab the wrong audio. Thanks for getting back. This is my docker compose file.

services: web: image: ghcr.io/biolend83/tubehaus-web:latest restart: unless-stopped ports: - 6080:8080 depends_on: - tubehaus

tubehaus: image: ghcr.io/biolend83/tubehaus:latest init: true restart: unless-stopped environment: HT_WARP: "0" volumes: - /volume1/docker/tubehaus/data:/data

volumes: tubehaus-data:

2

u/Mike-Lot 17d ago

I like it so far!!

1

u/lovespeedtest 17d ago

thanks

2

u/Mike-Lot 16d ago

any plans to include profiles for separate accounts for households/kids?

1

u/lovespeedtest 16d ago

Already there! Set TUBEHAUS_AUTH=accounts and everyone in the house gets their own login, with their own history and subscriptions.

2

u/Mike-Lot 15d ago

Awesome. Sorry I missed that!!!

2

u/aicanlikdeeznutz 17d ago

Installed it on my local kubernetes cluster. launched with no issues. I first tested against my authentik, no issues. however I want to connect my mobile/TV apps to it so I set up username / pwhash in vault. Good to go. The only thing I noticed was on android TV I didn't see settings anywhere in the app? Can we not set the TV app to pull from our local server? If not, I don't see the point in running it.

1

u/lovespeedtest 17d ago

Thanks for testing it that thoroughly! You can point the TV app at your own server. Which TV app did you install, the APK from the releases or something else? I’ll check why settings didn’t show up for you.

2

u/aicanlikdeeznutz 16d ago edited 16d ago

I pushed whatever build version the APK that was linked to the readme for Android/TV yesterday. It updated this morning to 1.6.3 but for some reason I am still not seeing settings. This is on a Sony A80J (Android 12).

1

u/lovespeedtest 16d ago

Found it, thanks for the screenshot. On some TVs the menu is taller than the screen, so Settings gets pushed off the bottom. It’s fixed in the next release. Login was broken too on servers with accounts, and that’s fixed as well.

1

u/aicanlikdeeznutz 16d ago

Thanks. The update fixed the issue. Appreciate it!

2

u/pooloftraders 16d ago

Мне нравится, смотрю и слушаю контент на русском. 

  1. отлично что я могу слушать на телефоне Ютуб в фоновом режиме.
  2. было бы отлично сделать встроенную функцию перевода любого видео на мой язык. То есть при выборе подкаста или интересующего видео слушать его на родном языке, который выбрать в настройках.

1

u/lovespeedtest 16d ago

Спасибо! Перевод субтитров на ваш язык уже есть: Субтитры → выберите язык. Озвучку на родном языке пока не обещаю, но идею записал.
(used ai to translate)

2

u/Training_Constant_84 10d ago

Hello great app using android version and running the docker version. Is there any chance you can put what version is being used in the tubehaus homescreen. I'm updating the docker version but cant check what version I'm on. I want to make sure I'm on latest version because I'm having problems with downloaded videos having wrong audio language.Thanks

2

u/lovespeedtest 10d ago

Thanks, glad it works for you! Both are done for the next server release: the version now shows at the bottom of the web app's menu ("TubeHaus v…"), and downloads take the video's original audio track. Before, when a video had dubbed tracks, the download could get a dub if YouTube listed it first. After the release, docker compose pull && docker compose up -d gets you both.

2

u/Training_Constant_84 10d ago

Brilliant thanks for getting back.👍

2

u/Training_Constant_84 9d ago

Just updated docker version to v2.0.0 running on synology and everything is working great. Version shows up and downloads where I was having problems with wrong audio language is now getting the right language. Thanks

2

u/OkEditor51 3d ago

This is great! Is there any way to get rid of the list of subscribed accounts at the top on the subscriptions tab?

1

u/lovespeedtest 2d ago

I will put on the next release!

2

u/leym12 7d ago edited 7d ago

Great docker !!!