gitwtfhub

wtf is ainz-unofficial-nai-toolkit?

ainz-sama120/ainz-unofficial-nai-toolkit — explained in plain English

Analysis updated 2026-05-18

3JavaScriptAudience · generalComplexity · 2/5Setup · easy

TL;DR

A browser userscript that adds a local prompt library and tag importer for NovelAI, Danbooru, Gelbooru and e621.

Mindmap

mindmap
  root((Ainz Toolkit))
    What it does
      Prompt library
      Character profiles
      Tag importer
    Tech stack
      JavaScript
      Tampermonkey
    Use cases
      Reuse NovelAI prompts
      Import Booru tags
      Compare image variants
    Audience
      NovelAI users
      Booru users
    Privacy
      Local storage only
      No credentials stored

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Save and reuse NovelAI character prompts without retyping them each time

REASON 2

Import tags and metadata directly from a Danbooru, Gelbooru or e621 post

REASON 3

Compare similar or duplicate images side by side as variants

REASON 4

Back up an entire prompt library as a single exportable JSON file

What's in the stack?

JavaScriptTampermonkeyUserscript

How it stacks up

ainz-sama120/ainz-unofficial-nai-toolkitabhagsain/bayut-maps-ratingsabhishek-kumar09/who-is-imposter
Stars333
LanguageJavaScriptJavaScriptJavaScript
Last pushed2021-04-12
MaintenanceDormant
Setup difficultyeasymoderateeasy
Complexity2/52/53/5
Audiencegeneralgeneralgeneral

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min

Requires the free Tampermonkey browser extension before installing the script.

Wtf does this do

Ainz Toolkit is a browser userscript that adds a local prompt manager on top of NovelAI's image generation tool, plus the image boards Danbooru, Gelbooru and e621. It runs through Tampermonkey, a free browser extension that lets small scripts modify pages you visit, so there is no separate app to install and no account to create. Once set up, the toolkit gives you a personal library for prompts: character profiles with their own positive and negative text, reusable tag sets, and full snapshots of an entire NovelAI setup that you can restore later. You can save a prompt straight from NovelAI's own input fields, then insert, append or replace text in those fields later with a click, instead of retyping or copy-pasting each time. The Booru integration lets you pull tags and image details directly from a Danbooru, Gelbooru or e621 post, either one at a time or in a batch from a listing page, and choose which categories of tags get imported. Imported images are stored as reusable entries with compressed local preview thumbnails, and the toolkit can group similar images together as variants so you can compare edits or recolors side by side. Other features include a searchable index of every tag used across your saved images, manual and rule based collections for organizing large libraries, and tools for finding duplicate or visually similar images. Everything is stored locally inside Tampermonkey rather than on a server, and the toolkit does not touch NovelAI login credentials or cookies. You can export your whole library as a JSON file for backup. This is a small, unofficial community project maintained by one developer, not an official NovelAI or Booru product, and it currently has just a handful of stars on GitHub.

Yoink these prompts

Prompt 1
Walk me through installing Tampermonkey and this userscript step by step.
Prompt 2
Explain what a userscript is and why this toolkit needs Tampermonkey to run.
Prompt 3
What is the difference between a Full Image snapshot and a regular saved prompt in this toolkit?
Prompt 4
Help me understand how the Booru tag import feature works before I try it.

Frequently asked questions

wtf is ainz-unofficial-nai-toolkit?

A browser userscript that adds a local prompt library and tag importer for NovelAI, Danbooru, Gelbooru and e621.

What language is ainz-unofficial-nai-toolkit written in?

Mainly JavaScript. The stack also includes JavaScript, Tampermonkey, Userscript.

How hard is ainz-unofficial-nai-toolkit to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is ainz-unofficial-nai-toolkit for?

Mainly general.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.