GALIAIS-Nodes Composer Template Manager
The template manager saves your prompt layouts so the composer can reuse them
- 模板JSON
- 模板名称JSON
- 状态JSON
If the Final Composer is the hub, this is the filing cabinet. The Composer Template Manager stores and manages the prompt layouts the composer can use - the {{quality}}, {{prefix}}, {{all_sections}}, {{suffix}}-style templates that decide the order and structure of your final positive prompt. Instead of pasting a layout into the composer every time, you save it here once, then reference it by name.
It's a tiny CRUD node with exactly one interesting input: 操作 (operation), a dropdown with five actions. Everything else is data for that action:
- 列出 (list) - shows what's saved. 模板名称JSON output gives you the names.
- 保存/更新 (save/update) - stores the current 模板名称 (template name), 正面模板 (positive template), and 描述 (description) into the pack's template store.
- 删除 (delete) - removes the named template.
- 导入JSON (import JSON) - bulk-loads templates from a JSON blob (a
{"templates": {...}}structure or a single named template). - 导出全部 (export all) - dumps the whole store as JSON, which is your backup/portability path. Save it to a file and you can move your layouts between machines.
The default 正面模板 value shows you the slot language: {{quality}}, {{prefix}}, {{all_sections}}, {{suffix}}. {{all_sections}} is where all the wired-in character sections render; {{quality}} is the quality preset; the prefix/suffix slots are the composer's 额外前缀/额外后缀. You can reorder those slots, drop them, or add others - the composer resolves {{...}} placeholders against its slot map.
Outputs are 模板JSON (the full store or single template), 模板名称JSON (the sorted name list), and 状态JSON (the result of the operation - did it save, delete, or error). Read 状态JSON when a save seems to have done nothing; the "模板名称不能为空" (template name can't be empty) style errors land there.
The honest read
This node is pure quality-of-life, and it's the most skippable in the pack: you can use the composer's 自定义正面模板 field without ever opening this. It earns its place once you have several layouts - a "character portrait" layout, a "scene-wide" layout, a "no-quality-tags" layout - and you're tired of pasting them. The template store is local, written to a JSON file by the pack, so treat 导出全部 as your backup button. One quirk: it's a stateful store in a stateless graph, so "save" needs to actually run (the 状态JSON shows changed: true) - execute it once and don't expect the save to be a side effect of something else.
Install and gotchas
Pack-wide install:
git clone https://github.com/GALIAIS/GALIAIS-Nodes.git ComfyUI/custom_nodes/GALIAIS-Nodes
Restart ComfyUI, or ComfyUI Manager → "GALIAIS-Nodes". No pip dependencies, no models, no API calls - this node is fully local. The pack is new and quiet online; if your saved templates don't show up in the composer, check 模板名称 is spelled exactly the same, and remember the store is per-install, not portable until you 导出全部.
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| 操作 | COMBO | 列出 | 5 options: 列出, 保存/更新, 删除, 导入JSON, 导出全部 |
| 模板名称 | STRING | — | |
| 正面模板 | STRING | {{quality}}, {{prefix}}, {{all_sections}}, {{suffix}} | — |
| 描述 | STRING | — | |
| 导入JSON | STRING | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| 模板JSON | STRING | — |
| 模板名称JSON | STRING | — |
| 状态JSON | STRING | — |