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

@arach/hooked

v1.1.1

Published

Smart hooks for Claude Code and Amp - voice alerts, stop hook management, and until loops

Readme

hooked

A TypeScript toolkit for Claude Code hooks. Voice notifications and smart continuation presets.

Features

  • Voice Notifications - Know when Claude needs you via SpeakEasy
  • Continuation Presets - Keep Claude working until tests pass, build succeeds, or you say stop
  • Simple CLI - hooked test to enable, hooked off to disable

Quick Start

git clone https://github.com/arach/hooked.git
cd hooked && pnpm install
pnpm run hooked:init
pnpm run hooked:init -- --no-backup   # Skip Claude settings backups

Usage

Continuation Presets

# Keep working until tests pass
hooked test

# Keep working until build succeeds
hooked build

# Keep working until you say stop
hooked manual

# Back to normal (Claude stops when it wants)
hooked off

# Check current state
hooked status

Available Presets

| Preset | Check Command | Description | |--------|---------------|-------------| | test | pnpm test | Keep working until tests pass | | build | pnpm build | Keep working until build succeeds | | typecheck | pnpm typecheck | Keep working until types are clean | | lint | pnpm lint | Keep working until lint passes | | manual | - | Keep working until explicitly stopped |

How It Works

  1. Run hooked test - enables the test preset
  2. Claude works on your task
  3. When Claude tries to stop, the hook runs pnpm test
  4. If tests fail, Claude keeps working
  5. When tests pass, continuation auto-disables

Web Dashboard

View history, configure settings, and monitor active alerts:

hooked web                 # Opens at localhost:3456, auto-closes in 10m (background)
hooked web 8080 30         # Custom port, 30 minute timeout
hooked web --foreground    # Keep attached to the terminal

Web Dashboard

Configuration

Config stored in ~/.hooked/config.json:

{
  "activePreset": "test",
  "flags": {
    "speak": true,
    "logging": true
  }
}

Project Structure

~/.hooked/
├── src/           # Hook handlers
├── state/         # Session state
├── config.json    # Active preset & flags
└── history/       # Event logs

~/.claude/
├── hooks/         # Deployed hooks
└── settings.json  # Hook configuration

Stop Hook API

For custom stop hooks:

import { createStopHook, maxIterations, continueUntil } from 'hooked/stop'

const hook = createStopHook([
  maxIterations(30),    // Safety limit
  continueUntil(),      // Preset-based continuation
])

hook()

Built-in Evaluators

import {
  maxIterations,     // Stop after N iterations
  continueUntil,     // Preset-based (hooked test/build/etc)
  commandSucceeds,   // Custom command check
  testsPass,         // Alias for commandSucceeds('pnpm test')
  buildSucceeds,     // Alias for commandSucceeds('pnpm build')
} from 'hooked/stop'

Voice Notifications

Requires SpeakEasy configured with a TTS provider:

npm install -g @arach/speakeasy
speakeasy config

Notifications announce when Claude needs attention:

  • "In hooked, Claude needs your permission"
  • "In hooked, Claude is waiting for you"

Development

# Test the CLI
npx tsx src/cli/commands.ts status
npx tsx src/cli/commands.ts test
npx tsx src/cli/commands.ts off

# Test the stop hook
echo '{"session_id":"test","transcript_path":"/test"}' | npx tsx src/stop/default-hook.ts

# Watch logs
tail -f ~/logs/claude-hooks/notification.log

Resources


Default: OFF - Continuation only activates when you explicitly enable a preset.