Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/josueBarretogit/manga-tui
Terminal-based manga reader and downloader with image support
https://github.com/josueBarretogit/manga-tui
anime comic-downloader comic-reader linux macos manga manga-downloader manga-reader mangadex ratatui rust terminal terminal-app terminal-based tui tui-app windows
Last synced: about 2 months ago
JSON representation
Terminal-based manga reader and downloader with image support
- Host: GitHub
- URL: https://github.com/josueBarretogit/manga-tui
- Owner: josueBarretogit
- License: mit
- Created: 2024-06-10T23:02:19.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-10-19T02:16:55.000Z (3 months ago)
- Last Synced: 2024-10-19T02:29:32.307Z (3 months ago)
- Topics: anime, comic-downloader, comic-reader, linux, macos, manga, manga-downloader, manga-reader, mangadex, ratatui, rust, terminal, terminal-app, terminal-based, tui, tui-app, windows
- Language: Rust
- Homepage: https://crates.io/crates/manga-tui
- Size: 4.82 MB
- Stars: 471
- Watchers: 2
- Forks: 13
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ratatui - manga-tui - Terminal-based manga reader and downloader with image support. (💻 Apps / 🎼 Music and Media)
README
📖 Manga-tui 🖥️
Terminal-based manga reader and downloader written in rust 🦀
https://github.com/user-attachments/assets/2b693bd3-ec30-4d6e-bcc4-6cf457a860b1
## Table of contents
- [Features](#features)
- [Installation](#installation)
- [Image rendering](#image-rendering)
- [Usage](#usage)
- [Configuration](#configuration)
- [Motivation](#motivation)
- [Credits](#credits)## Features
- Advanced search (with filters)
https://github.com/user-attachments/assets/c1e21aa1-8a51-4c47-baea-9f56dcd0d6a4
- Read manga in your terminal (Wezterm, iTerm2, or Kitty, any terminal that has support for graphics protocol)
https://github.com/user-attachments/assets/70f321ff-13d1-4c4b-9c37-604271456ab2- Reading history is stored locally (with no login required)
https://github.com/user-attachments/assets/47e88e89-f73c-4575-9645-2abb80ca7d63
- Download manga (available formats: cbz, epub and raw images)
https://github.com/user-attachments/assets/ba785668-7cf1-4367-93f9-6e6e1f72c12c
- Download all chapters of a manga (available formats: cbz, epub and raw images)
https://github.com/user-attachments/assets/26ad493f-633c-41fc-9d09-49b316118923
## Installation
### Using cargo
```shell
cargo install manga-tui --locked
```### AUR
You can install `manga-tui` from the [AUR](https://aur.archlinux.org/packages/manga-tui) with using an [AUR helper](https://wiki.archlinux.org/title/AUR_helpers).
```shell
paru -S manga-tui
```### Nix
If you have the [Nix package manager](https://nixos.org/), this repo provides a flake that builds the latest git version from source.
Simply run the following:
```sh
nix run 'github:josueBarretogit/manga-tui'
```Or, to install persistently:
```sh
nix profile install 'github:josueBarretogit/manga-tui'
```## Binary release
Download a binary from the [releases page](https://github.com/josueBarretogit/manga-tui/releases/latest)
## Image rendering
Use a terminal that can render images such as [Wezterm](https://wezfurlong.org/wezterm/index.html) (Personally I recommend using this one It's the one used in the videos), [iTerm2](https://iterm2.com/) or [Kitty](https://sw.kovidgoyal.net/kitty/)
For more information see: [image-support](https://github.com/benjajaja/ratatui-image?tab=readme-ov-file#compatibility-matrix)> [!WARNING]
> On windows image display is very buggy, see [this issue](https://github.com/josueBarretogit/manga-tui/issues/26) for more informationNo images will be displayed if the terminal does not have image support (but `manga-tui` will still work as a manga downloader)
## Usage
After installation just run the binary
```shell
manga-tui
```## Configuration
Manga downloads and reading history is stored in the `manga-tui` directory, to know where it is run:
```shell
manga-tui --data-dir# or
manga-tui -d
```On linux it will output something like: `~/.local/share/manga-tui`
On the `manga-tui` directory there will be 4 directories
- `history`, which contains a sqlite database to store reading history
- `config`, which contains the `manga-tui-config.toml` config file with the following fields:```toml
# The format of the manga downloaded
# values : cbz , raw, epub
# default : cbz
download_type = "cbz"# Download image quality, low quality means images are compressed and is recommended for slow internet connections
# values : low, high
# default : low
image_quality = "low"# Pages around the currently selected page to try to prefetch
# values : 0-255
# default : 5
amount_pages = 5# Whether or not bookmarking is done automatically, if false you decide which chapter to bookmark
# values : true, false
# default : true
auto_bookmark = true```
if the `manga-tui-config.toml` cannot be read / parsed then the defaults will be used- `mangaDownloads`, where manga will be downloaded
- `errorLogs`, for storing posible errors / bugsIf you want to change the location of this directory you can set the environment variable `MANGA_TUI_DATA_DIR` to some path pointing to a directory, like:
```shell
export MANGA_TUI_DATA_DIR="/home/user/Desktop/mangas"
```By default `manga-tui` will search mangas in english, you can change the language by running:
```shell
# `es` corresponds to the Iso code for spanish
manga-tui lang --set 'es'
```Check the available languages and their Iso codes by running:
```shell
manga-tui lang --print
```## Motivation
I wanted to make a "How linux user does ..." but for manga, [here is the video](https://www.youtube.com/watch?v=K0FsGRqEc1c) also this is a great excuse to start reading manga again## Credits
Many thanks to Mangadex for providing the free API please consider supporting them ❤️
Many thanks to the [Ratatui organization](https://github.com/ratatui-org) for making such a good library for making TUI's in rust 🐭
Many thanks to the developer of the [Ratatui-image crate](https://crates.io/crates/ratatui-image) for providing a widget that renders images in the terminal 🖼️Consider giving a star to this project ⭐