Back to Work
ComfyUI Downloader
Rust daemon for managing AI model downloads from CivitAI with intelligent routing, update tracking, and a Tauri desktop app
Client:
Year:2026
Impact:
Overview
A Rust-based daemon that manages AI model downloads from CivitAI for ComfyUI. Runs as a SystemD user service, exposing a Unix socket interface for model management, with a companion Tauri/Svelte desktop application.
Key Features
- Download Management — Queue processing with configurable concurrency and HTTP range request resumption
- Intelligent Routing — Automatically places checkpoints in correct subdirectories by analyzing safetensors headers for VAE/CLIP components
- Metadata & Verification — Generates
.metadata.jsonsidecars with SHA-256 hashes and CivitAI API data - Update Tracking — Periodic polling identifies newer model versions and sends desktop notifications
- Startup Scanning — Detects existing models via hash lookup and registers them for update tracking
- Desktop App — Tauri/Svelte GUI for managing downloads and browsing the model catalog
Architecture
The codebase is organized into:
- Daemon — Queue, downloader, scanner, and updater components
- IPC — Protocol, server, and client over Unix sockets
- CivitAI Integration — API client for model metadata and downloads
- Catalog — SQLite-backed model registry
- CLI —
comfyui-dlcommand-line tool for API key setup, model management, and status checks
Links
Technologies Used
- Rust
- Tauri + Svelte (desktop app)
- SQLite
- SystemD user services
- CivitAI API