How dvgamerr-app/hentai-downloader works
Main System Components
a. Electron Application Structure:
• Main Process (Backend)
• Renderer Process (Frontend)
• Preload Scripts (Bridge)
b. External Services:
• E-hentai.org API
• Exhentai.org API
• File System Integration
Component Organization
Frontend Layer:
• Svelte-based UI components
• Clipboard monitoring system
• Queue management interface
Middleware Layer:
• Preload scripts that handle IPC communication
• Security context bridges
Backend Layer:
• Plugin system for different manga sources
• Download management system
• Configuration management
• File system operations
Specific Implementation Details
Key features:
• Cookie/Session management for exhentai.org
• Download queue system
• Manga parsing and processing
• File management and naming system
Data Flow Representation
• URL input flow from clipboard to parser
• Authentication flow for protected content
• Download queue processing
• File saving workflow
Component Relationships
• IPC communication between main and renderer
• Plugin interaction with external APIs
• File system interaction paths
• Event system flow
[User Interface Layer]
• Svelte Components
• Clipboard Monitor
• Queue Display
• Settings Interface
• v
[Preload Bridge]
• IPC Communications
• Security Contexts
• v
[Main Process]
• Plugin System
• E-hentai Plugin
• Exhentai Plugin
• Config Manager
• Download Manager
• Queue Handler
• File Writer
• External Services
• API Clients
• Cookie Manager
Key Considerations:
Security Flow
• How authentication data is handled
• Secure communication paths
• Trusted and untrusted boundaries
Error Handling
• Retry mechanisms
• Error reporting paths
• Validation points
State Management
• Configuration storage
• Session management
• Persistent storage points