How mcmonkeyprojects/swarmui works
Main Components
a) Frontend Layer:
• Web Interface (ASP.NET Core based)
• Static Assets (wwwroot directory containing CSS, JS, and images)
• Multiple UI Themes
• Internationalization Support (languages directory)
b) Core Application Layer:
• Extension Management System
• Settings Management
• User/Session Management
• WebAPI Controllers
• Text2Image Engine Core
c) Backend Integration Layer:
• Abstract Backend Interface
• Multiple Backend Support:
• ComfyUI Backend
• AutoWebUI Backend
• Swarm Backend (for distributed processing)
d) Built-in Extensions:
• Grid Generator
• Image Batch Tool
• Scorers
• Dynamic Thresholding
• ComfyUI Integration
e) Data Storage:
• Model Management
• User Settings
• Session Data
• Presets Storage
Relationships and Data Flow
• User requests flowing from Frontend → WebAPI → Backend
• Image generation pipeline: Frontend → T2IEngine → Backend → Storage
• Extension system interactions with core components
• Model loading/management flow
• Authentication/Authorization flow
Implementation Details to Highlight
• ASP.NET Core based architecture
• Modular extension system
• Multiple backend support
• RESTful API structure
• WebSocket connections for real-time updates
• Docker container support
Storage/Infrastructure Layer (bottom)
Left → Right organization:
• Core components in center
• Extensions branching to right
• Backend systems to left
• Support services distributed appropriately
Additional Elements
• Version information
• Technologies used
• Optional components vs required components
• Scaling/deployment considerations