D站画廊 (Danbooru Gallery)
Browse Danbooru from inside ComfyUI, pull the image and its tags straight into your graph
- bypass_image
- images
- prompts
This is the node the whole pack is named after, and it does exactly what it says: it puts a Danbooru image browser inside your ComfyUI canvas. Pick a post, and it outputs both the image and its full tag string at once - no tabbing out to a browser, copying a URL, downloading the file, and hand-typing the tags into an encoder.
Why you'd reach for it
If you're prompting anything in the Illustrious/NoobAI/Pony lineage, Danbooru's tag vocabulary basically is the prompting language - those models were trained on Danbooru-tagged data, so a real Danbooru post's tag list is a working prompt, not a guess at one. The tedious part was always the round trip: browse the site, eyeball a post, copy its tags, come back, paste, repeat. This node collapses that into one panel that lives where you're already working, and one of its early users on r/comfyui put it plainly - it was "a big change" over the CivArchive-style gallery nodes that came before it, doing the browsing and the tag extraction in one step instead of two separate tools.
It's also the author's first published ComfyUI node (this pack is their first, built to support their own workflow project and shared afterward) - worth knowing going in: it's a genuinely useful, actively-used tool, but it's a small one-person project, not a battle-tested pack with years of edge cases shaken out.
How it works
There's no manual configuration to speak of - required inputs are empty. You open the node's panel, browse (the README mentions age-rating filters, a favorites list, and a leaderboard-style view), pick an image, and the node emits it. Two optional inputs, bypass_image and bypass_prompts, exist for feeding image/prompt data in from elsewhere instead - useful if you want to skip the interactive picker on a given run and drive the node from upstream nodes instead, though the pack doesn't document the exact bypass semantics beyond what the field names suggest.
The inputs and outputs that matter
bypass_image(optional, IMAGE) andbypass_prompts(optional, STRING) - feed these to override the interactive picker.images(output, list) - the picked image(s).prompts(output, list) - the matching tag string(s), ready to feed straight into a text encoder, or into this pack's own PromptSelector if you want to prepend a standing prefix first.
This is an output node with real data outputs at the same time - the browsing UI is the node's configuration, and its results flow onward through images/prompts like any other node.
How to install it
ComfyUI Manager: search "ComfyUI-Danbooru-Gallery", install, restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/Aaalice233/ComfyUI-Danbooru-Gallery.git
cd ComfyUI-Danbooru-Gallery
pip install -r requirements.txt
Restart ComfyUI. This node specifically needs live internet access to reach Danbooru at browse time - it's not pulling from a local cache - so it won't do anything useful on an offline or fully network-locked ComfyUI instance.
Common issues & troubleshooting
The panel loads in Chinese. This one's confirmed by users, not a guess: the gallery's UI defaults to Mandarin Chinese. Click the gear/settings icon inside the panel to switch the display language to English - it's a one-time setting, not a limitation.
No panel appears at all, even though the node is on the canvas. The pack's frontend extension lives in a separate WEB_DIRECTORY registration from the Python node code, and the two can fail independently. Check the ComfyUI startup log for confirmation the web directory registered, then try a hard browser refresh (clear cache) - a stale cached JS bundle is the other common cause.
Node itself doesn't show up in the add-node menu. Standard pack-load issue: confirm the repo path is exactly ComfyUI/custom_nodes/ComfyUI-Danbooru-Gallery, confirm dependencies installed cleanly, and check the console for an import error on restart.
Browsing hangs or comes back empty. Since this node talks to Danbooru live, treat it like any other network call - check your connection, and be aware Danbooru itself can rate-limit or serve slowly under load, which will look identical to a broken node from inside ComfyUI.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| bypass_imageopt | IMAGE | — | |
| bypass_promptsopt | STRING | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| images | IMAGE | — |
| prompts | STRING | — |