Nodes/comfyui-dreambait-nodes/Dreambait Folder Opener πŸ“
ComfyUI Node

Dreambait Folder Opener πŸ“

Stop hunting for node files in your terminal

By drmbtΒ·Created 2 years agoΒ·Updated 7 months agoΒ· 6
Dreambait Folder Opener πŸ“

      Dreambait Folder Opener is a QoL utility that doesn't process data at all - it opens folders on your machine. There are no inputs and no outputs. Drop it in a workflow, pick a node, and it opens the folder that node's code lives in, in your OS file browser. It's for when you're debugging a custom node, need to read its source, or want to drop a model file into the right directory and can't remember where custom_nodes actually is.

      What it actually does

      The node itself is a no-op - the noop function returns an empty dict. All the work happens through a route it registers on ComfyUI's backend (PromptServer). When you trigger it, it resolves which node you've selected:

      1. It looks up the node's class in ComfyUI's NODE_CLASS_MAPPINGS.
      2. From the class's __module__, it finds the file path.
      3. If the path is inside custom_nodes, it opens that pack's directory (e.g. custom_nodes/ComfyUI-Manager). If it's a built-in core node (nodes, comfy, comfy_extras), it opens the ComfyUI root.

      So it's a tiny filesystem resolver with a GUI, which sounds silly until you've spent ten minutes with find trying to locate where a node you installed three months ago lives.

      The platform catch

      The folder-open itself works on Windows, macOS, and Linux (it shells out to the platform's opener). But there's a Windows-specific flourish: if pywin32 is installed, it also tries to force-focus and foreground the file explorer window, because just opening a window doesn't mean you'll see it. On Linux or macOS you get the plain open without the focus magic. And on Windows without pywin32, the focus feature silently degrades - the folder still opens, you just don't get the "bring to front" nudge. The pack's requirements.txt pulls pywin32 on Windows, so in practice you'll have it.

      Where it earns its keep

      This is a developer-quality-of-life node, not a generation node. Reach for it when:

      • A workflow won't load and you want to read the failing node's source
      • You need to drop a LoRA, model, or font into the right pack folder
      • You're trying to figure out which pack "owns" a node that's colliding with another

      It also prints a lot of diagnostic info to the console as it resolves the path, which doubles as a handy way to see exactly how ComfyUI maps node classes to files.

      Install

      It's one node in drmbt/comfyui-dreambait-nodes:

      cd ComfyUI/custom_nodes
      git clone https://github.com/drmbt/comfyui-dreambait-nodes
      

      then restart ComfyUI (or use ComfyUI Manager, search "comfyui-dreambait-nodes"). As with the whole pack, expect the full dependency install - this is a grab-bag that bundles heavy ML deps regardless of whether you only use the utility nodes. It's a nice convenience, but it's not worth installing the pack for alone; it's a bonus that makes the bundle feel considered.

      Categoryutils

      Inputs (0)

      No inputs

      Outputs (0)

      No outputs