Node-based image prompt generator for ComfyUI. Drag characters, costumes, locations and more into a graph to build prompts for Stable Diffusion, Flux and others, with multi-language UI.
Libretto is an open-source, desktop node-based prompt engineering and scene composition studio designed specifically for ComfyUI by Higeneko9. Rather than typing monolithic text prompts, Libretto empowers AI artists and concept designers to structure prompts visually using reusable, modular nodes for characters, costumes, poses, locations, camera angles, and lighting conditions. Engineered with an Electron desktop shell, a high-performance FastAPI Python backend, and a modern React node canvas, Libretto seamlessly bridges to your local or network ComfyUI installation, dispatching prompt graphs and receiving generated images with full seed and metadata tracking.
How It Works
Libretto operates through structured, deterministic execution stages:
Node-Based Prompt Graph: Assembles characters, costumes, poses, lighting, and environmental styles into a modular, visual execution graph.
Reusable Preset Libraries: Stores parameterized prompt components and tags into organized asset libraries for rapid scene recombination.
Live ComfyUI Bridge: Dispatches composed positive/negative prompt payloads and sampler parameters directly to a local or remote ComfyUI instance via WebSocket/REST.
Synchronous Result Inspection: Receives generated image buffers directly inside the integrated results browser with complete seed and parameter history.
Multi-Language UI Localization: Supports seamless runtime language switching across English, Japanese, and internationalized prompting conventions.
Libretto node-based ComfyUI prompt generator workspace with graph editor and inspector
Libretto result viewer displaying generated Stable Diffusion and Flux image history
Key Technical Features & Capabilities
Visual Node-Based Prompt Construction: Compose complex multi-character scenes, LoRA triggers, and style embeddings using drag-and-drop graph connections.
Reusable Preset & Character Libraries: Modularize prompt components into reusable presets for characters, costumes, poses, and environments across multiple projects.
Direct ComfyUI Integration: Connects via WebSockets and REST APIs to local or remote ComfyUI servers, queueing generation jobs without manual copy-pasting.
Integrated Results Browser & Gallery: Inspect generated outputs alongside their corresponding node graph configurations, random seeds, and sampler settings.
Cross-Platform Native Desktop Packages: Ships pre-built, notarized desktop installers for Windows (x64), macOS (Apple Silicon ARM64), and Linux (AppImage & deb).
Multi-Language User Interface: Built-in comprehensive internationalization supporting English and Japanese interfaces natively.
## Installation & Setup Guide
### Desktop Application Installers
Download the latest native bundle from GitHub Releases:
- **Windows**: Download and run `Libretto-*-win-x64.exe`.
- **macOS**: Mount `Libretto-*-mac-arm64.dmg` and drag Libretto into `/Applications`.
- **Linux**: Install `.deb` package via `sudo apt install ./Libretto-*.deb` or execute `.AppImage`.
### Connect to ComfyUI
1. Start your local ComfyUI server: `python main.py --listen 127.0.0.1 --port 8188`.
2. Launch Libretto and verify server connection under Settings (`http://127.0.0.1:8188`).
Ready to run Libretto?
100% Free & Open-Source native desktop software. Star the repository to support development.