r/webdev • u/Apprehensive-Cod699 • 25m ago
[Showoff Saturday] stillwatch: a youtube player that shows only the video, on a node server with zero dependencies
stillwatch is a youtube viewer for watching tutorials and lectures without the rest of youtube. no comments, no recommendations, no autoplay, and search hides thumbnails by default. here's the technical side since that's more interesting for this sub.
the server is plain node 20 with no runtime dependencies. it handles search, channel pages and transcripts, and tries providers in order: innertube first, then the youtube data api, then an invidious instance. the api only answers its own origin.
the frontend can also run as a plain static site with no server at all. on load it checks api/health, and if there's no server it turns off search and transcripts and says why in the ui instead of just breaking.
share links have no backend either. the video, clip start and end, a lesson title and a short note all go into the url, so nothing is stored and links can't expire.
the annoying part was youtube's own suggestions. the player is a youtube-nocookie iframe so you can't touch what's inside it. when a video ends i cover the related videos wall with my own layer, and on pause i cover the "more videos" strip. it works, but it's a cover, not a fix.
has anyone found a cleaner way to deal with the end screen than covering it?