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

@shcv/velcro

v0.2.1

Published

Master hook interceptor and manager for Claude Code - intercept, process, and automate Claude's tool usage with custom JavaScript handlers

Readme

Velcro

Master hook interceptor for Claude Code with dynamic handler management.

Why Velcro?

Claude Code's native hooks are static - you edit JSON files and restart. Velcro makes hooks dynamic:

  • Enable/disable handlers without restarting - Toggle handlers via MCP tools
  • Use npm packages - Full Node.js ecosystem in your handlers
  • Test before deploying - Run handlers with mock data
  • Query hook history - All hooks logged to searchable JSONL
  • Import existing hooks - Works with your current Claude setup

Quick Start

# Install globally
npm install -g @shcv/velcro

# Or install locally
npm install @shcv/velcro

# Add to Claude Code
velcro install-hooks

# Start server
velcro serve

# Import existing handlers (optional)
velcro import

Example Handler

Block writes to sensitive files:

// Via MCP: velcro-hook add
if (hookData.tool_name === 'Write' && /\.env$/.test(hookData.tool_input.file_path)) {
  console.error('Blocked: Cannot modify .env files');
  process.exit(2); // Exit code 2 blocks the tool
}

Handler Types

  1. Velcro - JavaScript with npm packages
  2. Command - Shell commands (Claude-compatible)
  3. Script - External script files

All handlers support:

  • Tool filtering via regex matchers
  • Exit codes: 0=success, 2=block, other=error
  • Full hook data via stdin/arguments

MCP Tools

  • velcro-hook - Manage handlers (add, test, enable/disable)
  • velcro-config - Update configuration
  • velcro-package - Install npm packages for handlers
  • velcro-log - Query hook execution logs
  • velcro-monitor - Monitor handler performance

Security Configuration

By default, Velcro only accepts connections from localhost for security. To enable remote access:

Safe Remote Access (Recommended)

# 1. Allow remote connections with OAuth requirement
velcro security allow-remote

# 2. Configure OAuth credentials
velcro security configure-oauth --client-id YOUR_ID --client-secret YOUR_SECRET

# 3. Check security status
velcro security status

Disable Authentication (DANGEROUS)

⚠️ WARNING: This allows REMOTE CODE EXECUTION from any network client!

# Only use in trusted, isolated environments
velcro security disable-auth --i-understand-the-risks

Security Commands

  • velcro security status - Show current security configuration
  • velcro security allow-remote - Enable remote connections (with auth)
  • velcro security localhost-only - Restrict to localhost only
  • velcro security configure-oauth - Set OAuth credentials
  • velcro security require-auth - Re-enable authentication requirement

Architecture

Claude Code → Hooks → Velcro → Log + Execute Handlers
                         ↓
                    MCP Server ← Claude UI

Documentation

License

CC0 1.0 Universal - Public Domain Dedication