r/coolgithubprojects • • 3d ago

Made a native YouTube desktop app in Rust.

https://github.com/Avaneesh-Inamdar/Stream-Tube-Desktop

Just to make sure: yes, using uBlock Origin and SponsorBlock in Firefox gets you 90% there. That's what I have been using for ages now, and it is awesome. This is not meant to be a replacement for that.

My actual reasons for building this:

  1. YouTube was getting in the way of my browsing. When I was watching hours worth of video lectures during work, having it open in a tab meant getting buried under 40 other tabs, being reset every time the browser was reopened or eating up RAM along with everything else. An application that allows alt-tabbing (or pip windowing) seems like the natural way of using it.
  2. The adblocker in the browser always gets broken. Every now and then YouTube decides to change something, and for a week it displays popups saying "ad blockers are not allowed", or refuses to play until filters are updated. This application never loads YouTube's player, it streams the video directly using mpv, so there is nothing to block.
  3. Streaming playback with mpv. Hardware decoding, good speed controls, 4K/60fps playback quality better than the browser's one on my laptop.
  4. Subscriptions without any login. Subscriptions can be stored locally and the page creates its own feed based on it. It's optional to login if you want recommendations or your history back.

Actually, I also wanted to develop something serious in GPUI

If you're happy with your browser setup, you probably don't need this. It's for people who want YouTube as its own app, like a music player is separate from the browser.

What's in it: SponsorBlock, DeArrow, Return YouTube Dislike, live chat, miniplayer/pip, background play, downloads via yt-dlp, hold-Space for 2x, NewPipe/FreeTube/Takeout import, in-app updates. Windows and Linux.

It's an alpha. Things will break, and YouTube will probably change something that breaks it at some point (same as NewPipe/FreeTube deal with). Linux especially needs testers; I've mostly run it on Windows.

GitHub: https://github.com/Avaneesh-Inamdar/Stream-Tube-Desktop

Downloads: https://github.com/Avaneesh-Inamdar/Stream-Tube-Desktop/releases

Thanks :)

64 Upvotes

38 comments sorted by

3

u/Ok_Carry_8711 2d ago

Why are there SO many projects in rust nowadays?

18

u/LynxPotential2670 2d ago

One big reason is AI

3

u/TryingT0DoBetter 2d ago

Rust is fast and memory-safe, and cargo makes setup easy, so it's great for apps like this without Electron. AI has also made it much easier to get started and build things in it.

2

u/kinoosaki 2d ago

rust existed before AI too why is everyone acting like this is a new thing

2

u/noobjaish 2d ago

Because Rust is a pain to write GUI apps in (compared to Typescript, Kotlin or Swift), now much of that pain is alleviated with AI.

1

u/ICEGalaxy_ 1d ago

why are you using bold text in a comment? genuinely, are you a bot? do you use Opus to write your comments? Jesus, it looks so unnatural!

1

u/Shunl 3h ago

Hey smartass, Ctrl + B exists for a reason. You can bold text in comments just like any other text editor. People have been doing that for years to emphasize a point. It's not that fucking complicated.

0

u/[deleted] 2d ago

[deleted] — view deleted comment

3

u/stopbuggingmealready 2d ago

Prolly because somebody mentioned a bit ago, that Claude was so great at Programming in Rust.

-1

u/Exciting_Active4857 2d ago

🏳️‍⚧️ language forced by mozilla

5

u/smoke-bubble 2d ago

so it uses "https://github.com/yt-dlp/ejs" under the hood. As I had expected. I guess a super easy way to get banned if logged in with your actual account. I would not risk using this on a premium subscription.

2

u/IndependentYak2822 5h ago

Why do you need premium subscription if you can get rid off any ads with ad blockers? Is there any benefits to pay for youtube?

1

u/Key-Bat7250 1d ago

I have used it before , didnnot cause issues

1

u/ksteink 2d ago

No MacOS version?

1

