r/webdev • u/lovespeedtest • 8d ago
Showoff Saturday I implemented YouTube's SABR protocol in my open-source self-hosted YouTube client
I've been working on TubeHaus, an open-source self-hosted YouTube client focused on privacy and account-free viewing.
Over the last few days I spent a lot of time digging into YouTube's SABR streaming protocol and finally got it working reliably inside TubeHaus.
Most alternative YouTube frontends rely on approaches that have become increasingly fragile as YouTube changes how playback works. SABR was one of the biggest missing pieces for long-term compatibility, so I decided to implement it directly instead of relying on older playback methods.
The result has been surprisingly good:
- Much more reliable playback
- Better handling of newer YouTube streams
- Improved compatibility with recent platform changes
- Reduced dependence on legacy playback paths
The implementation was based on existing reverse-engineering work from the community, but I had to fill in a number of missing details before I could get consistent real-world playback.
I'm curious if anyone else here has been experimenting with SABR or reverse-engineering YouTube's newer streaming stack. I'd love feedback from people who have worked on media streaming, video delivery systems, or alternative YouTube clients.

