Audiomancer — Terminal Music Player for YouTube

2026-07visit
TypeScript

Audiomancer is a terminal music player that streams audio from YouTube directly in your terminal. No browser, no video, no clutter — just search, play, and control everything with your keyboard.

Audiomancer terminal UI showing search results and playback

Why Another Music Player?

Most YouTube music players are web apps or Electron wrappers that consume hundreds of megabytes of RAM for what should be a simple task: play audio. Audiomancer lives in the terminal, uses yt-dlp to resolve direct audio stream URLs (no files downloaded), and hands them off to mpv for playback. The result is a player that uses a fraction of the resources of any browser-based alternative.

How It Works

The stack is refreshingly simple. yt-dlp handles YouTube search and stream URL resolution — no API keys needed. mpv plays the audio stream in --no-video mode and exposes an IPC socket for control. The CLI(built with commander) talks to mpv over that socket to pause, seek, and adjust volume live. The TUI layer uses blessed for the terminal interface with real-time progress bars and status updates.

audio stream flow
Search YouTube → yt-dlp resolves stream URL
         ↓
mpv plays audio-only stream (no video)
         ↓
CLI controls mpv over Unix/IPC socket
         ↓
blessed TUI shows progress & status

Key Features

Audiomancer terminal UI showing playback controls and progress

Installation

Install globally from npm — requires yt-dlp and mpv on your PATH.

npm
npm install -g audiomancer

Usage

Three main commands cover everything:

shell
adt play lofi hip hop radio     # search + play first result
adt search daft punk             # list matches without playing
adt id dQw4w9WgXcQ               # play by video ID or URL

Controls

KeyAction
spacePause / resume
→ / ←Seek ±10 seconds
+ / -Volume up / down
qQuit

Published on npm

Audiomancer v0.1.1 is live on the npm registry. Install it globally in one command and start playing music from your terminal immediately. The GitHub repo is open-source with an automated publish workflow — every release tag triggers a CI pipeline that ships the package to npm.

The project is open-source under MIT license. Source code on GitHub.