go-ani

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 3 Imported by: 0

README

go-ani

Watch anime from your terminal. Built with Go, inspired by ani-cli.

Features

Search — Find anime by title via GraphQL API Stream — Play episodes directly in mpv or VLC Interactive TUI — Arrow-key navigation, filtering, episode picker (powered by bubbletea) Quality selection — Choose from available streams (1080p, 720p, etc.) or auto-select best/worst Sub & Dub — Switch between subbed and dubbed versions Post-playback menu — Next/previous episode, replay, pick another episode

Requirements

Go 1.26+ (to build) mpv or VLC (video player)

Install a video player

macOS

brew install mpv

Linux (Debian/Ubuntu)

sudo apt install mpv

Linux (Arch)

sudo pacman -S mpv

Installation

From source
git clone https://github.com/radar07/go-ani.git
cd go-ani
go build -o go-ani .
./go-ani --help
With go install
go install github.com/radar07/go-ani@latest

Usage

Search for anime
# Interactive: opens TUI search input
go-ani search

# Direct: search by name
go-ani search "one punch man"
Play an episode
# Full interactive flow: search → select → pick episode → play
go-ani play

# Search and select interactively, then play
go-ani play "one punch man"

# Skip straight to episode 1
go-ani play "one punch man" -e 1

# Dubbed, 720p quality, using VLC
go-ani play "one punch man" -e 1 --dub -q 720 -p vlc
Flags
Flag Short Description Default
--player -p Video player (mpv / vlc) mpv
--quality -q Quality (best / worst / 1080 / 720) best
--dub Use dubbed version false (sub)
--episode -e Episode number (play/download only) interactive

TUI Keybindings

Key Action
↑ ↓ Navigate lists
Enter Select / confirm
/ Filter results or episodes
Esc Go back
q Quit
Ctrl+C Force quit

Configuration

Environment variables (set in your shell profile):

Variable Description Default
ANI_PLAYER Default video player mpv
ANI_QUALITY Default quality preference best
ANI_MODE Default mode (sub / dub) sub
ANI_DOWNLOAD_DIR Download directory .
ANI_NO_DETACH Keep player in foreground false

Roadmap

  • Watch history + continue command
  • Episode download support
  • IINA player support (macOS)
  • Homebrew tap

Credits

Inspired by ani-cli TUI powered by Charm (bubbletea, bubbles, lipgloss)

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
api
tui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL