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

morille

v0.5.0

Published

A terminal-based Spotify player built with TypeScript, ink, and the Spotify Web API.

Readme

morille

A terminal-based Spotify player built with TypeScript, ink (React for the terminal), and the Spotify Web API.

Install & run

npx morille

That's it. morille ships with a default Spotify Client ID baked into the binary, so the app works out of the box — no registration required for most users.

Spotify Premium is required for playback control.

Running from source

pnpm install
pnpm build
node dist/index.js

Using your own Client ID

If you want to use your own Spotify app (for development, higher rate limits, or access to more users via extended quota mode), override the embedded default with an environment variable:

  1. Go to the Spotify Developer Dashboard
  2. Create a new app
  3. In your app settings, add http://127.0.0.1:8888/callback as a Redirect URI
  4. Copy the Client ID from your app's overview page
  5. Export it before running morille:
    export SPOTIFY_CLIENT_ID=your_client_id_here
    npx morille

SPOTIFY_CLIENT_ID always takes precedence over the embedded default. To change the embedded default, edit DEFAULT_SPOTIFY_CLIENT_ID in src/config.ts and rebuild.

Debug output

morille is silent on stderr by default so the terminal UI stays clean. To see internal diagnostics (fetch traces, retry notices, auth and API errors), run with the --debug flag or set the DEBUG=1 environment variable:

npx morille --debug
# or
DEBUG=1 npx morille

Debug output is written to stderr and will visibly interfere with the ink UI — this mode is intended for development, not regular use.

Usage

  • Space - toggle play/pause
  • n / Right arrow - next track
  • p / Left arrow - previous track
  • . - seek forward 10s
  • , - seek backward 10s
  • Up arrow - volume up 5%
  • Down arrow - volume down 5%
  • s - toggle shuffle
  • r - cycle repeat (off / context / track)
  • l - toggle lyrics display
  • d - toggle queue view (up/down to navigate, enter to select)
  • / - search tracks, albums, artists, playlists (type to search, left/right to switch category, enter to select)
  • b - browse your playlists (enter to view tracks, enter to play)
  • q - quit

Development

pnpm install
pnpm dev          # watch mode
pnpm build        # compile
pnpm test:ts      # type-check
pnpm test:biome   # lint/format check

Roadmap

  • Add track to queue
  • Device selection / transfer playback
  • Show recently played tracks
  • Like / unlike tracks (save to library)
  • Keyboard shortcuts customization