ComfyUI Extension: ComfyUI Prepack

Authored by S4MUEL-404

Created

Updated

1 stars

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)

    1. Open ComfyUI Manager
    2. Search for "Prepack"
    3. Click Install
    4. Restart ComfyUI

    Method 2: Manual Installation

    1. Navigate to your ComfyUI custom_nodes directory:
      cd ComfyUI/custom_nodes/
      
    2. Clone this repository:
      git clone https://github.com/S4MUEL-404/ComfyUI-Prepack.git
      
    3. Install dependencies (minimal requirements):
      pip install -r ComfyUI-Prepack/requirements.txt
      
    4. 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

    1. Find Nodes: All Prepack nodes are prefixed with πŸ’€ in the ComfyUI node browser
    2. Categories: Look under "πŸ’€Prepack" category
    3. Professional Quality: All nodes include comprehensive error handling
    4. Smart Features: Advanced UI controls with JavaScript extensions

    Quick Start Example

    1. Add any Prepack node to your workflow
    2. Configure node parameters
    3. Connect to your existing workflow
    4. 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