Back to rankings

pystardust/ytfzf

Shell

A posix script to find and watch youtube videos from the terminal. (Without API)

youtubecliterminalposixfzfdmenuueberzug
Star Growth
Stars
4.1k
Forks
451
Weekly Growth
Issues
61
1k2k3k4k
Jan 2023Mar 2024May 2025Jul 2026
README

NOTICE

This project is no longer actively maintained, it should still work for the foreseeable future




Maintainer: Euro20179 Discord Discord

A POSIX script that helps you find Youtube videos (without API) and opens/downloads them using mpv/youtube-dl


This is a little showcase


Table Of Contents


Dependencies

There are only 2 required dependencies, however the rest require some configuration before you can replace them.

Required dependencies

  • mpv (the default video and audio player)
  • fzf (the default menu selection screen)

Optional dependencies

  • yt-dlp (for downloading)
  • dmenu (only if using the -D option)
  • ueberzugpp
    • needed for the following thumbnail viewers:
      • kitty, iterm2, sixel, and ueberzug
    • the original ueberzug or any fork may be used if you only want to use the ueberzug viewer.

Thumbnail Viewers

  • To use a thumbnail viewer include -T <viewer> in the command when running ytfzf
Program Wayland Support
kitty (requires ueberzugpp)
iterm2 (requires ueberzugpp)
sixel (requires ueberzugpp)
sway (requires ueberzugpp) ✅ (only on sway)
wayland (requires ueberzugpp)
chafa
catimg
imv
mpv
swayimg only on sway
swayimg (-T swayimg-hyprland) only on hyprland

Install

Repo status

if on linux and installed using make on version 2.0 or prior, run sudo make uninstall-old first

  1. Install the dependencies listed above
  2. Run the following commands
git clone https://github.com/pystardust/ytfzf
cd ytfzf
sudo make install doc
  • If you wish to not install documentation (highly unrecommended) run sudo make install instead.

  • If you wish to install addons, run sudo make addons

    • YTFZF_SYSTEM_ADDONS_DIR will point to /usr/local/share/ytfzf/addons even if you set PREFIX to something else
    • If you use a different prefix, it would be smart to export YTFZF_SYSTEM_ADDONS_DIR to $PREFIX/share/ytfzf/addons in a shell startup file.
  • You may also install ytfzf through your package manager, as listed on the side.

Addons

Addons are extra features that will not be as supported as everything built into ytfzf itself.

Addons are located in addons, copy any addon to ~/.config/ytfzf/{addon-type}/{addon}, and give it execute permissions.

You may also just copy the entire addon folder type, eg: cp -r addons/thumbnail-viewers ~/.config/ytfzf/

Usage

To use a scraper addon run ytfzf -c <scraper> ...

To use a thumbnail-viewer addon run ytfzf -T <viewer> ...

To use a interface addon run ytfzf -i <interface> ...

To use a url-handler addon run ytfzf -u <handler> ...

To use a sort-name addon run ytfzf --sort-name=<sort-name> ...

To use an extension addon run ytfzf -e <extension> ...


Features

  • Subscriptions
  • Thumbnails
  • Watch history
  • Search History
  • Downloading
  • Queueing multiple videos
  • Custom menus, and scrapers
  • Addon support

Examples

Search with thumbnails

ytfzf -t <search>

Use dmenu as the menu instead of fzf

ytfzf -D <search>

Print the link of the selected video instead of playing it

ytfzf -L <search>

Search Odysee instead of youtube

ytfzf -cO <search>

Use the chafa thumbnail viewer, pass --vo=sixel, and --quiet to mpv, scrape odysee with the search odysee search, youtube with the search: youtube search, and also scrape subscriptions

ytfzf -t -T chafa --url-handler-opts='--vo=sixel --quiet' -cO,Y,SI --multi-search odysee search,youtube search

Configuration

Everything that is an option can also be configured in ~/.config/ytfzf/conf.sh.

In addition, the video player and other things may be changed here

Here is a sample configuration (please dont use it)

For more information, see ytfzf(5) which should be installed, if it's not see the wiki.


Bugs

  • dwm with swallow patch: Images don't render with ueberzug when looped (ie, option -l)
  • if thumbnails are not working .Xauthority might be causing it. Try deleting it and relogging into your computer.
  • When fzf is not set to 100% height, thumbnails may appear in the wrong position

Contributing

Feel free to contribute, and add your name to the credits, please use the development branch. For more information see contributing

Credits

User Contributions Donate
Pystardust contributions
Euro20179 contributions
Simonhughxyz contributions
Jac-Zac contributions
Mudskipper875 contributions
Gardockt contributions
qoheniac contributions
mathisto contributions
Related repositories
tw93/Pake

🤱🏻 Turn any webpage into a desktop app with one command.

Rustcrates.ioGNU General Public License v3.0rusttauri
60.1k12.2k
Alvin9999/new-pac

翻墙-科学上网、自由上网、免费科学上网、免费翻墙、fanqiang、油管youtube/视频下载、软件、VPN、一键翻墙浏览器,vps一键搭建翻墙服务器脚本/教程,免费shadowsocks/ss/ssr/v2ray/goflyway账号/节点,翻墙梯子,电脑、手机、iOS、安卓、windows、Mac、Linux、路由器翻墙、科学上网、youtube视频下载、youtube油管镜像/免翻墙网站、美区apple id共享账号、翻墙-科学上网-梯子

PythonPyPIfanqiangfree-ssr
59.2k9.8k
mvanhorn/last30days-skill

AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary

PythonPyPIMIT Licenseai-promptsclaude
52.9k4.6k
KRTirtho/spotube

🎧 Open source music streaming app! Available for both desktop & mobile!

DartOtheryoutubedesktop-client
spotube.cc
47.7k2.2k
DIYgod/RSSHub

🧡 Everything is RSSible

TypeScriptnpmGNU Affero General Public License v3.0rsstwitter
docs.rsshub.app
45.3k10k
imputnet/cobalt

best way to save what you love

SvelteGNU Affero General Public License v3.0downloaderreddit
cobalt.tools
41.7k3.6k
glanceapp/glance

A self-hosted dashboard that puts all your feeds in one place

GoGo ModulesGNU Affero General Public License v3.0dashboardhomepage
35.8k1.4k
iawia002/lux

👾 Fast and simple video download library and CLI tool written in Go

GoGo ModulesMIT Licensedownloadergo
31.5k3.3k
FujiwaraChoki/MoneyPrinterV2

Automate the process of making money online.

PythonPyPIGNU Affero General Public License v3.0automationcli
31.3k3.4k
sampotts/plyr

A simple HTML5, YouTube and Vimeo player

JavaScriptnpmMIT Licensehtml5-videoyoutube
plyr.io
29.9k3.1k
KurtBestor/Hitomi-Downloader

:cake: Desktop utility to download images/videos/music/text from various websites, and more.

PythonPyPIhitomiexhentai
24.2k2.2k
FreeTubeApp/FreeTube

An Open Source YouTube app for privacy

VueGNU Affero General Public License v3.0videoyoutube
freetubeapp.io
21.5k1.5k