How aandrew-me/ytdownloader works
ytDownloader is an Electron desktop app for downloading video and audio from many sites. Users choose a single-item or playlist workflow, configure format and advanced options, and manage download progress; the app also provides compression, preferences, and download history. The excerpts show renderer-side download execution, playlist formatting, compression via ffmpeg tools, and history persistence. Some UI-to-main-process wiring and unsampled feature internals are not visible, so those relationships are omitted or marked unverified.
Main entry points: utils.js Renderer utilities · main.js Electron shell · renderer.js Single downloads · playlist.js Playlist downloads
Components 14
Desktop shell
- Electron shell
main.js - Renderer bridge
preload.js
Download workflows
- Single downloads
src/renderer.js - Playlist downloads
src/playlist.js - yt-dlp engine
Media tools
- Video compressor
src/compressor.js
History and preferences
- Download preferences
src/preferences.js - History interface
src/history_ui.js - History manager
src/history.js
Shared renderer
- View navigation
src/common.js - Video and audio mode
src/index.js - Renderer utilities
src/utils.js
Other components
- Desktop user
- FFmpeg tools
Connections 14
- Desktop user → Electron shell: uses
README.md - Single downloads → yt-dlp engine: runs downloads
README.md - Playlist downloads → yt-dlp engine: runs batches
- Video compressor → FFmpeg tools: compresses with
README.md - Electron shell → History manager: imports
main.js - History interface → History manager: requests history
- Electron shell → Renderer bridge: configures
- Single downloads → Renderer utilities: imports helpers
src/renderer.js - Playlist downloads → Renderer utilities: imports helpers
src/playlist.js - Video compressor → Renderer utilities: imports helpers
src/compressor.js - Download preferences → Renderer utilities: imports helpers
src/preferences.js - History interface → Renderer utilities: imports helpers
src/history_ui.js - View navigation → Renderer utilities: imports helpers
src/common.js - Video and audio mode → Renderer utilities: imports helpers
src/index.js