---
title: Cubari guide
customDescription: Guide on how to proxy comic through Cubari
og:
image: https://files.catbox.moe/m3xqdl.png
---
This guide explains how to publish your comic using [**Cubari**](https://cubari.moe/). Cubari does not host any files directly; instead, it reads a JSON file containing image links and other metadata. To host the images, we’ll use [**Image Chest**](https://imgchest.com/), and to generate the JSON file, we’ll use the [**Kaguya script**](https://github.com/wotakumoe/kaguya).
::: warning Cubari ≠ Cubari Proxy
[**Cubari**](https://cubari.moe/) and [**Cubari Proxy**](https://proxy.cubari.moe/) serve different purposes. Cubari Proxy is a scraper, while Cubari acts as a proxy that displays images from your own hosted sources.
:::
## Files and metadata
::: tabs
== Files and folders
Your comic folder should follow this naming scheme:
- Folder names should be formatted like `V# Ch# Title`. The volume number (`V#`) and chapter title are optional, but the chapter number (`Ch#`) is required.
- Make sure the images inside each folder are sorted alphabetically.
```bash
Comic_Folder/
├── info.txt # Comic metadata
├── V01 Ch001 First Chapter/
│ ├── page001.jpg
│ ├── page002.jpg
│ └── ...
└── V01 Ch002 Second Chapter/
├── page001.jpg
└── ...
```
== Metadata
The given metadata will be displayed on the comic's homepage. Create an `info.txt` file inside your base comic folder and fill it out using the following format.
**Note:** The script supports only one uploader/group. If there are multiple, you'll need to handle it manually.
```bash
title: Comic Title
description: Comic Description
artist: Artist Name
author: Author Name
cover: https://cover-url.com/image.jpg
groups: Uploader Name
```
:::
## Kaguya
::: tabs
== Python
Kaguya is a Python-based script, so you need to install Python first.
1. Download and install the latest Python release from [here](https://www.python.org/downloads/).
2. During installation, make sure to check the option **"Add Python X.XX to PATH"**.
**Note:** For this guide, I used [**PowerShell 7.5.1**](https://github.com/PowerShell/PowerShell).
== Imgchest
To host images, we are using [Image Chest](https://imgchest.com/). You can upload up to 20 images at a time, but more can be added later. The script uploads images in chunks, so you'll need an API key to automate this process.
1. Visit [Image Chest](https://imgchest.com/).
2. Register a [new account](https://imgchest.com/register).
3. After verifying your email, go to the [API section](https://imgchest.com/profile/api).
4. Create an API key and save it somewhere safe, you'll need it in a later step.
== Script setup
1. Visit [Kaguya repository](https://github.com/wotakumoe/kaguya).
2. Clone/download the repository.
3. Open powershell in the folder and run `pip install -r requirements.txt`
4. Put the Image chest API key in `api_key.txt`
```bash
Kaguya/
├── api_key.txt
├── kaguya.py
├── readme.md
└── requirements.txt
```
== Run
1. Open powershell in the script folder.
2. Run `python kaguya.py`
3. Enter comic folder path.
4. Choose options accordingly.
5. It will then start uploading in batch
6. After it done uploading, it will give summary
After the run, the script will generate `Comic_Title.json` and `imgchest_upload_record.txt` in the comic's base folder.
```bash
Comic_Folder/
├── info.txt # Comic metadata
├── imgchest_upload_record.txt # Upload history (auto-created)
├── Comic_Title.json # JSON for Cubari (auto-created)
├── V01 Ch001 First Chapter/ # Chapter folder
│ ├── page001.jpg
│ ├── page002.jpg
│ └── ...
└── V01 Ch002 Second Chapter/ # Chapter folder
├── page001.jpg
└── ...
```
The `imgchest_upload_record.txt` file keeps track of all uploaded folders. If a folder fails to upload, it won’t be listed in this file. When you run the script again, the missing folder will be detected as new.
To retry failed uploads, select: `2. Upload only new folders (skip already uploaded)`
After a successful upload, the folder will be added to the JSON file. New uploads appear at the bottom of the JSON, but this won't affect the chapter order in Cubari.
:::
## Cubari
::: tabs
== Manual
1. You need a GitHub account. An older account is less likely to be flagged by GitHub.
2. Open a new [public repo](https://github.com/new) and upload the JSON file there.
3. Go to [**Cubari**](https://cubari.moe/) and paste `https://raw.githubusercontent.com/user/repo/main/Comic_Title.json` there. It will load all your chapters along with their metadata.
:::
The Cubari link generated on that page will be your comic’s final shareable link.