Lightweight YouTube client for Linux
See the codeA lightweight application for searching and playing videos from YouTube.


doas apk add youtube-viewerbrew install thekevjames/youtube-viewer/youtube-viewersudo eopkg it youtube-viewersudo add-apt-repository ppa:nilarimogard/webupd8sudo xbps-install youtube-viewerTo install youtube-viewer, run:
perl Build.PL
sudo ./Build installdeps
sudo ./Build install
To install gtk-youtube-viewer along with youtube-viewer, run:
perl Build.PL --gtk
sudo ./Build installdeps
sudo ./Build install
For trying the latest commit of youtube-viewer, without installing it, execute the following commands:
cd /tmp
wget https://github.com/trizen/youtube-viewer/archive/master.zip -O youtube-viewer-master.zip
unzip -n youtube-viewer-master.zip
cd youtube-viewer-master/bin
./youtube-viewer
To package this application, run the following commands:
perl Build.PL --destdir "/my/package/path" --installdirs vendor [--gtk]
./Build test
./Build install --install_path script=/usr/bin
Starting with version 3.7.4, youtube-viewer provides the ~/.config/youtube-viewer/api.json file, which allows setting an YouTube API key and the client ID/SECRET values:
{
"key": "API_KEY",
"client_id": "CLIENT_ID",
"client_secret": "CLIENT_SECRET"
}
API_KEY with your YouTube API key. Create a new key here by clicking on "Create Credentials" > "API Key".CLIENT_ID and CLIENT_SECRET with your native client ID and client secret values, by creating a new OAuth 2.0 Client ID here: click "Create Credentials" > "OAuth client ID", then select "TV and Limited Input devices" (tutorial -- may be outdated).The project must have the following scope enabled: https://www.googleapis.com/auth/youtube
Also, in order to log in, grant access to the project in: https://console.cloud.google.com/apis/credentials/consent
pipe-viewer is a fork of straw-viewer, which parses the YouTube website directly, and thus it does not require an YouTube API key.
After installing, you can find documentation with the following commands:
man youtube-viewer
perldoc WWW::YoutubeViewer
Copyright (C) 2012-2025 Trizen
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See https://dev.perl.org/licenses/ for more information.
1,036 followers · starred Dec 2016
357 followers · starred Feb 2011
123 followers · starred Jan 2015
93 followers · starred Nov 2015
Lightweight YouTube client for Linux
See the codeA lightweight application for searching and playing videos from YouTube.


doas apk add youtube-viewerbrew install thekevjames/youtube-viewer/youtube-viewersudo eopkg it youtube-viewersudo add-apt-repository ppa:nilarimogard/webupd8sudo xbps-install youtube-viewerTo install youtube-viewer, run:
perl Build.PL
sudo ./Build installdeps
sudo ./Build install
To install gtk-youtube-viewer along with youtube-viewer, run:
perl Build.PL --gtk
sudo ./Build installdeps
sudo ./Build install
For trying the latest commit of youtube-viewer, without installing it, execute the following commands:
cd /tmp
wget https://github.com/trizen/youtube-viewer/archive/master.zip -O youtube-viewer-master.zip
unzip -n youtube-viewer-master.zip
cd youtube-viewer-master/bin
./youtube-viewer
To package this application, run the following commands:
perl Build.PL --destdir "/my/package/path" --installdirs vendor [--gtk]
./Build test
./Build install --install_path script=/usr/bin
Starting with version 3.7.4, youtube-viewer provides the ~/.config/youtube-viewer/api.json file, which allows setting an YouTube API key and the client ID/SECRET values:
{
"key": "API_KEY",
"client_id": "CLIENT_ID",
"client_secret": "CLIENT_SECRET"
}
API_KEY with your YouTube API key. Create a new key here by clicking on "Create Credentials" > "API Key".CLIENT_ID and CLIENT_SECRET with your native client ID and client secret values, by creating a new OAuth 2.0 Client ID here: click "Create Credentials" > "OAuth client ID", then select "TV and Limited Input devices" (tutorial -- may be outdated).The project must have the following scope enabled: https://www.googleapis.com/auth/youtube
Also, in order to log in, grant access to the project in: https://console.cloud.google.com/apis/credentials/consent
pipe-viewer is a fork of straw-viewer, which parses the YouTube website directly, and thus it does not require an YouTube API key.
After installing, you can find documentation with the following commands:
man youtube-viewer
perldoc WWW::YoutubeViewer
Copyright (C) 2012-2025 Trizen
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See https://dev.perl.org/licenses/ for more information.
1,036 followers · starred Dec 2016
357 followers · starred Feb 2011
123 followers · starred Jan 2015
93 followers · starred Nov 2015