ComfyUI Extension: ComfyUI Prepack
A small, practical bundle of ComfyUI nodes that streamlines common workflows.
Custom Nodes (0)
README
ComfyUI-Prepack
Version: 1.3.1
A comprehensive workflow optimization toolkit for ComfyUI, providing essential nodes for model management, sampling control, and workflow enhancement with professional-grade reliability.
π Features
Model Management
- πPrepack Model DualCLIP - Load models with dual CLIP encoders
- πPrepack Model SingleCLIP - Load models with single CLIP encoder
- πPrepack Loras - Apply up to 3 LoRA adapters with text document integration
- πPrepack Loras and MSSD3 - LoRA management with MSSD3 support
Sampling Control
- πPrepack Ksampler - Enhanced KSampler with optimized parameters
- πPrepack Ksampler Advanced - Advanced sampling control with additional options
- πPrepack Seed - Smart seed management with random generation and history tracking
Workflow Management
- πPrepack SetPipe - Set and store workflow pipeline states (now includes LoRA path support)
- πPrepack GetPipe - Retrieve and use stored pipeline states (now includes LoRA path output)
Logic Operations
- πPrepack Logic Int - Integer logic operations and comparisons
- πPrepack Logic String - String logic operations and manipulations
Integer Operations
- πPrepack Int Combine - Combine up to 4 integers into a string with selectable separator
- πPrepack Int Split - Split a string into up to 4 integers using selectable separator
File Management
- πSave By File Name - Smart file saving with format preservation and custom naming. Supports images (WebP, JPEG, PNG, GIF), videos (MP4, AVI), and text files with automatic format detection
π¦ Installation
Method 1: ComfyUI Manager (Recommended)
- Open ComfyUI Manager
- Search for "Prepack"
- Click Install
- Restart ComfyUI
Method 2: Manual Installation
- Navigate to your ComfyUI custom_nodes directory:
cd ComfyUI/custom_nodes/
- Clone this repository:
git clone https://github.com/S4MUEL-404/ComfyUI-Prepack.git
- Install dependencies (minimal requirements):
pip install -r ComfyUI-Prepack/requirements.txt
- Restart ComfyUI
π§ Dependencies
This package has minimal dependencies and uses built-in ComfyUI functionality:
- PyTorch - Core tensor operations (usually already available)
- NumPy - Numerical computations (usually already available)
All dependencies are typically already available in standard ComfyUI installations.
π Usage
- Find Nodes: All Prepack nodes are prefixed with π in the ComfyUI node browser
- Categories: Look under "πPrepack" category
- Professional Quality: All nodes include comprehensive error handling
- Smart Features: Advanced UI controls with JavaScript extensions
Quick Start Example
- Add any Prepack node to your workflow
- Configure node parameters
- Connect to your existing workflow
- Execute workflow with enhanced control
π― Key Features
- β Workflow Optimization - Streamlined model and sampling management
- β Smart UI Controls - Enhanced interfaces with JavaScript extensions
- β LoRA Integration - Advanced LoRA management with text document support
- β Pipeline Management - Store and retrieve workflow states efficiently
- β Seed Management - Smart seed control with history tracking
- β Logic Operations - Comprehensive logic and comparison tools
- β File Management - Smart file saving with format preservation and custom naming
π Project Structure
ComfyUI-Prepack/
βββ py/ # Core node implementations
β βββ getpipe.py # Pipeline retrieval
β βββ setpipe.py # Pipeline storage
β βββ seed.py # Seed management
β βββ loras.py # LoRA management
β βββ ksampler.py # Basic sampling
β βββ ksamplerAdvanced.py # Advanced sampling
β βββ modelDualCLIP.py # Dual CLIP models
β βββ modelSingleCLIP.py # Single CLIP models
β βββ logicInt.py # Integer logic
β βββ logicString.py # String logic
β βββ intCombine.py # Integer combination
β βββ intSplit.py # Integer splitting
β βββ saveByFileName.py # Smart file saving
βββ js/ # JavaScript UI extensions
β βββ seed.js # Seed management UI
β βββ loraText.js # LoRA text integration
β βββ setgetnodes.js # Pipeline node UI
βββ summary_md/ # Documentation and summaries
βββ __init__.py # Plugin initialization
βββ requirements.txt # Minimal dependencies
π€ Contributing
Contributions are welcome! Please feel free to submit pull requests or report issues.
π License
This project is open source. Please respect the licensing terms.
Author: S4MUEL
Website: s4muel.com
Version: 1.3.1