ComfyUI Node

GitHub Link

A GitHub button on every node, built by scanning your own install

By yiwangsimple·Created 2 years ago·Updated about a year ago· 89
GitHub Link

      GitHub Link is a strange little utility that does something ComfyUI probably should do natively: put a "jump to source repo" link on your nodes. When you're staring at a failing node you don't recognize, the fastest fix is reading its repo's issues or README - and this node's JavaScript extension adds a GitHub button to node titles so you can get there in one click instead of googling the node name and hoping.

      The mechanism is where it gets interesting, because it's fully local and self-constructing. On startup the pack scans two sources: ComfyUI-Manager's extension-node-map.json (the same registry Manager uses to know which repo owns which node) and, for anything not covered there, it walks every folder in custom_nodes/, reads each repo's .git/config, extracts the GitHub URL, and maps node folder → repo. The results get written to web/github_links.json, and a frontend extension adds the buttons. The node itself placed on the canvas is a stub - no inputs, no outputs, and a github_link() function that just returns {}. It's the pack's own button that does the work.

      Installing it

      cd ComfyUI/custom_nodes
      git clone https://github.com/yiwangsimple/ComfyUI_GroqChat
      

      restart. No dependencies beyond what the pack needs. One subtle requirement: it reads ComfyUI-Manager's map file at custom_nodes/Comfyui-Manager/extension-node-map.json, so the button coverage is much better if you have Manager installed - which you should anyway, it's the standard way to install packs.

      Honest take

      For nodes not in Manager's map, coverage depends on the custom_nodes folders being git clones with a remote - if you installed a pack by copying a folder or zipping it, there's no .git/config and no button. Also note the mapping is folder name → repo, so it points at the pack's homepage, not the specific node's file - you still navigate to the source yourself. This is a nice quality-of-life add, not a must-have, and it's harmless to leave installed. It also quietly demonstrates the author's approach to this whole pack: a grab-bag of small conveniences around the chat nodes, some of which (like this one) have nothing to do with chatting at all.

      Categoryutils

      Inputs (0)

      No inputs

      Outputs (0)

      No outputs