CivArchive
    Wildcard Saver - v1.0
    Preview 119911931
    Preview 119910211

    Fix: Version 1.2.1 – The "Stable Index" Patch

    This update addresses the "Widget Shuffling" bug discovered in earlier versions.

    Special thanks to wrOngplanet for reporting this issue.

    🛠 The Fix: Stable Widget Indexing

    In previous versions, refreshing the browser or reloading a workflow could cause ComfyUI to "shuffle" settings (e.g., your filename becoming true or checkboxes turning into text).

    ⚠️ Known Issues

    • UI Focus Requirement: The "Prompt Display" inside the node only updates in real-time if the ComfyUI browser tab is currently in focus.

    • Why? ComfyUI (and most browsers) limit JavaScript execution for background tabs to save system resources.

    🚀 Update: Version 1.2 - Native UI Display & Internal Cleanup

    The Wildcard Saver just got a major upgrade to make your prompt engineering workflow even faster. he node now features a built-in display.

    The saved text is "hammered" directly into the node's UI, allowing you to see your LLM-generated prompts in real-time without needing extra nodes.

    How to Install v1.2:

    1. Locate your ComfyUI directory: Go to the folder where you installed ComfyUI.

    2. Open the Custom Nodes folder: Navigate to ComfyUI/custom_nodes/.

    3. Drop the folder: Drag the entire WildCardSaver folder (containing the .py files, the __init__.py, and the js subfolder) into that directory.

    4. Restart ComfyUI: Once you restart, the system will automatically read the __init__.py and load the new JavaScript UI features.

    Why this works seamlessly:

    • Automatic UI Loading: The __init__.py file contains a WEB_DIRECTORY = "./js" instruction. This tells ComfyUI to automatically load the wildcard_saver.js script into your browser for the new "Show Text" feature.

    • Self-Contained: Everything needed for the new native text display and the string output slot is contained within that one folder.

    • Fully Offline: No external downloads or internet connections are required; the node runs entirely on your local hardware.


      Wildcard Saver: Quick Start

    The Wildcard Saver node is a utility for ComfyUI designed to capture and store text strings—such as prompts, subjects, or styles—directly into .txt files. This is perfect for building your own custom wildcard libraries on the fly without leaving the ComfyUI interface.

    1. Key Features

    • Dynamic Saving: Convert any text input (or generated prompt) into a reusable wildcard file.

    • Three Save Modes: Choose between saving to your standard wildcards folder, the output directory, or a temp folder.

    • Smart Overwrite Protection: If "append" is turned off, the node automatically renames files (e.g., colors_1.txt) to prevent accidental data loss.

    • Live Console Debugging: Provides a clear visual log in your terminal showing how many lines were added and the exact file path used.



    3. Settings Explained

    • text: The string you want to save. Each new line in the text will be treated as a separate entry in the wildcard file.

    • filename: The name of your file (do not include .txt).

    • append: * True: Adds the new text to the end of the existing file.

      • False: Creates a new file. If the name exists, it adds a numbered suffix.

    • save_mode:

      • wildcards: Saves to ComfyUI/wildcards/ (Created automatically if missing).

      • output: Saves to your standard ComfyUI output folder.

      • temp: Saves to the temporary folder.

    • debug: Set to True to see color-coded success and error messages in your terminal.


    4. Reading the Debug Logs (Console)

    When debug is enabled, you will see a blue (magenta-ish) log entry in your terminal:

    • Before: How many valid lines were in the file before saving.

    • After: The total count of lines now in the file.

    • Path: The exact disk location where the file was saved.


    Why use this?

    • Prompt Harvesting: If you generate a great prompt using LLMs or randomizers, you can save it instantly to your permanent library.

    • Automation: Create "dataset" files for training or long-term projects by appending successful prompt combinations to a list while you work.


    Note: 'VibeCoded'

    Description

    Other
    ZImageTurbo

    Details

    Downloads
    29
    Platform
    CivitAI
    Platform Status
    Available
    Created
    2/4/2026
    Updated
    2/26/2026
    Deleted
    -

    Files

    wildcardSaver_v10.zip

    Mirrors

    CivitAI (1 mirrors)