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

claude-status-box

v1.0.0

Published

Drive the claude-status ESP32-C3 BLE indicator box (LEDs + buzzer + button) from Claude Code hooks

Readme

claude-status-box

Drives the claude-status ESP32-C3 BLE indicator box (3 LEDs + buzzer + button) from Claude Code hooks on macOS. Installs a claude-status CLI.

| State | Box | Meaning | |---|---|---| | working | green blinking | Claude is doing things | | waiting | red solid + beeps (20 s) | needs your attention | | idle | blue solid | done / ready | | off | everything off | — |

The box also has a hardware button that acts as a real spacebar (it's a BLE keyboard) — with the keybinding this package installs, one press accepts the highlighted option in Claude Code's select prompts.

Voice tip: with Claude Code voice in hold mode ("voice": {"enabled": true, "mode": "hold"} in ~/.claude/settings.json — the default), holding the box's button is push-to-talk: dictation while held, stops on release. This package doesn't change voice settings; set the mode to taste.

Install

npm install -g claude-status-box

Postinstall does everything:

  1. Compiles a tiny Swift CoreBluetooth helper to ~/.claude-status/bin/ (needs Xcode Command Line Tools: xcode-select --install).
  2. Installs 9 Claude Code hooks into ~/.claude/settings.json (backup kept, nothing else in the file is touched, re-install is idempotent).
  3. Adds space → select:accept (Select context) to ~/.claude/keybindings.json so the box's button accepts select prompts (never clobbers an existing space binding).
  4. Pings the device.

One-time hardware setup: power the box and pair claude-status in System Settings > Bluetooth (it appears as a keyboard — that's what keeps macOS holding a persistent connection).

How it works

Hooks run claude-status <state> (async, debounced — repeated same-state events within 20 s never touch the radio). The Swift helper uses the connection macOS already holds to the device as a BLE HID keyboard (retrieveConnectedPeripherals, no scanning) and writes the state string to the custom GATT characteristic — sub-second, no daemon.

macOS attributes the Bluetooth permission to your terminal app — allow it once in System Settings > Privacy & Security > Bluetooth if prompted.

Commands

claude-status test              # cycle working → waiting (buzzer!) → idle
claude-status doctor            # full diagnostic: helper, device, hooks
claude-status install-hooks     # re-run setup (also after moving npm prefix)
claude-status uninstall-hooks   # remove our hooks, leave everything else
claude-status write <payload>   # raw characteristic write (debug: g1, rb, z1, x…)
claude-status working|waiting|idle|off   # what the hooks call

npm uninstall -g claude-status-box removes the hooks and ~/.claude-status/.