Skip to main content

zenplayer

A terminal-based YouTube Music client with album-art now-playing display, bass-reactive glow, and session persistence.

zenplayer

Features

  • Search & play YouTube music directly from the terminal
  • Album art now-playing with title/artist/progress-bar overlay
  • Album art turntable mode
  • Bass-reactive glow (40–240 Hz FFT)
  • Full-screen search with debounced async results and preview sidebar
  • mpv-backed playback with seek, volume, pause, next/previous
  • Clickable controls (prev/play/next)
  • Volume persistence
  • Play history with resume-from-position
  • Session persistence — resume where you left off
  • Zen mode — minimal full-screen view
  • Thumbnail caching for instant replays
  • Customizable ASCII splash screen

Requirements

  • Python 3.11+
  • mpv — audio playback engine
  • A truecolor-capable terminal for full-quality album art (falls back gracefully otherwise)

Optional (for bass-reactive glow)

  • PulseAudio — pactl and parec are used to capture live audio for the FFT bass analysis. Without these, the bass-reactive glow is disabled but all other features work.

Install

pip install zenplayer

Or from source:

git clone https://github.com/bjornramberg/zenplayer.git
cd zenplayer
pip install .

Platform-specific mpv install

# macOS
brew install mpv

# Ubuntu / Debian
sudo apt install mpv

# Arch
sudo pacman -S mpv

# Fedora
sudo dnf install mpv

Usage

zenplayer

The search bar is focused on startup — just start typing to search. Press escape to unfocus it and use keyboard shortcuts.

Keyboard shortcuts

Key Action
space Play / Pause
→ / ← Seek forward / backward 5s
shift+→ / shift+← Seek forward / backward 30s
↑ / ↓ Volume up / down (5% steps)
shift+↑ / shift+↓ Volume up / down (15% steps)
n / p Next / Previous track
/ Focus search input
h Toggle history screen
r Resume last session
f1 Toggle zen mode
f2 Toggle turntable mode
enter Play selected track (history)
backspace / delete Remove history entry
ctrl+u Clear all history
q Quit
escape Unfocus search / Close overlays

Splash screen

On startup and shutdown, a 2-second splash shows the zenplayer ASCII art centered on screen with a fade-in/fade-out effect. Skip it with --debug:

zenplayer --debug

Configuration

~/.config/zenplayer/config.json:

{
  "volume": 50,
  "reactive_fps": 24,
  "search_limit": 30,
  "history_limit": 100
}
Key Description Default
volume Initial volume (0–100); updated in-app and persisted 50
reactive_fps How often the bass analysis runs and the glow updates 24
search_limit How many results each search fetches 30
history_limit Max entries stored in play history 100

Data files

Path Contents
~/.config/zenplayer/config.json Volume, FPS, limits, last session
~/.cache/zenplayer/thumbs/ Cached YouTube thumbnails
~/.cache/zenplayer/history.json Play history with positions
~/.cache/zenplayer/search/ Cached search results (JSON, 5min TTL)

License

MIT

Metadata

Release files for zenplayer 0.3.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zenplayer 0.3.14
File Size Uploaded Provenance Actions
zenplayer-0.3.14.tar.gz 35.4 kB With provenance Details for zenplayer-0.3.14.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zenplayer 0.3.14
File Interpreter ABI Platform Actions
zenplayer-0.3.14-py3-none-any.whl Python 3 none any Details for zenplayer-0.3.14-py3-none-any.whl

Total release size: 73.0 kB

Release files / zenplayer-0.3.14.tar.gz

Download URL zenplayer-0.3.14.tar.gz
Size 35.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9f8211e7d42c809a6470ac4cd0e9ad318a29fc31bd14d344ae8778e7865302b3
BLAKE2b-256 checksum
How to use checksums
bfe7277ed13e54b305ef73e8f7687757bc8d6a00416031a678046f4521efefb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release files / zenplayer-0.3.14-py3-none-any.whl

Download URL zenplayer-0.3.14-py3-none-any.whl
Size 37.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb031b98baf90719b41fb2e3c1c872b08dc0cc5424f3ca10cb937a7e38b8362b
BLAKE2b-256 checksum
How to use checksums
b3240cde9c8afec351f5f3a8b98295563b2cf53dcf6295e2e637276a52ff31d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Security for zenplayer 0.3.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for zenplayer-0.3.14.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.14 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page