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

tune-in-claude

v1.0.4

Published

Music plays while Claude Code thinks, pauses when it needs your input. Vibe-code with AI.

Readme

tune-in-claude

Vibe-code with Claude. Music plays while Claude thinks, pauses when it's your turn.

npm install -g tune-in-claude
tune-in-claude

That's it.

What it does

tune-in-claude wraps Claude Code and syncs your Spotify playback to Claude's activity:

  • Claude is thinking / using tools → music plays 🎵
  • Claude needs your input → music pauses ⏸️
  • You start typing → music plays again 🎵
  • You stop typing for 6 seconds → music pauses (you're thinking!)

You always know what Claude is doing without looking at the screen.

Requirements

  • Claude Code installed and on your PATH (claude command)
  • Spotify Desktop open with something playing
  • macOS (Windows/Linux have limited support via native media controls)

Installation

npm install -g tune-in-claude

Usage

# Drop-in replacement for `claude`
tune-in-claude

# Pass any Claude Code arguments
tune-in-claude --model claude-opus-4-5
tune-in-claude --resume

# Continuous mode: music plays non-stop (no pause on your turn)
tune-in-claude --no-pause

How it works

Under the hood, tune-in-claude:

  1. Opens Spotify if it isn't running
  2. Starts music immediately
  3. Injects Claude Code hooks into ~/.claude/settings.json:
    • PreToolUse → plays music (Claude is working)
    • Stop → pauses music (Claude needs input)
  4. Spawns claude in a PTY so the full interactive TUI works normally
  5. Watches your keystrokes: typing starts music, 6s of silence pauses it
  6. Restores your original ~/.claude/settings.json on exit

No Spotify account changes. No persistent modifications. Everything reverts cleanly when you quit.

Also included: tune-in (general command wrapper)

# Play music while any command runs, pause when it's done
tune-in npm run build
tune-in pytest tests/
tune-in cargo build --release

Optional: Spotify Web API mode

By default, music control uses native OS commands (AppleScript on macOS). For remote device control or more reliable playback, you can use the Spotify Web API:

  1. Create a Spotify app at developer.spotify.com/dashboard
    • Add redirect URI: http://localhost:8888/callback
  2. Set environment variables:
    export SPOTIFY_CLIENT_ID="your_id"
    export SPOTIFY_CLIENT_SECRET="your_secret"
  3. Authenticate once:
    tune-in auth

Requires Spotify Premium for playback control via Web API.

Troubleshooting

Music doesn't start Make sure Spotify Desktop is open and a song is loaded (play one manually first).

claude command not found Install Claude Code: claude.ai/code

Music doesn't pause when Claude needs input The Stop hook requires Claude Code version that supports hooks. Update Claude Code with claude update.

License

MIT © Vedant Jain