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.
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+VSafe: 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
Shiftfor 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–image8inputs (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 a1x1dummy tensor (bypass_mode). - Smart Size Modes:
original— Keep original dimensions.manual— Resize all images toW × H(crop/pad/resize).scale_shorter/scale_longer— Dynamically collapsesWandHinto a singleSizeinput 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, or3:4with automatic×Multdimension 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 (🔊/🔇). TurningOut: OFFskips audio decoding completely, outputsNoneon theaudiosocket (acting as disconnected for downstream optional inputs), and strips the audio track from thevideooutput. - 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.
NoneOption Built In: Every slot includesNoneat the top (treated as empty/skipped), alongside per-rowON/OFFtoggles.- Per-Row Search Filter (
🔍): Filter long LoRA lists with space-separated keywords (Escto clear). - 0.01-Step Strength (
Str) & Handle-Only Reorder (⋮⋮): Defaults to1.00on new rows with smooth0.01-step horizontal drag (Shiftfor0.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 exposelora{N}_on(BOOLEAN),lora{N}_name(*, compatible withSTRING,COMBO, andeasy loraNames), andlora{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
modelalone or include optionalclip.
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 (
*_awhenselect_b = False,*_bwhenselect_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 aBOOLEANwire directly toselect_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
BOOLEANinput (True= Active,False= Bypass or Mute). Unconnected rows can be toggled manually. - Relay Switching (
INV): ToggleINVon one of two groups wired to the sameBOOLEANto 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, passesinputthrough unchanged. - When
boolean = False, emitsExecutionBlocker(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_PIPEwire intojvX-Pipe Outto 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.