/artbot

A front-end GUI for interacting with AI Horde's distributed cluster of Stable Diffusion workers

Primary LanguageTypeScriptGNU Affero General Public License v3.0AGPL-3.0

ArtBot

A front-end GUI for interacting with AI Horde's distributed cluster of Stable Diffusion workers.

Table of Contents

Intro

ArtBot is a front-end web client designed for interacting with the AI Horde open source distributed cluster -- a group of GPUs running Stable Diffusion whose processing time has been kindly donated by an enthusiastic community of volunteers.

ArtBot is built using Next.js 14 and Typescript. It uses client-side technologies such as IndexedDB and LocalStorage APIs in order to securely and privately store the AI generated images you've created using the cluster within your own web browser.

Setup

Requirements

  • node >= 18.18.0
  • npm >= 9.5.1

Most of these steps should be applicable to Linux, MacOS, or Windows environments.

Installing various versions of Node.js on your machine can be tricky. I am a big fan of nvm, which allows you to run multiple isolated versions of Node.js on your machine with ease.

Using nvm, you can install Node like this:

> nvm install v18.18.0
> nvm alias default node
> node -v # Checks which version of Node is currently running

Installing

Once you have your Node.js environment setup, you can clone this repository and install the required packages. Depending on the specs of your machine and speed of your internet connection, installing all packages may take a minute or two.

> git clone https://github.com/Haidra-Org/artbot.git
> cd artbot
> npm install

Usage

Development

Alright, you should now be able to run the ArtBot web app! To run in development mode (which uses NextJS's hot reloading feature -- where you can see updates live on the site as you make changes)

> npm run dev

Then, open your browser and visit http://localhost:3000, you should now be able to immediately make image requests to the Stable Horde. Head over to http://localhost:3000/settings and enter your Stable Horde API key for faster generation times.

Contributions

Contributions are very welcome! General guidelines are as follows:

  1. Fork this repository
  2. Cut a new feature branch. e.g., > git checkout -b feat/my-cool-new-feature
  3. Make any necessary changes and commit your code! (If possible, use conventional commits)
  4. Open a new pull request based on your feature branch.

Let me know if you have any questions. I'm more than happy to help.

Acknowledgements

ArtBot makes use of a number of resources provided by designers and developers who make their work freely available. Without these tools, ArtBot and many other projects on the Internet would not be able to exist. We are very grateful!