/what-anime-tui

🔭Another way to find the anime scene using your terminal

Primary LanguageGoApache License 2.0Apache-2.0

What Anime TUI

A TUI alternative to irevenko/what-anime-cli. Wrapper for trace.moe API.

Showcase

what-anime-tui-showcase.mp4

Installation

Download and install Go from go.dev, then enter the following command in your terminal:

go install github.com/mandriota/what-anime-tui@latest

You may also need to add go/bin directory to PATH environment variable. Enter the following command in your terminal to find go/bin directory:

echo `go env GOPATH`/bin

Using Homebrew

brew tap mandriota/mandriota
brew install what-anime-tui

Using npm

npm i what-anime-tui

Configuration

Config is read from $HOME/.config/wat/wat.toml

Default config:

[appearance]
# Specifies background color by hex or ANSI value.
# Examples:
# background = "#0F0"
# background = "#FF006F"
# background = "6"
background = "6"
# Specifies foreground color by hex or ANSI value.
foreground = "15"

[appearance.border]
# Specifies border foreground color by hex or ANSI value.
foreground = "15"

# Warning: this configuration parameter is unstable and can be changed at any moment
[fetcher]
# API URL to fetch by image/gif URL, which will be passed in the link in place of {{ .Path }}
apiUrlByUrl = "https://api.trace.moe/search?anilistInfo&url={{ .Path }}"
# API URL to fetch by image/gif file, which will be passed in "image" field in multipart
apiUrlByFile = "https://api.trace.moe/search?anilistInfo"