Application Operating Modes
Runtime DispatchFollowing startup configuration and folder alignment, the program routes into one of three core operating modes:
1. Review UI Mode
Active when --review-ui is specified or when launched interactively with no arguments. Serves the web-based country review interface, live config editor, and iterative PDF regeneration server.
Default Mode
2. Database Mode
Triggered by --db-path or automated batch commands. Handles direct SQLite generation, processes Colnect inboxes, and publishes album pages directly to disk.
Batch Processing
3. Scraping & Ingestion Mode
Orchestrates specialized data collectors (e.g. US1847 data sets or local catalog exports), writing structured stamp records and imagery to canonical country folders.
Data Ingestion
Implementation Reference: Core routing is implemented in
src/modes.rs, src/review_ui.rs, and src/validation.rs.