Extensions/ComfyUI-jvXnodes
ComfyUI Extension

ComfyUI-jvXnodes

A ComfyUI custom node pack that scratches every tiny, oddly specific UI/UX and workflow itch — compatible with both Nodes 1.0 and Nodes 2.0.

By javawock7618·Created about 20 hours ago·Updated about 20 hours ago· 1
javawock7618/ComfyUI-jvXnodes
Nodes—
On cloudLocal install
Stars1
Updatedabout 20 hours ago
Readme

ComfyUI-jvXnodes

Language: English | 日本語 (Japanese)

Concept: A custom node pack that scratches every tiny, oddly specific UI/UX and workflow itch.

ComfyUI-jvXnodes is a lightweight suite of custom nodes for ComfyUI focused on everyday workflow friction: compact UIs, full Nodes 1.0 & Nodes 2.0 compatibility, true Lazy Evaluation for multi-branch switching, non-destructive media loaders, and resilient state persistence.

Note: This custom node pack and its documentation were created with Gemini.


Common UI / UX Design Standards

Every interactive node in this pack shares a unified UI foundation (web/core_ui.js):

  • Nodes 1.0 & Nodes 2.0 Compatible: Works cleanly in both classic LiteGraph Canvas mode and modern Vue Nodes 2.0 mode.
  • True Window Size Persistence (Including Shrinking): New nodes open at a comfortable default size, and any manual resize — even smaller than the default — is remembered across reloads and duplications.
  • Ctrl+C / Ctrl+V Safe: Copying nodes never breaks or hides custom DOM widgets.
  • Collapsible I/O Slots (▾ I/O / ▸ I/O): Fold bulky input/output socket rows into a single compact toggle with a live connection counter (in→out).
  • Horizontal Drag Numeric Controls: Drag left/right directly on compact numeric inputs to scrub values smoothly (hold Shift for 5× step).

Included Nodes (10 Nodes)

Loaders (jvX / Loaders)

1. jvX-Multi Image Loader (jvX_MultiImageLoader)

Load, reorder, bypass, and batch-resize up to 9 images in a single compact node.

  • Dropzone + External Inputs: Drag & drop up to 9 files directly onto the node, drag cards to reorder, or connect external image0–image8 inputs (dropped images take priority, external inputs fill remaining slots).
  • Per-Image Bypass: Temporarily skip individual images without deleting them. Empty/bypassed slots output either None (treated as disconnected) or a 1x1 dummy tensor (bypass_mode).
  • Smart Size Modes:
    • original — Keep original dimensions.
    • manual — Resize all images to W × H (crop / pad / resize).
    • scale_shorter / scale_longer — Dynamically collapses W and H into a single Size input and proportionally scales each image by its shorter or longer edge, snapped to ×Mult.
    • match_min_size / match_max_size — Match all images to the smallest or largest input dimensions.

2. jvX-Video Loader (jvX_VideoLoader)

Interactive video loader with live preview, visual crop box, frame-accurate trim, and audio control.

  • Interactive Crop & Aspect Lock: Drag or resize the crop box directly over the video preview; lock to Free, 1:1, 16:9, 9:16, 4:3, or 3:4 with automatic ×Mult dimension snapping.
  • Timeline & Filmstrip Toggle (🎞 ON / 🎞 OFF): Scrub and trim start/end points visually. Turn off filmstrip thumbnails (🎞 OFF) to skip offscreen video seeking and switch to a slim tick-bar for faster loading and resizing.
  • Output Audio Mute (Out: ON / Out: OFF): Separate from the preview volume mute (🔊/🔇). Turning Out: OFF skips audio decoding completely, outputs None on the audio socket (acting as disconnected for downstream optional inputs), and strips the audio track from the video output.
  • Chunked Large-File Upload: Drop or browse large videos smoothly without hitting upload limits.
  • Outputs: images, audio, video, duration, frame_count, fps.

3. jvX-Audio Loader (jvX_AudioLoader)

Visual waveform audio loader with trim and front/back audio extension.

  • Interactive Waveform & Trim: Drag start/end guides or drag inside the selected region to shift the trim window while keeping duration constant.
  • Before / After Extension (extension_mode): Extend audio before, after, or on both sides (none / before / after / both) with silence or by dropping another audio file directly onto the front/back extension zone (auto-loops or trims to fit).
  • Composite Playback: Preview the exact trimmed + extended result directly inside the node before queuing.
  • Outputs: audio, duration.

