ComfyUI Extension: CrasH Utils

Authored by chrish-slingshot

Created

Updated

15 stars

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

A mixture of effects and quality of life nodes. Nodes: ImageGlitcher (gives an image a cool glitchy effect), ColorStylizer (highlights a single color in an image), QueryLocalLLM (queries a local LLM API though oobabooga), SDXLReslution (resolution picker for the standard SDXL resolutions, the complete list), SDXLResolutionSplit (splits the SDXL resolution into width and height).

README

CrasH Utils Custom Nodes

A collection of utility nodes and games for ComfyUI β€” visual LoRA loaders, image tools, SDXL helpers, LLM integration, and browser games for long generation queues.


Table of contents


Node index

All nodes appear under the CrasH Utils menu in ComfyUI, grouped by subcategory:

| Node | Category | What it does | |------|----------|--------------| | Grid LoRA Loader | Loaders | Multi-LoRA picker with thumbnail grid, trigger tags panel, and strength controls | | List LoRA Loader | Loaders | Same LoRA features in a compact vertical list layout | | Checkpoint Names | Loaders | Outputs the selected checkpoint name as a string | | Resolution Picker | Image | Visual picker for five common resolutions β†’ width & height | | SDXL Resolution | Image | Dropdown of every SDXL-trained resolution | | SDXL Resolution To Dimensions | Image | Splits SDXL Resolution into separate width & height outputs | | Image Glitcher | Effects | Glitch art with chromatic aberration and scanlines | | Color Stylizer | Effects | Keep one color, desaturate everything else | | Query Local LLM | LLM | Send prompts to OpenAI-compatible APIs (local or cloud) | | Extract Character Info | LLM | Read embedded character metadata from a PNG file path | | Snake Game 🐍 | Games | Classic Nokia-style snake | | Tetris 🟦 | Games | Block-stacking puzzle | | Dino Game πŸ¦– | Games | Chrome-style endless runner | | Space Invaders πŸ‘Ύ | Games | Arcade shooter | | DOOM πŸ‘Ή | Games | Full DOOM Shareware in the browser |


Installation

Recommended: install via ComfyUI Manager β€” search for CrasH Utils.

Manual:

cd ComfyUI/custom_nodes/
git clone https://github.com/chrish-slingshot/CrasHUtils.git

Restart ComfyUI. No extra dependencies β€” everything runs out of the box.


Loaders

Grid LoRA Loader

Visual multi-LoRA loader with a thumbnail grid browser, selected-LoRA panel, and per-tag trigger output. Inspired by rgthree's LoRA tooling.

Grid LoRA Loader

Outputs: MODEL, CLIP, triggers

| Panel | Actions | |-------|---------| | Browse | Navigate folders, search, SFW toggle, double-click to add/remove LoRAs, right-click for info | | Selected | Single-click enable/disable, double-click remove, βš™ for strength | | Trigger Tags | Toggle which tags are sent to the triggers output |

SFW toggle: When enabled, any folder named NSFW (case-insensitive) is hidden from browse and search β€” at any depth in your LoRA library. Turn it off to show those folders again.

Thumbnails: place an image next to each .safetensors file using the same base name β€” .png, .webp, .jpg, or .jpeg (.png is preferred when multiple exist). Right-click a Preview Image β†’ Save as LoRA thumbnail to save from a generated image (saved as .png, overwrites existing).

Trigger words: companion .txt file beside the LoRA (same base name). One per line or comma-separated.

Panels: drag dividers between Browse / Selected / Tags to resize. Settings persist per node.

Typical workflow:

  1. Connect model and clip
  2. Browse and double-click LoRAs to add them
  3. Tune strength with βš™; disable any you want to keep but not apply
  4. Toggle trigger tags for your prompt
  5. Connect MODEL, CLIP, and triggers downstream

List LoRA Loader

Same backend and outputs as the grid loader, in a vertical list layout. Better when you want names and trigger tags readable at a glance rather than a thumbnail wall.

List LoRA Loader

Browse: folder navigation, search, SFW toggle, double-click add/remove, right-click info. Trigger tags appear inline on each row.

Selected: same enable/disable, strength, and remove controls as the grid loader.

Everything else β€” thumbnails, .txt triggers, Preview Image save, MODEL / CLIP / triggers outputs β€” works the same as Grid LoRA Loader.


