Skip to content
المشاريع

حول

Blazing fast, terminal music player (TUI) written in Rust. Extensible via Lua plugins, built on Ratatui, MPV, and YT-DLP. Listen to YouTube, SoundCloud, and local files directly from your terminal. Lightweight, headless, ads-free.

التصميم والوسائط

كيف تُقاس هذه الأرقام

ما يمكنك فعله

  • Search and stream from YouTube, SoundCloud, or a self hosted Sonum server, or play local files, all from one interface
  • Queue management with multiselect bulkadd, play next, move up and down, save queue as playlist
  • Playlists and library backed by SQLite, with automatic migration from legacy JSON
  • Session restore: queue, current track, position, volume, repeat and speed come back after restart

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
جارٍ جمع السجل
خلال 15 يومًا
جارٍ جمع السجل
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

rs-pug

dependency status License: GPL-2.0

You name it, we stream it!

demo demo

rs-pug is a terminal music player built in Rust on top of mpv, yt-dlp, and ratatui. It streams and downloads from YouTube and SoundCloud, pulls tracks from a self-hosted Sonum server, manages a local library and playlists, and extends with Lua plugins, all without leaving the terminal.

[!IMPORTANT] AUR is no longer maintained by the author. If you'd like to take over as AUR maintainer, please open an issue. crates.io continues to be maintained.

[!TIP] Before reporting a bug, make sure you're running the latest yt-dlp and mpv.

Community plugins, themes, and EQ presets: all-rspug · Discord

Features

  • Search and stream from YouTube, SoundCloud, or a self hosted Sonum server, or play local files, all from one interface
  • Queue management with multiselect bulkadd, play next, move up and down, save queue as playlist
  • Playlists and library backed by SQLite, with automatic migration from legacy JSON
  • Session restore: queue, current track, position, volume, repeat and speed come back after restart
  • Lyrics view: synced Sonum lyrics, local LRC files and embedded tags
  • Local library with SQLite filtering, full text search and paged windows for large collections
  • Audio shaping: 10 band equalizer with savable presets, loudnorm normalize, replaygain, gapless and fade
  • Smart Queue (im not very proud about this feature): finds similar tracks to keep the music flowing automatically
  • Real time fft audio spectrum visualizer (with a synthetic fallback)
  • Minimal mode: pixelated cover art, small fft strip, title only
  • Cover-tinted Minimal background that follows the current track, toggleable in Options
  • Fully remappable keybinds, including modifiers and multi key sequences
  • Built in and custom themes
  • Command palette (:) for fuzzy-searching every action
  • Control a running instance over IPC, for use in status bars or keybindings
  • Extensible with Lua plugins: custom keybinds, live panels, and full UI customization
  • Hot reload: configuration and theme changes apply automatically
  • Add any streaming source you want.
  • Respects XDG_CONFIG_HOME for config, themes, plugins and presets

Additional with plugins

  • Discord Rich Presence
  • Last.fm
  • Lirycs
  • UI Change to minimal
  • Plugin Manager
  • Get all this here!

Requirements

  • mpv (required)
  • yt-dlp (recommended, without it streaming and downloading are unavailable, but local playback still works)
  • ffmpeg (recommended, needed for downloads: audio extraction and thumbnail embedding)
  • MPRIS2 works out of the box through a native in process daemon, no mpv-mpris needed. Set mpris_enabled = false in the config to keep rs-pug off the session bus.

Installation

# crates.io
cargo install rs-pug

# Manual
git clone https://github.com/JustRoccat/rs-pug
cd rs-pug
cargo build --release
./target/release/rs-pug

[!NOTE] Community AUR packaging is not currently maintained. See the note above if you'd like to help.

Usage

Run rs-pug to launch the TUI. The app scans ~/.config/rs-pug/music-local/ for local files by default; you can add more directories from the Options tab.

Full guide (keys, remapping, EQ, visualizer, Minimal, IPC, themes, Sonum, storage): docs-usage.md.

Config file: ~/.config/rs-pug/config.toml.

Plugins

Drop .lua files into ~/.config/rs-pug/plugins/, see docs.md for the full API reference. Lua plugin PRs are especially welcome.

Works on

Anywhere mpv and yt-dlp run: Linux and Termux (Android) tested, WSL2 on Windows should also work. demo demo

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…