How willmiao/comfyui-lora-manager works
ComfyUI LoRA Manager is a model-library and workflow companion: users browse and organize model types, manage recipes and metadata, download models, and apply LoRAs in ComfyUI. The principal workflow runs from the browser UI through model APIs and server routes into model services; separate branches cover downloads, recipes, AI-assisted enrichment, and ComfyUI nodes/extensions. The README documents these capabilities, while source-index references and excerpts support only some internal links; unsampled subsystem connections are omitted.
Main entry points: modelApiFactory.js Model API Client · service_registry.py Service Registry · lora_manager.py Server Setup · SidebarManager.js Model Library UI
Components 21
Library Interface
- Model Library UI
static/js/components/SidebarManager.js - Model API Client
static/js/api/modelApiFactory.js - Browser State
static/js/state/index.js - Download Manager UI
static/js/managers/DownloadManager.js - Recipe Interface
static/js/recipes.js
Server and Models
- Model Routes
py/routes/embedding_routes.py - Server Setup
py/lora_manager.py - Service Registry
py/services/service_registry.py - Settings
py/services/settings_manager.py - Model Services
py/services/model_service_factory.py - Model Scanning
py/services/model_scanner.py
Download and Sources
- Download Service
py/services/downloader.py - Model Sources
py/services/model_sources
Recipes and AI
- Recipe Routes
py/routes/recipe_routes.py - Recipe Persistence
py/services/recipes/persistence_service.py - Metadata Agent
py/services/agent/agent_service.py - LLM Client
py/services/llm_service.py
ComfyUI Integration
- ComfyUI Nodes
py/nodes/lora_loader.py - ComfyUI Extension
web/comfyui/lora_loader.js
Other components
- ComfyUI User
- Workflow User
Connections 14
- ComfyUI User → Model Library UI: browses models
- Model Library UI → Model API Client: requests models
static/js/components/SidebarManager.js - Model API Client → Browser State: reads state
static/js/api/modelApiFactory.js - Server Setup → Model Routes: registers routes
py/lora_manager.py - Model Routes → Service Registry: resolves service
py/routes/embedding_routes.py - Service Registry → Model Services: creates services
- Server Setup → Service Registry: initializes services
py/lora_manager.py - Download Manager UI → Model API Client: requests downloads
static/js/managers/DownloadManager.js - Download Service → Settings: reads settings
py/services/downloader.py - Metadata Agent → LLM Client: calls provider
py/services/agent/agent_service.py - Recipe Interface → Recipe Routes: manages recipes
- Recipe Routes → Recipe Persistence: persists recipes
- Workflow User → ComfyUI Nodes: applies LoRA
- ComfyUI Extension → ComfyUI Nodes: integrates nodes