4. jvX-LoRA Stack (jvX_LoraStack)

A dynamic, searchable LoRA stack that works in both Nodes 1.0 and Nodes 2.0.

  • None Option Built In: Every slot includes None at the top (treated as empty/skipped), alongside per-row ON/OFF toggles.
  • Per-Row Search Filter (🔍): Filter long LoRA lists with space-separated keywords (Esc to clear).
  • 0.01-Step Strength (Str) & Handle-Only Reorder (⋮⋮): Defaults to 1.00 on new rows with smooth 0.01-step horizontal drag (Shift for 0.05). Row drag-and-drop reorder only activates on the ⋮⋮ handle so it never conflicts with numeric dragging.
  • Per-Row External Inputs (🔌): Click 🔌 on any row to expose lora{N}_on (BOOLEAN), lora{N}_name (*, compatible with STRING, COMBO, and easy loraNames), and lora{N}_str (FLOAT). Connected wires override UI values and follow their row when reordered.
  • Collapsible I/O & In-Memory Cache: Fold sockets with ▾ I/O, refresh LoRA files live with ↻, and enjoy cached LoRA loading when tweaking strengths.
  • Model-Only or Model+CLIP: Connect model alone or include optional clip.

Logic & Routing (jvX / Logic)

5. jvX-Multi Switch (jvX_MultiSwitch)

Switch up to 32 pairs of arbitrary data types (A vs B) with a single BOOLEAN — with true Lazy Evaluation.

  • True Lazy Evaluation: Only the selected side (*_a when select_b = False, *_b when select_b = True) is evaluated; upstream nodes on the unselected branch are completely skipped.
  • Native Toggle + Wireable select_b: Toggle manually on the node or connect a BOOLEAN wire directly to select_b.
  • Auto-Expanding & Color-Coded Slots: Connecting a pair automatically names outputs by type (image, latent, conditioning, etc.) and appends the next empty pair, highlighted in blue (A) and amber (B).

6. jvX-Group Controller (jvX_GroupController)

Dedicated canvas group bypass/mute controller driven by BOOLEAN inputs.

  • BOOLEAN-Driven Bypass / Mute: Register any canvas group to create a dedicated BOOLEAN input (True = Active, False = Bypass or Mute). Unconnected rows can be toggled manually.
  • Relay Switching (INV): Toggle INV on one of two groups wired to the same BOOLEAN to build a clean A/B relay switch (when Group A is Active, Group B is Bypassed, and vice versa).
  • Automatic Rename Sync: Tracks groups by live reference and group.id — renaming a group on the canvas automatically updates both the controller list and the input socket name.
  • Pre-Queue Sync: Synchronizes group states immediately on interaction and right before every Queue Prompt.

7. jvX-Boolean Gate (jvX_BooleanGate)

Pass-through gate using ComfyUI's ExecutionBlocker.

  • When boolean = True, passes input through unchanged.
  • When boolean = False, emits ExecutionBlocker(None) to halt downstream execution cleanly (ideal for gating release/save triggers).

Preview (jvX / Preview)

8. jvX-Preview Video (jvX_PreviewVideo)

Lightweight in-node video + audio preview player.

  • Streams JPEG-encoded frames and WAV audio directly from memory cache with concurrent prefetching, play/pause, scrubbing, and audio-clock sync.

Pipe (jvX / Pipe)

9. jvX-Pipe In (jvX_PipeIn) & 10. jvX-Pipe Out (jvX_PipeOut)

Dynamic universal pipe pack/unpack nodes.

  • Connect any number of arbitrary-typed wires into jvX-Pipe In — slots auto-name from their origin sockets and grow dynamically.
  • Connect the JVX_PIPE wire into jvX-Pipe Out to automatically mirror all packed output slots and types.

Installation

Option 1: Comfy CLI / Comfy Registry

comfy node registry-install comfyui-jvxnodes

Option 2: Git Clone (Manual)

cd ComfyUI/custom_nodes
git clone https://github.com/javawock7618/ComfyUI-jvXnodes.git
cd ComfyUI-jvXnodes
pip install -r requirements.txt

Restart ComfyUI and perform a hard refresh (Ctrl + F5) in your browser.


Requirements

  • ComfyUI (Nodes 1.0 or Nodes 2.0)
  • Python packages: numpy, Pillow, opencv-python, av (PyAV)

License

MIT License — see LICENSE.