ComfyUI Extension: ComfyUI Arena Suite
ComfyUI custom nodes in a single package: Arena legacy + AutoCache + Updater
Custom Nodes (0)
README
ComfyUI Arena Suite v6.0.0
š Modern ComfyUI Custom Node Suite - Automatic model caching and workflow optimization for ComfyUI.
⨠Features
- š °ļø Arena AutoCache v6.0.0 - Fixed critical caching bugs, universal model parser, three Arena button modes (Gray/Red/Green)
- š§ Settings UI - Complete ComfyUI Settings integration with "š¾ Save to .env" button
- šÆ Universal Model Detection - Automatic detection of all model types without hardcoded node support
- ā” Parallel Caching - Multi-threaded model caching with background workers
- š”ļø Safe Defaults - Always disabled by default, user must explicitly enable
š Quick Start
Installation
-
Clone the repository:
git clone https://github.com/3dgopnik/comfyui-arena-suite.git cd comfyui-arena-suite
-
Install dependencies:
pip install -r requirements.txt
-
Copy to ComfyUI custom_nodes:
cp -r . /path/to/ComfyUI/custom_nodes/ComfyUI-Arena/
-
Restart ComfyUI and navigate to Settings ā Arena
šÆ Arena AutoCache
Three Modes
š Gray Mode (Default) - System disabled
ARENA_AUTO_CACHE_ENABLED=0
,ARENA_AUTOCACHE_AUTOPATCH=0
- Uses original model paths
š“ Red Mode - Active caching
ARENA_AUTO_CACHE_ENABLED=1
,ARENA_AUTOCACHE_AUTOPATCH=1
- Caches new models + uses cache
- Parallel prefetching of all workflow models
š¢ Green Mode - Cache usage only
ARENA_AUTO_CACHE_ENABLED=1
,ARENA_AUTOCACHE_AUTOPATCH=0
- Uses cache, doesn't cache new models
- Shows uncached model count in tooltip
Setup
- Open ComfyUI Settings ā Arena section
- Fill Cache Root path (e.g.,
f:\ComfyUIModelCache\
) - Click "š¾ Save to .env" (creates
user/arena_autocache.env
) - Use Arena button in header to switch modes
Supported Model Categories
checkpoints
,loras
,clip
,vae
,controlnet
upscale_models
,embeddings
,hypernetworks
gguf_models
,unet_models
,diffusion_models
- SUPIR, Flux, Wan, and all custom model types
š ļø Technical Details
Architecture
- Settings Panel - Primary interface for configuration
- Arena Button - Intuitive mode switching
- Optional Node - Advanced users can override settings
- Deferred Autopatch - Always active, patching
folder_paths.get_full_path()
Universal Model Parser
Instead of hardcoded node support, the system:
- Scans
widgets_values
for model file extensions - Detects category using
categoryByNodeType
mapping - Falls back to filename-based category detection
- Works with any node type automatically
Environment Variables
ARENA_AUTO_CACHE_ENABLED=1 # Enable/disable caching
ARENA_AUTOCACHE_AUTOPATCH=1 # Enable/disable autopatch
ARENA_CACHE_ROOT=f:\ComfyUIModelCache\ # Cache directory
ARENA_CACHE_MIN_SIZE_MB=10 # Minimum file size
ARENA_CACHE_MAX_GB=0 # Max cache size (0=unlimited)
ARENA_CACHE_MODE=ondemand # Caching mode
ARENA_CACHE_VERBOSE=1 # Detailed logging
š Project Structure
ComfyUI-Arena/
āāā autocache/ # Core caching logic
ā āāā arena_auto_cache_simple.py # Main caching engine
ā āāā arena_path_manager.py # Path management
ā āāā arena_smart_cache.py # Smart caching strategies
āāā web/ # Frontend extensions
ā āāā arena_simple_header.js # Arena button with 3 modes
ā āāā arena_settings_save_button.js # Settings UI
ā āāā arena_workflow_analyzer.js # Universal model parser
āāā docs/ # Documentation
ā āāā ru/ # Russian documentation
ā āāā en/ # English documentation
āāā config/ # Configuration files
āāā extra_model_paths.yaml # Model path definitions
š§ Development
Testing
# Test caching with different workflows
python -m pytest tests/
Debugging
Enable verbose logging:
ARENA_CACHE_VERBOSE=1
Check logs in ComfyUI console for detailed caching information.
š Changelog
v6.0.0 (2025-01-27)
Fixed:
- Critical model caching pipeline issues
- WindowsPath + str concatenation errors
- Double path creation (Flux\flux, Wan\Wan)
- SUPIR model detection and categorization
- Python indentation errors preventing autopatch
- folder_paths.get_full_path() filename resolution
Changed:
- Universal model parser replaces hardcoded node detection
- Enhanced cache path construction with Path/str consistency
- Improved model type detection for all categories
Added:
- Automatic model detection across all node types
- Enhanced error handling and cross-platform compatibility
- Comprehensive testing across SUPIR, Wan, and Flux workflows
š¤ Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
š License
MIT License - see LICENSE file for details.
š Links
- GitHub Repository: https://github.com/3dgopnik/comfyui-arena-suite
- Issues: https://github.com/3dgopnik/comfyui-arena-suite/issues
- Documentation: docs/
Made with ā¤ļø for the ComfyUI community