How yxxbc/downvid works
DownVid is an Electron desktop video downloader. The main workflow is to submit a URL, resolve it with a platform-specific parser or yt-dlp, choose a format, then download while reporting progress; users can also manage dependencies, cookies, history, settings, and updates. The README documents these capabilities, while sampled source and the SOURCE INDEX substantiate only some wiring. Dashed, uncited edges mark relationships that are documented at a product level but whose precise call path was not shown.
Main entry points: download.ts Download IPC · main.ts Main Process · App.vue App Shell · DownloadView.vue Download Interface
Components 26
Renderer UI
- App Shell
src/App.vue - Download Interface
src/components/DownloadView.vue - Download Queue
src/components/DownloadQueue.vue - History View
src/components/HistoryView.vue - Settings and Cookies
src/components/SettingsView.vue - Dependency State
src/stores/deps.ts - Download State
src/stores/download.ts
Electron Main
- Main Process
electron/main.ts - Download IPC
electron/ipc/download.ts - Dependency IPC
electron/ipc/deps.ts - History IPC
electron/ipc/history.ts - System IPC
electron/ipc/system.ts
Parsing and Downloads
- Douyin Parser
electron/parsers/douyin.ts - Kuaishou Parser
electron/parsers/kuaishou.ts - yt-dlp Parser
electron/parsers/ytdlp.ts - yt-dlp Download
electron/download/ytdlp.ts - Direct Download
electron/download/direct.ts - Progress Reporting
electron/download/progress.ts
Runtime Dependencies
- Dependency Discovery
backend/internal/runtime/find.go - Installed Tool Probe
backend/internal/probe/probe.go - Dependency Fetch
backend/internal/fetch/download.go - Sidecar Entry
backend/cmd/downvid-deps/main.go
Persistence and Updates
- Main Store
electron/store.ts - Update Service
electron/updater.ts - App IPC
electron/ipc/app.ts
Other components
- User
Connections 30
- User → App Shell: uses
README.md - App Shell → Download Interface: shows
src/App.vue - App Shell → History View: shows
src/App.vue - App Shell → Settings and Cookies: opens
src/App.vue - Download Interface → Download State: manages
- Download Interface → Download Queue: presents
- User → Download IPC: submits URL
- Main Process → Download IPC: registers
electron/main.ts - Main Process → Dependency IPC: registers
electron/main.ts - Main Process → History IPC: registers
electron/main.ts - Main Process → System IPC: registers
electron/main.ts - Main Process → App IPC: registers
electron/main.ts - Download IPC → Douyin Parser: dispatches
electron/ipc/download.ts - Download IPC → Kuaishou Parser: dispatches
electron/ipc/download.ts - Download IPC → yt-dlp Parser: dispatches
electron/ipc/download.ts - Download IPC → Direct Download: invokes
electron/ipc/download.ts - Download IPC → yt-dlp Download: invokes
electron/ipc/download.ts - yt-dlp Download → Progress Reporting: reports progress
electron/download/ytdlp.ts - yt-dlp Download → Main Store: tracks active tasks
electron/download/ytdlp.ts - Download IPC → History IPC: records results
- Settings and Cookies → Dependency State: manages dependencies
- Dependency IPC → Sidecar Entry: communicates
- Sidecar Entry → Dependency Discovery: resolves tools
backend/cmd/downvid-deps/main.go - Sidecar Entry → Dependency Fetch: fetches missing tools
backend/cmd/downvid-deps/main.go - Dependency Discovery → Installed Tool Probe: probes installed tools
backend/internal/runtime/find.go - System IPC → Update Service: configures proxy
electron/ipc/system.ts - App IPC → Update Service: checks and installs
electron/ipc/app.ts - App IPC → Main Store: serves renderer messages
- History View → History IPC: loads records
- System IPC → Settings and Cookies: exchanges system settings