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

@crafter/spoti-cli

v0.6.1

Published

Spotify Web API from your terminal. Search, playback, library, audio features, and playlists.

Readme

spoti-cli

Spotify Web API from your terminal. Search, recommend, create playlists. Built for AI agents.

Install

bun add -g spoti-cli

Setup

  1. Create a Spotify app at developer.spotify.com/dashboard
  2. Set redirect URI to http://localhost:8888/callback
  3. Authenticate:
spoti-cli auth --client-id YOUR_CLIENT_ID

Usage

# Search tracks, artists, albums, playlists
spoti-cli search "Daft Punk" --type artist --json
spoti-cli search "Around the World" --type track --limit 5
spoti-cli search "lofi study" --type playlist

# Search types: track, artist, album, playlist

# Get recommendations from seeds
spoti-cli recommend --seed-genres electronic,house --energy 0.8 --limit 20 --json

# Create a playlist and follow it so it appears in playlist list
spoti-cli create "Late Night Electronics" --tracks URI1,URI2,URI3 --public
spoti-cli create "Scratchpad" --no-follow

# Manage playlists
spoti-cli playlist list --json
spoti-cli playlist list --mine --filter "rock" --limit 100
spoti-cli playlist get PLAYLIST_ID --json
spoti-cli playlist add PLAYLIST_ID --tracks URI1,URI2

# Current user
spoti-cli me --json

Tunable Attributes

Fine-tune recommendations with audio features:

| Flag | Range | What it controls | |------|-------|-----------------| | --energy | 0.0–1.0 | Intensity | | --danceability | 0.0–1.0 | Groove factor | | --valence | 0.0–1.0 | Happy ↔ sad | | --tempo | BPM | Speed | | --acousticness | 0.0–1.0 | Acoustic ↔ electronic | | --instrumentalness | 0.0–1.0 | Instrumental ↔ vocal | | --popularity | 0–100 | Mainstream factor |

AI Agents

Every command supports --json. Pair with Claude, GPT, or any LLM to generate playlists from natural language.

"Create a lo-fi playlist for studying"
→ AI maps mood → search seeds → recommend → create
→ Playlist on your Spotify

Stack

Bun · TypeScript · Spotify Web API · OAuth2 PKCE

License

MIT — Crafter Station