How khalid635/dovira works
DOVIRA is a cross-platform desktop download manager. The main workflow is choosing a URL and download options in the renderer, sending the request through Electron’s bridge to the main process, and having the queue route work to aria2 or yt-dlp while recording download state in SQLite. The README also documents browser-extension capture, page grabbing, scheduling, history, updates, and smart organization features. Some subsystem links are based on README statements because their implementation files were not sampled.
Main entry points: queue.ts Download queue · ipc.ts IPC handlers · index.ts App runtime · App.tsx App shell
Components 21
Desktop interface
- App shell
src/renderer/src/App.tsx - Add dialog
src/renderer/src/components/AddDownloadDialog.tsx - UI state
src/renderer/src/store.ts - History view
src/renderer/src/components/HistoryPage.tsx
Download runtime
- IPC bridge
src/preload/index.ts - App runtime
src/main/index.ts - IPC handlers
src/main/ipc.ts - Download queue
src/main/queue.ts - aria2 engine
src/main/engines/aria2.ts - yt-dlp engine
src/main/engines/ytdlp.ts - SQLite history
src/main/db.ts - Settings
src/main/settings.ts
Product features
- Site grabber
src/main/grabber.ts - Scheduler
src/main/scheduler.ts - Smart processing
src/main/smart - AI assistant
src/main/smart/assistant.ts - App updates
src/main/updater.ts
External integrations
- Browser extension
extension/src/background.ts - Local API
src/main/localApi.ts
Other components
- User
- Browser
Connections 24
- User → App shell: uses
README.md - App shell → Add dialog: opens
src/renderer/src/App.tsx - Add dialog → UI state: submits through
src/renderer/src/components/AddDownloadDialog.tsx - UI state → IPC bridge: invokes bridge
- IPC bridge → IPC handlers: dispatches IPC
- App runtime → IPC handlers: registers handlers
src/main/index.ts - IPC handlers → Download queue: controls downloads
src/main/ipc.ts - App runtime → Download queue: creates
src/main/index.ts - Download queue → aria2 engine: runs transfers
src/main/queue.ts - Download queue → yt-dlp engine: runs media jobs
src/main/queue.ts - Download queue → SQLite history: persists state
src/main/queue.ts - Download queue → Settings: reads options
src/main/queue.ts - App shell → History view: shows history
src/renderer/src/App.tsx - IPC handlers → SQLite history: reads history
src/main/ipc.ts - IPC handlers → Site grabber: routes scans
src/main/ipc.ts - App runtime → Scheduler: starts scheduler
src/main/index.ts - Scheduler → Download queue: enqueues scheduled
src/main/scheduler.ts - Download queue → Smart processing: applies rules
src/main/queue.ts - Download queue → AI assistant: builds model prompt
src/main/queue.ts - App shell → AI assistant: offers assistant
README.md - App runtime → App updates: initializes updates
src/main/index.ts - Browser → Browser extension: captures links
README.md - Browser extension → Local API: sends authenticated requests
README.md - Local API → Download queue: adds downloads
src/main/localApi.ts