How zhongbai2333/tomato-novel-downloader works
Tomato Novel Downloader searches or previews a novel, prepares its metadata and chapter plan, downloads chapters with resume/retry support, and exports text, EPUB, PDF, or audiobook files. Users enter through TUI, Web UI, legacy CLI, or restricted update mode; Web UI also supports task management and browsing/downloading the local library. The graph preserves documented export and UI capabilities even where implementation excerpts were unavailable. Edges reflect shown calls/import references or README statements; unsampled route and export internals are not inferred beyond those statements.
Main entry points: downloader.rs Chapter download orchestration · main.rs Application entry · routes Web routes · plan.rs Search and download plan
Components 23
User interfaces
- Application entry
src/main.rs - Interactive TUI
src/ui/tui - Legacy CLI
src/ui/noui - Web server
src/ui/web - Web router
src/ui/web/router.rs - Web routes
src/ui/web/routes - Web task state
src/ui/web/state.rs
Discovery and planning
- Search and download plan
src/download/plan.rs - Novel web/API access
src/network_parser/network.rs
Download runtime
- Chapter download orchestration
src/download/downloader.rs - Third-party content access
src/download/third_party.rs - Download progress
src/download/progress.rs - Resume and chapter state
src/book_parser/book_manager.rs
Content outputs
- Chapter content parser
src/book_parser/parser.rs - EPUB generation
src/book_parser/epub_generator.rs - PDF finalization
src/book_parser/finalize_pdf.rs - Audiobook generation
src/book_parser/audio_generator.rs
Shared services
- Configuration and paths
src/base_system/context.rs - Download history
src/base_system/download_history.rs
Other components
- Reader / operator
- Novel service
- Microsoft Edge TTS
- Local download library
Connections 29
- Reader / operator → Application entry: starts
- Application entry → Web server: runs server
src/main.rs - Application entry → Legacy CLI: runs legacy UI
src/main.rs - Application entry → Interactive TUI: offers interactive UI
- Reader / operator → Web server: browses and submits
- Web server → Web router: routes requests
src/ui/web/router.rs - Web router → Web routes: dispatches
src/ui/web/router.rs - Web router → Web task state: uses state
src/ui/web/router.rs - Web task state → Chapter download orchestration: starts tasks
src/ui/web/state.rs - Web routes → Local download library: browses and serves files
- Interactive TUI → Chapter download orchestration: starts downloads
src/ui/tui/download.rs - Reader / operator → Search and download plan: requests search or preview
- Search and download plan → Novel web/API access: fetches metadata and chapters
src/download/plan.rs - Novel web/API access → Novel service: requests novel data
- Search and download plan → Chapter download orchestration: prepares plan
src/download/downloader.rs - Chapter download orchestration → Third-party content access: fetches content
src/download/downloader.rs - Chapter download orchestration → Chapter content parser: parses chapters
src/download/downloader.rs - Chapter download orchestration → Resume and chapter state: saves resume state
src/download/downloader.rs - Chapter download orchestration → Download progress: updates progress
src/download/downloader.rs - Chapter download orchestration → Download history: records downloads
src/download/downloader.rs - Chapter download orchestration → EPUB generation: finalizes output
- Chapter download orchestration → PDF finalization: finalizes output
- Chapter download orchestration → Audiobook generation: generates audiobook
src/book_parser/audio_generator.rs - Audiobook generation → Microsoft Edge TTS: synthesizes speech
- Audiobook generation → Resume and chapter state: uses downloaded chapters
src/book_parser/audio_generator.rs - Chapter download orchestration → Configuration and paths: uses download settings
src/download/downloader.rs - Search and download plan → Configuration and paths: uses output settings
src/download/plan.rs - Web routes → Configuration and paths: edits output settings
src/ui/web/routes/preview.rs - Web routes → Local download library: downloads files or ZIPs