npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

openspot-tui

v1.0.4

Published

A terminal user interface for Spotify

Readme

npm version License: MIT

Screenshots

Requirements

  • Bun >= 1.0.0
  • Spotify Premium account
  • Linux x64 only (uses D-Bus/MPRIS for media control, not available on macOS/Windows)

Installation

# Just run it (no install needed)
bunx openspot-tui@latest

Or install globally:

bun add -g openspot-tui
openspot-tui

Note: If openspot-tui command is not found after global install, add Bun's bin folder to your PATH:

# For zsh (add to ~/.zshrc)
export PATH="$HOME/.cache/.bun/bin:$PATH"

# For bash (add to ~/.bashrc)
export PATH="$HOME/.cache/.bun/bin:$PATH"

From Source

git clone https://github.com/iiviie/openspot-tui.git
cd openspot-tui
bun install
bun start

The install script automatically downloads spotifyd on first run.

Getting Started

openspot-tui

On first run, spotifyd will be downloaded automatically if not found.

Then you need to authenticate:

  1. Press Ctrl+P to open the command palette
  2. Select Login to Spotify - a browser opens for authorization
  3. After authorizing, press Ctrl+P again
  4. Select Authenticate Spotifyd - another browser authorization

Once both are complete, you are ready to listen to music.

Navigation

| Key | Action | |-----|--------| | h / l | Focus library / content panel | | j / k | Move down / up in lists | | Enter | Select / Play item | | Escape | Go back | | / | Open search | | Ctrl+P | Open command palette |

Playback

| Key | Action | |-----|--------| | Space | Play / Pause | | w | Next track | | b | Previous track | | Left / Right | Seek backward / forward (5s) | | + / - | Volume up / down | | s | Toggle shuffle | | r | Cycle repeat mode |

Queue

| Key | Action | |-----|--------| | f | Add selected track to queue |

Select a track in the content panel and press f to add it to your queue. The queue appears in the left sidebar below the library menu.

Help

Press ? to view all keyboard shortcuts.

Press q to quit.

Command Palette

Press Ctrl+P to access commands:

| Command | Description | |---------|-------------| | Login to Spotify | Authenticate with Spotify | | Logout | Clear stored credentials | | Authenticate Spotifyd | Set up audio playback daemon | | Start Spotifyd | Start the daemon | | Stop Spotifyd | Stop the daemon | | Restart Spotifyd | Restart the daemon | | Activate Spotifyd | Make it the active playback device |

Troubleshooting

Playback not working

Make sure both authentications are complete:

  1. Ctrl+P -> Login to Spotify
  2. Ctrl+P -> Authenticate Spotifyd

Re-authenticate

bun logout
bun start

Then authenticate again via the command palette.

spotifyd issues

If the automatic download failed, install manually:

# Arch Linux
pacman -S spotifyd

# macOS
brew install spotifyd

Or download from spotifyd releases.

Development

bun dev          # Run in watch mode
bun tsc --noEmit # Type check

Dependencies

  • Bun - JavaScript runtime
  • @opentui/core - Terminal UI framework
  • spotifyd - Spotify Connect daemon for audio playback
  • dbus-next - D-Bus bindings for MPRIS control
  • Zod - Schema validation

License

MIT