Extensions/Lite Text to File Tools
ComfyUI Extension

Lite Text to File Tools

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.

By JasonHoku·Created 6 months ago·Updated 5 months ago· 2
JasonHoku/comfyui-lite-text-to-file-tools
Nodes9
On cloudLocal install
Categorylite-text-to-file
Stars2
Updated5 months ago
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.jsonComfyUI/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