Mangatsu
Still at very experimental stage. Expect lots of breaking changes.
๐ Server application for storing doujinshi, manga, art collections and other galleries with API and user control. Written in Go.
๐ฐ
CHANGELOG |
โค
CONTRIBUTING |
๐ฏ
TODO
๐
Installation and usage
๐ณ
Docker setup (recommended)
- Coming soon for both the server and the web app
๐ป
Local setup
- Coming soon
๐
Clients
๐ฅ
Web interface
๐ฑ
Tachiyomi extension for Android
- Coming soon
๐
Features
-
Organizing and tagging local (and remote with tools like rclone) collections of manga, doujinshi and other art
- Mangatsu will never do any writes inside the archive location.
- Supports ZIP (or CBZ), RAR (or CBR) and plain image (png, jpg, jpeg, webp, gif, tiff, bmp) files.
- 7z, PDF and video support is planned.
-
Metadata parsing from filenames, JSON/TXT files (inside or beside the archive). More to come.
-
API-access to the collection and archives
- Extensive filtering, sorting and searching capabilities.
- Additional features for registered users such as tracking reading progress and adding favorite groups.
-
User access control
- Private: only logged-in users can access the collection and archives (registration can be disabled).
- Restricted: users need a global passphrase to access collection and its galleries.
- Public: anyone can access (only read) collection and its galleries.
-
Users with roles (admin, member, viewer) and indefinite login sessions with the option to log out or delete them
-
Local cache and thumbnail support
๐
Usage
๐
Configuration
Options inside the .env file:
- MTSU_INITIAL_ADMIN_NAME=admin
- MTSU_INITIAL_ADMIN_PW=admin321
- Credentials for the initial admin user.
- MTSU_HOSTNAME=localhost
- MTSU_PORT=5050
- Hostname and port for the server.
- MTSU_BASE_PATHS=freeform;/home/user/unstructured-manga;;structured:/home/user/structured-manga
- Root paths to the collection and archives. Relative or absolute paths are accepted.
- First specify the type of the directory (freeform or structured) and then the path separated by a semicolon:
;
- Multiple paths can be separated by a double-semicolon:
;;
- MTSU_DATA_PATH=../data
- Location of the data dir which includes the SQLite db and cache for gallery images and thumbnails. Relative or absolute paths are accepted.
- MTSU_VISIBILITY=public
- public: anyone can access the collection and its galleries
- restricted: users need a global passphrase to access collection and its galleries
- private: only logged-in users can access the collection and its galleries
- MTSU_RESTRICTED_PASSPHRASE=secret321
- Passphrase to access the collection and its galleries.
- Only used when VISIBILITY is set to restricted.
- MTSU_REGISTRATIONS=false
- Whether to allow user registrations. If set to false, only admins can create new users. Currently, only affects the API path /register. Has no effect in the frontend.
- MTSU_JWT_SECRET=secret123
- Secret value for signing JWT tokens for login sessions in the backend.
๐
Directory structure
Multiple root directories are supported. I suggest creating a structured format for proper long-running manga, and a freeform structure for doujinshi and other art collections. Examples follow:
- Freeform: galleries can be up to three levels deep. Good for doujinshi, one-shots and other more unstructured collections.
- External JSON metadata files have to be placed in the same level as the gallery archive. Preferably having the same name as the gallery archive. If no exact match is found, filename close enough will be used instead.
- Option to create categories according to the 1st level of the directory structure. In the example, doujinshi and art would be created as categories. The last lonely archive would be uncategorized.
๐ freeform
โโโ ๐ doujinshi
โ โโโโโ ๐ oppai
โ โ โโโโโ ๐ฆ [Group (Artist)] Ecchi Doujinshi.cbz
โ โ โโโโโ ๐ [Group (Artist)] Ecchi Doujinshi.json
โ โโโโโ ๐ฆ (C99) [Group (Artist)] elfs.zip
โ โโโโโ ๐ (C99) [Group (Artist)] elfs.json
โ โโโโโ ๐ฆ (C88) [kroup (author, another author)] Tankoubon [DL].zip (JSON or TXT metafile inside)
โโโ ๐ art
โ โโโโโ ๐ [Artist] Pixiv collection
โ โ โโโโโ ๐ผ๏ธ 0001.jpg
โ โ โโโโโ...
โ โ โโโโโ ๐ผ๏ธ 0300.jpg
โ โโโโโ ๐ฆ art collection y.rar
โ โโโโโ ๐ art collection y.json
โโโ ๐ฆ (C93) [group (artist)] Lonely doujinshi (Magical Girls).cbz
- Structured: galleries follow a strict structure. Good for long-running manga (shounen, seinen etc).
Manga -> Volumes -> Chapters
,Manga -> Volumes
orManga -> Chapters
- Galleries' Series is set to the name of the 1st level directory except for galleries in the root directory.
๐ structured
โโโ ๐ Manga 1
โ โโโ ๐ฆ Volume 1.cbz
โ โโโ ๐ฆ Volume 2.cbz
โ โโโ ๐ฆ Volume 3.cbz
โ โโโ ๐ฆ Volume 4.zip
โโโ ๐ Manga 2
โ โโโ ๐ Vol. 1
โ โโโ ๐ฆ Chapter 1.zip
โ โโโ ๐ฆ Chapter 2.zip
โ โโโ ๐ฆ Chapter 3.rar
โโโ ๐ Manga 3
โ โโโ ๐ฆ Chapter 1.zip
โ โโโ ...
โ โโโ ๐ฆ Chapter 30.rar
โโโ ๐ฆ One Shot Manga.rar