A modular suite of utilities and scripts designed to extend and enhance the functionality of Shimmie2, with a focus on Danbooru-based metadata and large-scale automation workflows.
-
📄 Danbooru Wiki Importer Converts and imports Danbooru wiki pages into Shimmie2’s database with support for Shimmie-style formatting and cleanup rules.
-
⚡ Metadata Caching Parses Danbooru
posts.jsoninto a fast SQLite lookup for tag fallback and offline support.
- Python 3.12
- Linux, Windows (partial support, not regularly maintained), or WSL
git clone https://github.com/Miyuutsu/shimmie2-tools.git
cd shimmie2-toolsCreate a venv and install the requirements.
All scripts are located in the scripts/ directory.
python scripts/booru_csv_maker.py --batch_size=20 \
--threads=8 --cache=database/posts_cache.db \
--character_db=database/characters.dbpython backend/scripts/precache_posts_sqlite.py input/posts.json \
-o backend/database/posts_cache.db --threads 8python backend/scripts/import_danbooru_wikis.py --user={dbuser} \
--db={shimmiedb} --pages=20 --convert=shimmieshimmie2-tools/
├── database/
│ ├── characters.db
│ ├── danbooru_wiki_cache.db
│ ├── posts_cache.db
│ └── tag_rating_dominant.db
├── scripts/
│ ├── booru_csv_maker.py
│ ├── import_danbooru_wikis.py
│ └── precache_posts_sqlite.py
├── requirements.txt
- Wiki imports support resume and smart
--update-existing
Pre-built database files are current as of April 19, 2025, using
nyanko7/danbooru2023 posts.json
and the Danbooru API.
posts_cache.db: 4.1GBdanbooru_wiki_cache.db: 89.6MB Place them intodatabase/.
🔗 Database files on Google Drive
This project is licensed under the GNU General Public License v3.0. You are free to use, modify, and distribute it under the same terms. See the License for details.
- Danbooru — for their rich metadata and API
- Shimmie2 — for the core imageboard framework
- ChatGPT — because odds are good I couldn't have done this without you
- Babyforce - For the tag_rating_dominant.db that was used
- All contributors and users 💜
❤️☕ Built with care and plenty of caffeinated determination.