Skip to content

Conversation

@christian-byrne
Copy link
Contributor

@christian-byrne christian-byrne commented Jan 21, 2026

Adds search_aliases field to improve node discoverability. Users can define alternative search terms for nodes (e.g., "text concat" → StringConcatenate).

Changes

  • Add search_aliases: list[str] to V3 Schema in comfy_api/latest/_io.py
  • Add SEARCH_ALIASES class attribute support for V1 nodes
  • Include field in /object_info response via server.py
  • Add aliases to high-priority core nodes based on failed search analytics

V1 usage

class MyNode:
    SEARCH_ALIASES = ["alt name", "synonym"]

V3 usage

io.Schema(
    node_id="MyNode",
    search_aliases=["alt name", "synonym"],
    ...
)

Related PRs

Nodes with aliases added

Node Aliases
CLIPTextEncode text, prompt, positive prompt, negative prompt, encode text
CheckpointLoaderSimple load model, checkpoint, model loader, ckpt, model
LoraLoader lora, load lora, apply lora, lora loader
KSampler sampler, sample, generate, denoise, txt2img, img2img
VAEDecode decode, decode latent, latent to image
VAEEncode encode, encode image, image to latent
EmptyLatentImage empty, empty latent, new latent, blank
SaveImage save, save image, export image, download
LoadImage load image, open image, import image, upload image
ImageScale resize, scale, zoom, zoom in
PreviewImage preview, show image, view image, display image
PreviewAny preview, show, display, view, inspect, debug
ControlNetLoader controlnet, control net, cn, load controlnet
ControlNetApplyAdvanced controlnet, apply controlnet, use controlnet
ImageUpscaleWithModel upscale, upscaler, upsc, hires, superres
StringConcatenate text concat, join text, concat, string
BatchImagesNode batch, image batch, combine images, merge images
ConditioningCombine combine, merge conditioning, mix prompts

Adds `search_aliases` field to improve node discoverability. Users can define alternative search terms for nodes (e.g., "text concat" → StringConcatenate).

Changes:
- Add `search_aliases: list[str]` to V3 Schema
- Add `SEARCH_ALIASES` support for V1 nodes
- Include field in `/object_info` response
- Add aliases to high-priority core nodes

V1 usage:
```python
class MyNode:
    SEARCH_ALIASES = ["alt name", "synonym"]
```

V3 usage:
```python
io.Schema(
    node_id="MyNode",
    search_aliases=["alt name", "synonym"],
    ...
)
```

## Related PRs
- Frontend: Comfy-Org/ComfyUI_frontend#XXXX (draft - merge after this)
- Docs: Comfy-Org/docs#XXXX (draft - merge after stable)
@Kosinkadink
Copy link
Member

Cinema. I'll do a lil cheeky test locally and then merge.

@Kosinkadink
Copy link
Member

Kosinkadink commented Jan 21, 2026

V1 json looks good.

For V3, you'll need to modify NodeInfoV1 dataclass to have a search_aliases field, and apply it from the node schema in Schema class' get_v1_info.

There technically is a NodeInfoV3 class and corresponding get_v3_info function on Schema, but that was made back when we had the assumption we would at some point change how the frontend consumes the V3 schema. I think we are at the point where we will simply keep using the V1 formatting so implementing the change there is not necessary. I will likely do a small PR later to just eradicate all references to that code path.

Copy link
Contributor Author

@christian-byrne christian-byrne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in dcde864. Added search_aliases field to NodeInfoV1 dataclass and propagated it through Schema.get_v1_info.

Copy link
Member

@Kosinkadink Kosinkadink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alrighty, json is as expected now for V3. Looks good to me.

@Kosinkadink Kosinkadink merged commit bdeac88 into master Jan 21, 2026
14 checks passed
christian-byrne added a commit to Comfy-Org/ComfyUI_frontend that referenced this pull request Jan 23, 2026
Adds `search_aliases` to Fuse.js search keys, enabling users to find
nodes by alternative names.



https://github.com/user-attachments/assets/6bde3e5d-29c7-4cb0-b102-e600a92c7019



## Changes
- Add `search_aliases` to Fuse.js keys in `nodeSearchService.ts`
- Add type definition for `search_aliases` field in `nodeDefSchema.ts`

**Depends on:** Comfy-Org/ComfyUI#12010

## Related PRs
- **Backend:** Comfy-Org/ComfyUI#12010,
Comfy-Org/ComfyUI#12035
- **Adding aliases**:
  - Comfy-Org/ComfyUI#12016
  - Comfy-Org/ComfyUI#12017
  - Comfy-Org/ComfyUI#12018
  - Comfy-Org/ComfyUI#12019
- **Docs:** Comfy-Org/docs#729

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-8223-feat-Add-search_aliases-to-node-search-2ef6d73d365081d89bcccffb33659a88)
by [Unito](https://www.unito.io)

Co-authored-by: Amp <amp@ampcode.com>
Myestery pushed a commit to Comfy-Org/ComfyUI_frontend that referenced this pull request Jan 23, 2026
Adds `search_aliases` to Fuse.js search keys, enabling users to find
nodes by alternative names.



https://github.com/user-attachments/assets/6bde3e5d-29c7-4cb0-b102-e600a92c7019



## Changes
- Add `search_aliases` to Fuse.js keys in `nodeSearchService.ts`
- Add type definition for `search_aliases` field in `nodeDefSchema.ts`

**Depends on:** Comfy-Org/ComfyUI#12010

## Related PRs
- **Backend:** Comfy-Org/ComfyUI#12010,
Comfy-Org/ComfyUI#12035
- **Adding aliases**:
  - Comfy-Org/ComfyUI#12016
  - Comfy-Org/ComfyUI#12017
  - Comfy-Org/ComfyUI#12018
  - Comfy-Org/ComfyUI#12019
- **Docs:** Comfy-Org/docs#729

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-8223-feat-Add-search_aliases-to-node-search-2ef6d73d365081d89bcccffb33659a88)
by [Unito](https://www.unito.io)

Co-authored-by: Amp <amp@ampcode.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants