Native Windows desktop YouTube client built with eframe/egui, embedded libmpv playback, yt-dlp stream/metadata resolution, and local-first discovery.
- Rust 1.98 or later with a Windows x86-64 toolchain (MSVC or GNU).
yt-dlponPATHor alongside the portable executable.libmpv-2.dllormpv-2.dlland any companion runtime DLLs.- Optional: a Google Cloud Desktop app OAuth client for account features (subscriptions, playlists, likes/dislikes, and comments). Public browsing and all local features work without signing in.
- Create a Desktop app OAuth client in Google Cloud Console.
- Enable the YouTube Data API v3 for the project.
- Save the downloaded JSON file as
%LOCALAPPDATA%\FastTube\oauth-client.json. - Launch FastTube, click Sign in, and complete authorization in the browser.
- If access expires, sign in again; tokens and cookies are never included in backups.
To build from source, use the validation commands in Development & Validation. Releases provide a Windows x64 installer and a portable ZIP. The packager does not bundle credentials; runtime binaries remain subject to their upstream licenses, summarized in THIRD_PARTY_NOTICES.md.
- Public Home & Explainable Local Feed: Topic-based discovery and a local ranking engine combining watch history, queue signals, recency decay, channel diversification, and visible recommendation reasons.
- Explore: Shortcuts for trending, music, gaming, podcasts, live streams, mixes, and new releases.
- OAuth-Free Local Followed Channels & RSS: Follow any channel locally without signing in (
followed-channels.json), fetch uploads via public YouTube RSS feeds, and track unread"New"uploads. - Google Account Integration: Optional subscriptions, playlists, comments, and Like/Dislike actions via YouTube Data API v3, while keeping public Home and all local features functional when offline or signed out.
- Search, Public Playlists &
libmpvPlayback:yt-dlpstream resolution, embedded OpenGLlibmpvrendering (with nativeHWNDfallback), and public playlist pages (playlist?list=...) with Play All, Queue All, and Save as Collection. - Player Visual/Audio Controls: Storyboard hover scrub, multi-audio track selector, aspect ratio/zoom presets, video EQ (brightness/contrast/saturation/gamma), and 10-band/preset audio equalizer.
- Offline Download Manager: Download videos or audio (
MP4 Best/1080p/720p/480p,M4A,Opus,MP3) viayt-dlpdirectly from cards or the watch page, with per-item progress, cancellation, and a configurable downloads folder. - Local Watch Insights: Aggregate local statistics (total watch time, completed count, top channels, learned topic interests, and library/follow counters) computed strictly on-device.
- Opt-In Community APIs: Optional Return YouTube Dislike counts and DeArrow titles (
ryd_enabledanddearrow_enabled, both disabled by default—zero requests are made unless explicitly enabled in Settings → Privacy). - Shorts Stage: Dedicated vertical layout with a centered player and side-by-side details on wide windows.
- Persisted FIFO Queue & Repeat Modes: Stored in
queue.json(up to 50 items) with unique per-occurrence IDs andOff/Repeat All/Repeat Oneplayback modes. Items are popped only afterlibmpvconfirms loading that exact occurrence. - Local Watch History & Resume: Stored in
history.json(up to 200 entries) with playback resume and manual completion toggling. - Local Library: OAuth-independent storage in
library.jsonwith Watch Later, Favorites, named collections, and timestamped bookmarks with notes. - On-Demand Subtitles & Transcript: Searchable WebVTT viewer (
<= 2 MiB,<= 20,000cues) with active-cue auto-centering, click-to-seek, font sizing, and high-contrast mode without downloading the video. - Chapters & Bookmarks: Navigate
libmpvchapters and local bookmarks directly during playback. - Subscriptions Filters: Hide watched videos, Shorts, or live streams, filter by channel, and sort by upload date when available.
- Mini Player & Auto Mini Player: Resizes the active window and pins it always-on-top while preserving playback state, optionally activating automatically when navigating away from the watch page.
- Bilingual UI & Custom Keybindings: Switch instantly between
Português (Brasil)andEnglish, and customize player shortcuts live in Settings → General. - Built-in FastTube &
yt-dlpUpdaters (GitHub Releases): Automatically checksnathanbzrr/FastTubeon GitHub at startup (opt-outable), verifies downloads againstSHA256SUMS.txt, and seamlessly updates both Inno Setup and portable installations, alongside atomicyt-dlpupdates in Settings → Storage. - System Tray & Windows Startup: Minimize or close to the Windows notification area with playback/update tray controls, toggle Start with Windows, and optionally launch hidden to the tray (
--start-hidden). fasttube://Protocol: Launch YouTube links directly viafasttube://URI registration in the Windows installer.- Redacted Diagnostics: Classifies auth, quota, network, and
hwdecdecoding issues with actionable next steps and copies a redacted report free of raw errors, URLs, tokens, cookies, or local paths. - Backup & Import (v1 JSON): Exports library, bookmarks, queue, history, and preferences (max
8 MiB; never exports OAuth secrets, tokens, or cookies). Imports show a preview and support merge or replace. - Accessibility: Keyboard focus indicators, high-contrast captions, and an F1 shortcuts overlay.
Default shortcuts (customizable in Settings → General → Keyboard Shortcuts):
| Keys | Action |
|---|---|
F1 |
Open or close the shortcuts guide |
Ctrl+K |
Open command palette / jump to URL or playlist |
Tab / Shift+Tab |
Move focus across controls |
Enter or Space |
Activate focused control |
Alt+1 |
Home |
Alt+2 |
Explore |
Alt+3 |
History |
Alt+4 |
Queue |
Alt+5 |
Library |
Space or K |
Play or pause |
← / → |
Seek back or forward (configurable step) |
M |
Mute or unmute |
T |
Toggle theater mode |
F |
Toggle fullscreen |
I |
Toggle Mini Player |
Esc |
Exit fullscreen or close open panel/modal |
Application data lives in %LOCALAPPDATA%\FastTube (settings.json, app-preferences.json, history.json, library.json, queue.json, feed-preferences.json, and followed-channels.json). Data files are written via temporary files and atomic replacement; corrupt files are preserved untouched and reported as warnings.
Before applying an import, FastTube snapshots affected files into .fasttube-import-recovery. If any write fails—or if the process terminates mid-import—FastTube rolls back to the snapshot before loading application state on next startup.
CI (.github/workflows/ci.yml) targets standard Windows MSVC (stable). To avoid overwriting or locking a running fasttube.exe, pass an isolated --target-dir:
cargo fmt --check
cargo check --all-targets --locked --target-dir target\validation
cargo clippy --all-targets --locked --target-dir target\validation
cargo test --locked --target-dir target\validationIf building with the GNU toolchain (+stable-x86_64-pc-windows-gnu), ensure MinGW/WinLibs is on PATH and CC_x86_64_pc_windows_gnu, CXX_x86_64_pc_windows_gnu, AR_x86_64_pc_windows_gnu, and CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER point to your toolchain binaries.
docs/architecture.md— Domain state layout, module map, and system invariants.docs/graphify.md— Generating and querying the local AST code graph.docs/benchmarking.md— Portable packaging and process/network sampling scripts.
Contributions are welcome. Read CONTRIBUTING.md before opening a pull request, and follow the project's validation and privacy requirements.
FastTube is available under either of the following licenses, at your option:
- Apache License, Version 2.0 (
LICENSE-APACHE) - MIT License (
LICENSE-MIT)
Third-party components retain their own licenses. See THIRD_PARTY_NOTICES.md.