u/TryingT0DoBetter 2d ago

Not yet unfortunately. I don't have a mac to build and test the app(I am a college/uni student) and i don't have the resources to buy one. But hey its open source, your contributions are welcome if you like to help :)

1

u/ucqy 2d ago

the releases are built locally? there is no built pipeline for windows exe. how is anyone able to verify where it came from if you don't build it in github?

3

u/TryingT0DoBetter 2d ago

From the next release, every build, Windows included, will come from GitHub Actions. Currently, only the Linux builds cam through it, now all the builds will be included

3

u/oaeben 2d ago

while you're at it, set github's immutable releases to enabled and build the artifacts with attestation

3

u/smoke-bubble 2d ago

Who should we thank this time? Claude or Codex?

2

u/Alone_Fisherman1740 2d ago

2. never had problems on ff

also I'd say flow is a better alternative to this since it has a mobile app (can sync between devices too) as well

2

u/kinoosaki 2d ago

AI disclosure?

1

u/ICEGalaxy_ 1d ago

you can pretty much assume it was 99% AI coding.

the post itself was written by AI, then later modified by OP, but it's so obvious and lazy that pretty much any AI detector flags it as near 100% AI.

they are so lazy they don't even bother to write a proper Reddit post, it's just beyond disgusting.

0

u/LynxPotential2670 1d ago

yes if you look at the github commits it's pretty obvious it's mostly just done by clanker.

0

u/ICEGalaxy_ 1d ago

"I rewrote YouTube in Rust, bro"

2

u/Leo_Reiner 2d ago

is that open source?

1

u/KeyPreparation1320 2d ago

I can do linux testing as I run it as the main os. Would love to contribute to this.

1

u/thisismeonly 2d ago

Hey. I'm loving this. Can you add multi window multi tab support? I often keep multiple YouTube videos open so I can cross-research.

1

u/Mwrp86 2d ago

uh. its just a lightweight browser?

1

u/DKG9512 2d ago

pretty cool man ill be checking it out, tyyy, is there an update button anywhere or do i need to reinstall from the github?

1

u/ExcuseOk1917 6h ago

it be nice if we could open multiple tabs like in a browser. some times i hear music, then i go back to a podcast, then to a course

1

u/ExcuseOk1917 6h ago

Tags and folders at subscriptions please?
Also choose download quality?

0

u/wisepal_app 2d ago edited 2d ago

Great work. i have a few requests. i don't like default home screen suggestions i want to sweep home screen and instead see related videos according to my watching history and search. i forgot the name but there was an extension that has this function. the lists of popular etc. videos from youtube is not good i don't want to see them. i know i can start from history but i don't mean that. i mean because of my history youtube suggests videos related to them in home screen. another thing is screenshot button in player bar would be very useful instead of settings list.

2

u/TryingT0DoBetter 2d ago

Home feed: if you sign in (the Sign in button at the top right), Home shows your own YouTube recommendations based on your watch and search history, instead of the popular and trending lists. Also connect Settings -> General -> YouTube watch history: then what you watch in Stream Tube counts toward your recommendations too, so they get better over time.

Building recommendations from your history without signing in is a good idea. I'll look into it for a future version.

Screenshot button: agreed, that's handy. I'll add it to the player bar in the next release.

Thanks :)

0

u/slava524 2d ago

A couple of hours tinkering with Codex and here's the build for MacOS (Apple Silicon only ATM).
Should I open an issue on Github to contribute?

2

u/TryingT0DoBetter 2d ago

Yes, please open an issue or send a PR, I'd really appreciate it. One Thing : I don't have a Mac, so I can't test macOS builds myself. If you can mention how you tested it in the PR, I'll review and merge it. I also have exams till Dec 3, so replies might be slow for a bit.

0

u/Lower-Philosophy-604 1d ago

AI did this son

1

u/No-Dot5464 9h ago

If it works and gets little bugs i aint complaining honestly