2025-07-14 14:51:17 +05:30
2025-07-13 16:01:20 +05:30
2025-07-14 14:07:30 +05:30
2025-07-14 14:51:17 +05:30
2025-07-14 14:44:27 +05:30
2025-07-14 14:11:11 +05:30
2025-07-14 14:15:48 +05:30
2025-07-12 13:21:28 +05:30
2025-07-13 16:01:20 +05:30

Go Gopher

GopherTube

Go Version License: GPL v3 Platform Last Commit Contributors Code Size Issues PRs Stars

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 anduses mpv to play videos. The UI is built with Go and Bubble Tea, and is fully keyboard-driven.

Demo

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 and settings

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/

License

GPL v3


Contributing

PRs and issues welcome.

S
Description
Mirror of github.com/RustyRaptor/GopherTube — A modern terminal user interface for searching and watching YouTube videos using yt-dlp and mpv
Readme GPL-3.0
1.4 MiB
0 Stars 1 Watchers 0 Forks
Languages
Go 69.5%
Shell 26.7%
Nix 2.5%
Makefile 1.3%