Repository navigation
v0.29.0 — Style node (LoRA + pos/neg conditioning)
v0.29.0 — Style node (LoRA + positive/negative CONDITIONING)
New node: GrimmRibbity — Style (LoRA + Conditioning)
A visual gallery picker that also applies the entry's stored LoRA stack and encodes prompts. One node replaces a LoraLoader chain plus two CLIPTextEncode nodes for the typical style preset.
- Inputs:
MODEL,CLIP,prompt_id(driven by gallery clicks), optionalpositive/negativeCONDITIONING, optionalextra_text,strength_scale(0–2 multiplier across every LoRA),bypasstoggle. - Outputs: patched
MODEL+CLIP,positiveCONDITIONING(entry text + triggers + extra encoded, concatted onto input),negativeCONDITIONING(entry's stored negative encoded, concatted), finalpromptSTRINGfor debugging. - LoRAs are loaded once per session into a thread-safe LRU cache (max 4 entries) — re-running the workflow doesn't re-read from disk.
Edit Prompt modal — + Add LoRA section
- Up to 10 LoRAs per entry, hidden until
+ Add LoRApressed. - Each row: Model dropdown (populated from
ComfyUI/models/loras/**, marks files that have moved as(missing)), Strength slider + number (range −2…2, step 0.05, mirrored to model + clip), Trigger words text, Delete. - Trigger words are auto-appended to the prompt before CLIP encoding by the Style node.
- Modal widened to 540px so the row grid fits cleanly.
Storage
- New
loraslist on every entry. Plumbed through upsert, list, history, duplicate, zip-export/import, and revert. _maybe_push_historydetects LoRA-only changes — editing just the LoRA stack now records a history snapshot.- The plain Library node ignores
loras(STRING-only output stays unchanged); only the new Style node consumes them.
Misc
- New
GET /prompt_library/lorasroute returns installed LoRA filenames for the modal dropdown. SEARCH_ALIASESso the node shows up understyle,lora,apply style, etc.- 11 new unit tests (178 total green).
Install / upgrade
cd ComfyUI/custom_nodes
git clone https://github.com/Deaththegrim/ComfyUI-PromptLibrary # first install
# or, in an existing checkout:
git pull
Restart ComfyUI to pick up the new Python module.