shellwave
v0.1.6
Published
A terminal-first audio companion for developers.
Downloads
867
Maintainers
Readme
shellwave
A terminal-first YouTube audio player for developers.
Search from your terminal, pick a result with the keyboard, and play audio without opening a browser.
Install
npm install -g shellwaveIf global npm installs fail with a permissions error, see Install Troubleshooting.
Requirements
Search works out of the box. Playback needs:
ffplay, included with FFmpegyt-dlp, used to resolve YouTube audio URLs
Ubuntu/Debian:
sudo apt install ffmpeg
sudo apt install pipx
pipx install yt-dlpIf your shell cannot find yt-dlp, add ~/.local/bin to your path.
fish:
fish_add_path ~/.local/binBash/Zsh:
export PATH="$HOME/.local/bin:$PATH"Alternative pip install:
sudo apt install python3-pip
python3 -m pip install --user -U yt-dlpIf Ubuntu blocks pip with an externally managed environment warning, use the pipx method above.
macOS:
brew install ffmpeg yt-dlpWindows:
winget install Gyan.FFmpeg
winget install yt-dlp.yt-dlpCheck your setup:
shellwave doctorUsage
Search and play:
shellwave lofi coding musicor:
shellwave search "lofi coding music"Check playback dependencies:
shellwave doctorControls:
Up/down choose a search result
Enter play selected result
Left/right seek backward/forward
Space pause/resume
s stop and return to results
q quitWhen a track completes, shellwave automatically starts the next result from the current search list. If playback stops early, shellwave keeps the current result selected instead of skipping ahead.
Install Troubleshooting
EACCES during global install
If npm install -g shellwave fails with an error like:
EACCES: permission denied, mkdir '/usr/local/lib/node_modules/shellwave'your npm global install directory is owned by root. Check it with:
npm config get prefixIf it prints /usr/local, prefer a user-owned npm prefix:
mkdir -p ~/.npm-global
npm config set prefix ~/.npm-globalfish:
fish_add_path ~/.npm-global/binBash/Zsh:
export PATH="$HOME/.npm-global/bin:$PATH"Then install again:
npm install -g shellwaveFor a longer-term Node setup, use a user-owned version manager such as nvm, fnm, or volta.
Search Providers
By default, shellwave uses a bundled no-key YouTube search provider. You do not need a YouTube API key for normal use.
Force the default no-key provider:
SHELLWAVE_SEARCH_PROVIDER=youtubei shellwave lofi coding musicUse the official YouTube Data API for search metadata:
export YOUTUBE_API_KEY=your_key
SHELLWAVE_SEARCH_PROVIDER=youtube-api shellwave lofi coding musicPowerShell:
$env:YOUTUBE_API_KEY="your_key"
$env:SHELLWAVE_SEARCH_PROVIDER="youtube-api"
shellwave lofi coding musicUse yt-dlp for search:
SHELLWAVE_SEARCH_PROVIDER=yt-dlp shellwave lofi coding musicTroubleshooting
If playback fails with a YouTube extraction error, update yt-dlp:
pipx upgrade yt-dlpIf playback starts but you hear no sound, verify your system audio works with ffplay and that your terminal session has access to your audio server.
Local Development
npm install
npm run build
npm link
shellwave ektaaraRun checks:
npm run typecheck
npm --cache .npm-cache pack --dry-runRoadmap
- Local file playback
- Queue and history
- Favorites
- Config file
- Pluggable playback backends