Checkpoint Names

Pass-through node that outputs the selected checkpoint filename as a STRING. Useful when a workflow needs the checkpoint name as text (logging, filenames, LLM prompts, etc.).


Image

Resolution Picker

Click a resolution to output Width and Height integers. Each option shows a small aspect-ratio preview.

Resolution Picker

| Resolution | Orientation | |------------|-------------| | 1440 Γ— 868 | Landscape | | 1440 Γ— 1040 | Landscape | | 1280 Γ— 1280 | Square | | 1040 Γ— 1440 | Portrait | | 868 Γ— 1440 | Portrait |

Connect outputs to Empty Latent Image or anywhere you need dimensions. For the full list of SDXL-trained sizes, use SDXL Resolution instead.


SDXL Resolution

Dropdown of all official SDXL-trained resolutions (1024Γ—1024, 1152Γ—896, 1216Γ—832, etc.) with aspect ratio labels. SDXL gives best results at these specific sizes.

SDXL Resolution SDXL Resolution example


SDXL Resolution To Dimensions

Splits the SDXL Resolution string into separate width and height outputs β€” one connection instead of two downstream.

SDXL Resolution To Dimensions


Effects

Image Glitcher

Authentic glitch art with chromatic aberration and CRT scanlines. Based on the HTML image glitcher by Felix Turner.

Image Glitcher

| Parameter | Range | Effect | |-----------|-------|--------| | glitchiness | 0–100 | Corruption and chromatic aberration intensity | | brightness | 0–100 | Brightens the image; useful with scanlines | | scanlines | toggle | CRT TV scanlines |

Image Glitcher result


Color Stylizer

Pick one color to preserve; everything else is desaturated.

Color Stylizer before/after Color Stylizer example

| Parameter | Effect | |-----------|--------| | target_color | Color to keep (hex or RGB) | | tolerance | How closely colors must match | | desaturation | How much to grey out non-matching areas |


LLM

Query Local LLM

Send prompts to any OpenAI-compatible API and get text back in your workflow β€” prompt expansion, descriptions, or general text tasks.

Query Local LLM

Works with OpenAI, LM Studio, Ollama, text-generation-webui, and other compatible endpoints. Configure URL, system message, context length, and seed.


Extract Character Info

Reads embedded character metadata from a PNG file path (base64-encoded text chunks) and outputs it as a string. Useful for workflows that store character data inside generated images.


Games

Browser games that run inside ComfyUI nodes β€” no installs, no external deps. Handy while waiting on long generations.

Controls (all games):

  • Click the game canvas to capture keyboard input
  • Click outside the node to release it

🐍 Snake Game

Classic Nokia-style snake. Arrow keys or WASD; Space to pause/restart.

<img width="356" height="395" alt="Snake Game" src="https://github.com/user-attachments/assets/aedee4ce-15ff-433c-a877-35ff7e61da6e" />

🧱 Tetris

Arrow Left/Right move, Down soft drop, Up rotate, Space hard drop. Score, levels, next-piece preview.

Tetris


πŸ¦– Dino Game

Chrome offline runner. Space or Up to jump. Increasing difficulty and high score.

Dino Game


πŸ‘Ύ Space Invaders

Arrow keys move, Space shoots. Wave-based arcade action.

Space Invaders


πŸ”« DOOM

Full DOOM Shareware v1.9 in the browser via js-dos.

DOOM

Automatic setup (recommended): add the node β€” it downloads ~2MB on first run from several mirrors, then launches.

Manual setup (if auto-download fails):

  1. Download DOOM Shareware v1.9 from Doomworld or Archive.org
  2. Place DOOM.EXE and DOOM1.WAD in ComfyUI/custom_nodes/CrasHUtils/doom/
  3. Restart ComfyUI

Troubleshooting: click outside the node if keyboard sticks; check the browser console if download fails.


Issues & contributions

Found a bug or want a feature? Open an issue on GitHub.

Pull requests welcome β€” especially new games or utility nodes.


Credits

  • Image Glitcher β€” Felix Turner
  • LoRA loaders β€” UI inspired by rgthree's LoRA tooling
  • DOOM β€” js-dos emulator; Shareware Β© id Software

License

MIT License β€” use, modify, and distribute freely.

DOOM Shareware is distributed under id Software's original shareware license.

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

Learn more