mirror of
https://github.com/RustyRaptor/GopherTube.git
synced 2026-12-03 15:15:18 -07:00
6.7 KiB
6.7 KiB
GopherTube
A simple terminal YouTube client for searching and watching videos using yt-dlp and mpv.
Overview
GopherTube is a terminal-based YouTube client. It scrapes and parses the youtube website to search YouTube and uses mpv to play videos. The UI is built with Go and Bubble Tea, and is fully keyboard-driven.
Screenshots
Features
- Fast YouTube search (scrapes YouTube directly, no API key needed)
- Play videos with mpv
- Minimal terminal UI (Bubble Tea)
- Keyboard navigation (arrows, Enter, Tab, Esc, g/G)
- YAML config for paths(for dependencies) and settings
Who is this Project for?
- This Project is for everyone who enjoys Terminal apps
- For Everyone Who respects thier Privacy and Freedom
- Anyone who wants to watch videos while using as few system resources as possible — for example, if you have an older or low-spec machine that struggles to run YouTube in a full web browser, this project can help you cut down on resource usage.
Prerequisites
Install dependencies:
# Ubuntu/Debian
sudo apt install mpv
pip install yt-dlp
# macOS
brew install mpv yt-dlp
# Arch Linux
sudo pacman -S mpv yt-dlp
Installation
Quick Install (One-liner):
curl -sSL https://raw.githubusercontent.com/KrishnaSSH/GopherTube/main/install.sh | bash
Manual Installation:
git clone https://github.com/KrishnaSSH/GopherTube.git
cd GopherTube
go build -o gophertube
./gophertube
Or use the Makefile:
make install # Install binary and man page
Usage
- Start the app:
./gophertube - Type a search and press Enter
- Use ↑/↓ to move, Enter to play, Tab to load more, Esc to go back
- Spinner shows while video loads, then mpv opens
- Watch for rotating tips at the bottom for helpful shortcuts!
Keyboard Shortcuts
| Key | Action |
|---|---|
| Enter | Search / Play video |
| ↑/↓ | Navigate video list |
| Tab | Load more videos |
| g | Go to first video |
| G | Go to last video |
| Esc | Go back / Quit |
Configuration
Create ~/.config/gophertube/gophertube.yaml:
mpv_path: "mpv"
ytdlp_path: "yt-dlp"
video_quality: "best[height<=1080]/best"
download_path: "~/Videos/gophertube"
search_limit: 8
See config example for the full template.
Project Structure
GopherTube/
├── main.go
├── Makefile
├── go.mod
├── go.sum
├── LICENSE
├── config/
│ └── gophertube.yaml.example
├── man/
│ └── gophertube.1
└── internal/
├── app/
├── components/
├── services/
├── types/
├── constants/
├── utils/
└── errors/
TODO
- Implement Vim bindings
- Add thumbnails support
- Add downloads support
Star History
💖 Support GopherTube
If you find this project useful, consider supporting its development with crypto:
bc1q78ymwmf33vr33ly8rpej7cqvr6cljjcdjf3g6p |
|
ltc1qsfp4mdwwk3nppj278ayphqmkyf90xvysxp3des |
|
0x6f786f482DDa360679791D90B7C8337655dC2199 |
License
Contributing
PRs and issues welcome.
See CONTRIBUTING.md for guidelines.




