Osegi
Software·1 min read

Stream Tube: a Rust YouTube client that blocks ads and uses 400 MB

Stream Tube is a free, open-source desktop YouTube app written in Rust. It skips ads, shows dislikes and uses about a third of the RAM of YouTube in a browser tab.

A desktop YouTube client window playing a video with a dark theme on a computer monitor.
Image: Хабр

A developer going by ThisGuyCodes has released Stream Tube, an open-source YouTube client for Windows, Linux and macOS. It is written in Rust, it blocks ads, and it needs no browser extensions.

The headline number is memory. According to the project, Stream Tube takes about 400 MB of RAM, against 1,200 MB for YouTube open in an Edge window. It also runs a single worker process, where regular YouTube in a browser spawns 11 or 12.

What does Stream Tube do?

The app removes ads inside videos, including pre-rolls and mid-rolls, and cuts out sponsor segments. It brings back the old interface and shows dislike counts again. Videos can be downloaded in good quality through yt-dlp, a popular command-line downloader. On Windows there are light, dark and custom themes.

How is it built?

The author says the idea was to have YouTube on the desktop without keeping a browser tab open, and without ads, pushy autoplay and sponsored inserts. In his words, existing options are either Electron apps (desktop apps that bundle a whole browser) that eat a gigabyte of memory, or third-party web front ends that break almost every two weeks.

Stream Tube is instead a native app. Its interface is drawn on the GPU with a library called GPUI, and video playback is handled by libmpv, the engine behind the mpv player. The developer says this makes it start fast and keeps scrolling through long lists of videos smooth, even when there is a lot of content.

The project is open source, so anyone can read the code and build on it. The figures above come from the project's own description, not from an independent test.

Apps worth a look

SUMO: the number puzzle

Tap the right tiles, add them up, hit the target. Easy to learn, hard to master. Free, for all ages.

Tags:stream tubeyoutuberustopen sourcead blockingdesktop app

More from this day

See all →

More in: Software

See all →