Core Engine Layer
Core Stable Diffusion infrastructure including model base classes, memory management, diffusion modules (UNet, attention), text encoders (CLIP, Llama), LoRA patching, sampling algorithms, and neural network operations
17
Execution Engine Layer
Workflow execution infrastructure including graph data structures, topological sorting, multi-level caching, job normalization, and progress tracking for node-based pipelines
4
Application/API Layer
HTTP API layer providing REST endpoints, type definitions, model management services, and multi-user authentication for the ComfyUI server
4
Extensions Layer
Node extensions and external API integrations including image/mask/latent/audio processing nodes and third-party AI service clients (Kling, Luma)
8