GALIAIS-Nodes Composer Template Pack
Your Composer Templates, Packed Up and Portable
- 模板包JSON
- 模板名称JSON
- 状态JSON
If you've been building up a library of character composer templates in GALIAIS-Nodes, the day comes when you want to move them to another machine, hand them to a friend, or just not lose them to a clean reinstall. That's the entire job of the Composer Template Pack node: it exports and imports your saved composer templates as one portable JSON bundle. Nothing fancy, nothing clever - a backup and sharing tool for the templates you already own.
The composer templates it manages are the reusable positive-prompt skeletons that GALIAIS-Nodes' character composer nodes (CharacterComposer, TypedComposerV2) use to slot in identity, outfit, pose and the rest. The pack node treats that whole set as a "pack" with a name and description, which is a much nicer unit to version than a folder of individual templates.
How it works
One 操作 (operation) dropdown drives everything: 导出包 (export pack), 导入包 (import pack), or 列出包 (list pack). The other inputs are what you'd expect:
- 包名称 - the pack's name; defaults to
galiais_composer_templates. - 描述 - a free-text description that rides along in the exported JSON.
- 模板名前缀 - an optional prefix applied to every template name on import. Handy when two people have both defined
default_heroand you don't want a collision. - 模板包JSON - the payload. You paste an exported pack here to import it.
Export reads every template out of the local store and emits a schema-versioned JSON bundle (schema_version: 2) with the pack name, description, and all templates. Import takes that JSON, sanitizes each template name, applies your prefix if set, and merges them into the store, skipping any entry that's empty or malformed. List just tells you what's in the store.
Three outputs, all strings: 模板包JSON (the portable bundle), 模板名称JSON (the sorted list of template names), and 状态JSON (which records what the run did - count, changed flag, and an error field if import parsing failed). For a quick sanity check, wire 状态JSON into a text viewer.
Installing it
It's one of ~50 nodes in the GALIAIS-Nodes pack, so install the pack, not this node:
cd ComfyUI/custom_nodes
git clone https://github.com/GALIAIS/GALIAIS-Nodes.git
Restart ComfyUI. ComfyUI Manager can find the pack by searching "GALIAIS-Nodes". No Python dependencies and no model downloads - the pack ships pure Python with an empty dependencies list. Note the whole pack's UI is Chinese-first: the node title is "GALIAIS-Nodes Composer Template Pack" but every field label is 操作, 包名称, 描述, and so on. The translations above are what you're looking at.
Gotchas
The one trap is import. If you paste something that isn't valid JSON, the node doesn't crash - it sets error in 状态JSON and imports nothing. So keep your exported 模板包JSON intact; round-tripping through a chat app or email can silently mangle quotes. And remember export output is a snapshot: if you've since added templates, export again before you treat the file as current.
For an obscure utility node this one's refreshingly boring, and boring is good here - it does one job and does it without touching the network or an API key.
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| 操作 | COMBO | 导出包 | 3 options: 导出包, 导入包, 列出包 |
| 包名称 | STRING | galiais_composer_templates | — |
| 描述 | STRING | — | |
| 模板名前缀 | STRING | — | |
| 模板包JSON | STRING | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| 模板包JSON | STRING | — |
| 模板名称JSON | STRING | — |
| 状态JSON | STRING | — |