Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Overview

Rewyt is built with Go, Svelte, Shaka Player, and packaged with Wails.

loopStartupRewind to momentPlaybackStart serverFetch info (via yt-dlp)Video infoRequest MPDGenerate MPDMPD (proxied base URLs)Request segment (proxied URL)Request segmentStream segmentStream segment12345678910Frontend(Svelte + Shaka Player)Backend(Go)ypbYouTubeFrontend(Svelte + Shaka Player)Backend(Go)ypbYouTube

On startup, the Go backend starts ypb, which fetches video info via yt-dlp. When you rewind to a moment, the Svelte frontend requests an MPEG-DASH manifest from ypb, which generates one with proxied URLs. During playback, Shaka Player streams video through ypb, which proxies media segments from YouTube and handles connection errors.