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 🙏

© 2025 – Pkg Stats / Ryan Hefner

waiting-game

v1.0.2

Published

Local server that hooks into Claude Code lifecycle events

Readme

Waiting Game - Local Server

A local server that hooks into Claude Code lifecycle events to create an interactive gaming experience.

Quick Start

  1. Setup (one time):

    npx waiting-game setup
  2. Start playing:

    npx waiting-game start

Commands

  • npx waiting-game setup - Install Claude Code hooks (doesn't start anything)
  • npx waiting-game start - Start server and launch game
  • npx waiting-game status - Check if hooks are installed
  • npx waiting-game uninstall - Remove hooks

How it Works

  1. Setup installs hooks into your Claude Code configuration (~/.claude/settings.json)
  2. Start launches a local server on port 3001 and opens the game
  3. Claude Code hooks automatically notify the server when tools run
  4. The game polls the server to know Claude's status and pauses/resumes accordingly

API Endpoints

  • GET /status - Get current Claude status
  • GET /health - Health check
  • POST /hooks/tool-start - Called by Claude hooks when tool starts
  • POST /hooks/tool-complete - Called by Claude hooks when tool completes
  • POST /hooks/session-end - Called by Claude hooks when session ends

States

  • idle - Claude is not working
  • working - Claude is actively working
  • tool-executing - Claude is running a specific tool

Troubleshooting

  • Make sure you have Node.js 16+ installed
  • Check that Claude Code is properly configured
  • The game expects to run on localhost:5173 (default Vite port)
  • Hooks require curl to be available in your PATH