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

agentdock-hook

v0.1.0

Published

Claude Code hook runner for AgentDock — blocks on approval before file writes

Downloads

143

Readme

agentdock-hook

Claude Code hook runner for AgentDock — streams every tool call to your dashboard and blocks on file writes until a human approves them.

Install

npm install -g agentdock-hook

Setup

1. Get your project API key from AgentDock → Project → Settings.

2. Set environment variables (add to your shell profile or .env):

AGENTDOCK_API_KEY=ah_live_...
AGENTDOCK_BASE_URL=https://www.getagentdock.com
AGENTDOCK_REQUIRE_APPROVAL=true

3. Add hooks to .claude/settings.json in your project:

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Write|Edit|MultiEdit|Bash",
        "hooks": [{ "type": "command", "command": "npx agentdock-hook pre", "timeout": 30 }]
      }
    ],
    "PostToolUse": [
      {
        "matcher": ".*",
        "hooks": [{ "type": "command", "command": "npx agentdock-hook post" }]
      }
    ]
  }
}

4. Run Claude Code. Every session, tool call, and file change will appear in your AgentDock dashboard in real time.

How it works

  • Pre-hook (blocking): fires before every Write/Edit/Bash. Posts the event to AgentDock, then polls for approval. If approved, exits 0. If rejected, exits 2 — Claude Code shows the rejection reason and stops.
  • Post-hook (non-blocking): fires after every tool call. Records the result and token usage.

Environment variables

| Variable | Default | Description | |----------|---------|-------------| | AGENTDOCK_API_KEY | — | Required. Your project API key. | | AGENTDOCK_BASE_URL | http://localhost:3000 | AgentDock instance URL. | | AGENTDOCK_REQUIRE_APPROVAL | true | Set to false to record events without blocking. | | AGENTDOCK_TIMEOUT_ACTION | approve | What to do if approval poll times out: approve or reject. |

Requirements

Node.js ≥ 18