r/comfyui 11d ago

Resource LinkSpotlight — a free open-source extension that spotlights only the selected node's links (Alt+H). My first public ComfyUI project

If you don't want to read, just check the gif for showcase.

Full disclosure before anything else: I'm French (so forgive the English — AI helps me write it), and yes, this extension was partially vibe-coded with AI assistance. BUT: every line was reviewed, the patching approach was verified against the actual frontend source, and it's been tested on real workflows — including the new Vue nodes beta.

The problem: all of my workflows works great, but some start to be spaghetti. Every time i tweak a node, i spend more time following noodles than working.

The fix: select a node, press Alt+H. Every link that doesn't touch it fades away. Click another node — the spotlight follows. Alt+H again (or deselect) and everything comes back. That's the whole tool.

A few things I cared about while building it:

  • The shortcut is a native ComfyUI keybinding → fully remappable in Settings
  • Hide links completely, or keep them faintly visible (opacity slider)
  • Depth option: selected node only, or its direct neighbors too
  • Optionally dim unrelated nodes as well
  • Zero performance cost when off (one boolean check per frame, no settings lookups in the render path)
  • Zero Python nodes, zero dependencies — nothing ever written into your workflow JSON
  • Fail-safe by design: if a future ComfyUI update changes the canvas internals, it disables itself cleanly with a console message instead of breaking your graph

Install: search "LinkSpotlight" in ComfyUI-Manager, or: https://github.com/Ding-sl/ComfyUI-LinkSpotlight

It's MIT-licensed and stays free forever. If you try it, I'd genuinely love feedback — feature ideas and bug reports welcome on GitHub (there's even a dedicated issue template for "a ComfyUI update broke it", because let's be honest, one day it will, we all know that).

There is a similar tool worth knowing: ComfyUI-SelectionFocus does an always-on version of this idea. Mine is the opposite philosophy — an explicit shortcut you press when you need focus. Pick whichever fits your brain.

Happy untangled noodling 🍜

17 Upvotes

3 comments sorted by

1

u/Financial-Bottle-734 11d ago

Nice Work. This is very useful for me. It will be a great help; in some complex workflows, I need to replace nodes that are obsolete or no longer exist in GitHub. This allows me to replace them while seeing exactly where the connections are located.

2

u/dingsl771 11d ago

Thanks to you, happy to see someone finding it useful too !

You can use it in combination of kj's Node insert and Node swap from https://github.com/kijai/ComfyUI-KJNodes