SuzumiyaAkizuki/DanbooruSearchOnline

本项目提供一种基于语义匹配的 Danbooru 标签查找方案。用户可以通过输入日常语言或模糊描述,查找并匹配 Danbooru 数据集中对应的标准标签,适用于辅助构建 Stable Diffusion、NovelAI 等 AI 绘画工具的提示词(Prompt)。

What it solves

AI image generation tools like Stable Diffusion and NovelAI rely on specific Danbooru tags to describe scenes, characters, and styles. Manually figuring out the exact English tags from a vague description is time-consuming and error-prone. This project provides an online tool that converts everyday Chinese or English descriptions into the correct, standardized Danbooru tags, plus extra helpers for building full prompts.

How it works

Behind the scenes, it uses vector-space semantic matching across four dimensions (English, Chinese extended words, wiki definitions, and Chinese core words) to find relevant tags even when your input is misspelled, vague, or in Chinese. It also supports smart segmentation: you can let the tool automatically split long sentences into concepts, or manually separate concepts with spaces, commas, or Chinese enumeration commas to keep them intact. The system additionally uses Danbooru's official tag alias to correct deprecated tags.

For related-tag and artist recommendations, it relies on co-occurrence statistics from the Danbooru gallery, normalized with NPMI to avoid trivially popular tags. When you select tags, the engine suggests tags that often appear together, and also recommends artists who commonly draw those elements. All selected items can be collected into a workspace where you adjust prompt weights, undo/redo changes, save favorites, import prompts, and export backups.

The project also exposes a REST API and a Model Context Protocol (MCP) server, allowing integration into AI assistants like Claude Desktop or custom workflows. It even provides format specifications for Anima, NewBie, and MOSS models to directly compile your tags into the right prompt structure.

Who it’s for

This tool is aimed at AI image generation enthusiasts—especially those using Stable Diffusion, NovelAI, or similar models—who need to translate visual ideas into precise Danbooru tags. It is also useful for prompt engineers, character designers, or anyone working with Danbooru-based datasets who wants a quick, semantic way to look up tags. Both Chinese and English speakers are supported.

Highlights

  • Multi-dimensional semantic matching — recovers correct tags from misspellings, Romanized input, or Chinese descriptions (e.g., “水手服” → serafuku).
  • Smart and manual segmentation — automatically splits long descriptions, but respects explicit separators (space, comma, Chinese comma/顿号) for precise control.
  • Co-occurrence recommendations — based on NPMI, suggests tags that frequently appear together with your selected tags, helping complete scene details.
  • Artist recommendations — find artists who specialize in drawing your selected tags, with a score based on normalized co-occurrence.
  • Full workspace editor — adjust weights, undo/redo, snapshot history, save favorites, import/export prompts, and store everything locally in the browser.
  • NSFW protection — automatically hides sensitive content until you enable it.
  • REST and MCP interfaces — integrate the search engine into your own tools or AI assistants via documented APIs and a Model Context Protocol server.

Related

  • Project
  • Project
  • Project
  • Project