ComfyUI Extension: Lite Text to File Tools

Authored by JasonHoku

Created

Updated

2 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.

Lightweight and fast, text to and from file tools for ComfyUI, has some JSON capabilities as well, great for storing, reading, organizing, batching text and batch text operations.

README

ComfyUI Lite Text-to-File

Simple and lightweight text file operations for ComfyUI workflows.

Features

  • πŸ“ Write and read text files
  • πŸ”’ JSON array operations
  • πŸ—οΈ JSON key-value storage
  • πŸ“‹ Append lines with timestamps
  • πŸ’Ύ Auto-saves to ComfyUI output directory

Installation

cd ComfyUI/custom_nodes/
git clone https://github.com/JasonHoku/comfyui-lite-text-to-file-tools
# Restart ComfyUI

Nodes

| Node | Description | |------|-------------| | Write To Text File | Write or append text files | | Load From Text File | Read text files | | Append Input To JSON Array File | Build JSON arrays progressively | | Load From JSON File | Read JSON with formatting options | | Save Text Into JSON | Store key-value pairs in JSON | | Load Text From JSON From Key | Retrieve values by key | | Append Line To Text File | Add timestamped log entries | | Clear JSON Array File | Reset JSON arrays |

Quick Example

Save Text Into JSON:

Very useful for batching a bunch of LLM VL outputs and saving them with the filename or path as a key for later use.

Save Text Into JSON
β”œβ”€ key: "path/or/filename/or/any_string"
β”œβ”€ value: "a beautiful sunset"
└─ file: "prompts/settings.json"

Load it back:

Load Text From JSON From Key
β”œβ”€ key: "path/or/filename/or/any_string"
└─ file: "prompts/settings.json"
β†’ outputs: "a beautiful sunset"

File Location

All files save to: ComfyUI/output/{your-path}

Example: text/data.json β†’ ComfyUI/output/text/data.json

Use Cases

  • πŸ’‘ Log all your prompts for review
  • 🎯 Save/load workflow configurations
  • πŸ“Š Collect batch processing results
  • πŸ› Debug workflows with timestamped logs
  • πŸ”„ Build datasets from generation runs

License

MIT

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