How keshavbhatt/red works
Red is a native Qt desktop client for YouTube, with Desktop, Music and TV modes. The main workflow starts at launch or a user command, opens the selected YouTube experience in the embedded web view, and adds blocking and playback integrations around it. A separate download workflow provisions its engine, accepts video or playlist choices, and manages queued work. Settings and theme support both workflows; platform adapters provide desktop controls and notifications. The README documents several capabilities whose implementation was not sampled, so those branches are included with README evidence rather than implying source inspection.
Main entry points: script_bundle.cpp Injected Features · main_window.cpp Main Window · application.cpp Application · web_view.cpp Embedded Web View
Components 26
Application
- Launch and CLI
src/main.cpp - Application
src/app/application.cpp - Single Instance
src/app/single_instance.cpp - Settings
src/core/settings/settings.cpp - Theme Service
src/core/theme/theme_service.cpp - Main Window
src/ui/main_window.cpp
YouTube Experience
- Embedded Web View
src/web/web_view.cpp - Web Profile
src/web/web_profile.cpp - Request Blocking
src/web/request_interceptor.cpp - Injected Features
src/web/script_bundle.cpp - SponsorBlock Client
src/services/sponsorblock_client.cpp - Dislikes Client
src/services/dislikes_client.cpp
Downloads
- Download UI
src/ui/download_dialog.cpp - Download Queue
src/core/downloads/download_queue.cpp - Download Runner
src/core/downloads/download_runner.cpp - Engine Provisioning
src/services/engine_manager.cpp - Media Probe
src/services/media_probe.cpp - Cookie Reuse
src/services/netscape_cookies.cpp
Desktop Services
- Media Controls
src/ui/media_controller.cpp - Tray Controls
src/ui/tray_controller.cpp - Platform Adapters
src/platform/notifier_factory.cpp - Account and License
src/modules/AccountAndLicense/AccountLicenseManager.cpp
Other components
- User
- YouTube
- External Services
- Desktop Environment
Connections 32
- User → Launch and CLI: starts or commands
README.md - Launch and CLI → Application: creates
src/main.cpp - Application → Single Instance: coordinates
src/app/application.cpp - Application → Settings: owns
src/app/application.cpp - Application → Theme Service: owns
src/app/application.cpp - Launch and CLI → Main Window: starts mode
src/main.cpp - User → Main Window: uses
README.md - Main Window → Embedded Web View: hosts
README.md - Embedded Web View → Web Profile: uses
- Web Profile → Request Blocking: filters requests
- Embedded Web View → Injected Features: runs features
- Injected Features → YouTube: enhances playback
README.md - Request Blocking → YouTube: filters network traffic
README.md - Injected Features → SponsorBlock Client: uses segments
- Injected Features → Dislikes Client: fetches counts
- Settings → Main Window: configures modes
README.md - Settings → Injected Features: configures features
README.md - Theme Service → Main Window: provides theme
- User → Download UI: requests download
README.md - Download UI → Download Queue: queues work
README.md - Download Queue → Download Runner: dispatches jobs
- Download Runner → Engine Provisioning: uses engine
- Download Runner → Media Probe: probes media
- Download Runner → Cookie Reuse: reuses sign-in
README.md - Engine Provisioning → External Services: fetches components
src/services/engine_manager.cpp - Download UI → Desktop Environment: reports progress
README.md - Embedded Web View → Media Controls: provides playback state
README.md - Media Controls → Desktop Environment: publishes media controls
README.md - Media Controls → Platform Adapters: requests OS services
- Tray Controls → Media Controls: controls playback
README.md - Tray Controls → Desktop Environment: shows tray controls
README.md - Account and License → External Services: checks license