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.json sidecars 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:

  1. Daemon — Queue, downloader, scanner, and updater components
  2. IPC — Protocol, server, and client over Unix sockets
  3. CivitAI Integration — API client for model metadata and downloads
  4. Catalog — SQLite-backed model registry
  5. CLIcomfyui-dl command-line tool for API key setup, model management, and status checks

Technologies Used

  • Rust
  • Tauri + Svelte (desktop app)
  • SQLite
  • SystemD user services
  • CivitAI API

Technologies

RustTauriSvelteSQLiteSystemD

Categories

RustOpen SourceAIDesktop App

Need something similar?

Let's discuss how I can help build a solution for your business.