Disclaimer: This project is not affiliated or endorsed by Inkbunny.
This project is a collection of userscripts and tools to enhance the Inkbunny experience. It includes a browser extension to detect AI-generated images and a live BBCode preview for Inkbunny.
Inkbunny AI Bridge is designed to detect AI-generated images made with stable diffusion in Inkbunny submissions. It processes files and descriptions and uses heuristics to determine if the submission follows the guidelines.
By using crafted heuristics, as well as the potential to use an LLM to inference the parameters. A general purpose API library is available to integrate with your own program logic.
You can quickly preview the BBCode while writing comments, editing a submission description, creating a journal entry, or writing a ticket. The script is available as Inkbunny Live BBCode Preview.user.js.
The Inkbunny AI Bridge extends the functionality of your browser through a userscript that creates a ticket ready for your review. Based on advanced heuristics, the script prepares everything you need to ensure the content meets Inkbunny's standards.
It displays a badge on each submission to quickly notify you of any potential flagged submission worth verifying.
It constructs a prepared ticket based on the heuristics for you to audit and modify to then submit to Inkbunny.
Full api server
Additionally, there's a full api server that provides additional tools.
A demo app is available either at https://inkbunny.keiau.space or in retool.

Important
Make sure you have API turned on in your Inkbunny account settings. You will need your API key and SID to use the Inkbunny API. You can change this in your account settings.
There are two parts to the Inkbunny AI Bridge, the server and the userscript.
You will need to install a userscript manager extension in your web browser. You can use Tampermonkey, Greasemonkey, or any similar userscript extension.
After installing a userscript manager, you can install the Inkbunny AI Bridge userscript.
- The current version of the userscript is available in scripts.
- Click on the "Raw" button, your userscript manager will recognize this as a userscript and ask for confirmation to install it.
- Alternatively you can either download or copy the content of the userscript and paste it in your userscript manager.
Tip
If you only need labeling for AI-generated images without the additional features, consider using the simpler userscript.
Todo:
- Fix blurring and removal of AI generated images (the old script does this but the new one is currently broken)
- Allow editing of the prepared ticket
- Highlight more relevant metadata and print generation objects (e.g. model, prompt, etc). Currently you can view this in the console debug.
- Better styling
After installing the userscript, you need to configure it to match your server URL. If you're running the server locally, the default URL is http://localhost:1323.
- Click on the Tampermonkey icon in your browser to open the menu.
- Find the Inkbunny AI Bridge and Set API URL if you're using a different server.
- In the same menu, you can login using the User menu (login) button.
- You can choose between three different options for AI thumbnails:
- Label - This will add a label to the submission.
- Blur - This will blur the submission.
- Remove - This will remove the submission.
Now, the Inkbunny AI Bridge should be ready to use.
Set the environment variables for the server to run. You can set the following environment variables:
export PORT "your_port" # default is 1323
export API_HOST "your_api_host"
export SD_HOST "your_sd_host" # default is "http://localhost:7860"
export REDIS_HOST "your_redis_host" # default is "localhost:6379", when not set, uses local memory cache
export REDIS_PASSWORD "your_redis_password"
export REDIS_USER "your_redis_user" # when not set, uses 'default'
./inkbunny-ai-bridgeAn optional Redis server can be used for caching.
If not set, it will fall back to local memory cache.
You can always override this behavior for most request by setting the Cache-Control header to no-cache.
If you're building from source, you will need to install the dependencies. Download Go 1.22.3 or later from the official website.
git clone https://github.com/ellypaws/inkbunny-extension.git
cd inkbunny-extension
go build -o inkbunny-ai-bridge
./inkbunny-ai-bridgeYou can also use the pre-built binaries from the releases page.
Note
Disclaimer: This project is not affiliated or endorsed by Inkbunny.





