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

@tethral/acr-hook

v0.6.1

Published

Claude Code hook that captures every tool call your agent makes and prints a readout when each session ends. One-command setup (acr-hook init) — self-registers, needs no MCP, no API key to manage. Pairs with @tethral/acr-mcp.

Readme

@tethral/acr-hook

Claude Code hook that captures what your agent does — and shows you a readout when each session ends.

Observation at the transport boundary, no agent cooperation required. The pre/post hooks record every tool call; the card hook prints a short summary to your terminal as the session closes.

Setup (one command)

npm install -g @tethral/acr-hook
acr-hook init

init does everything:

  • registers an identity for you (no @tethral/acr-mcp required),
  • wires the hooks into ~/.claude/settings.json (idempotent — it won't duplicate, and it backs the file up first),
  • verifies the loop by emitting a test event and reading it back.

That's it. From then on, capture runs on every tool call and a readout prints when each session ends.

Add to ~/.claude/settings.json (use the global acr-hook bin so the path is stable):

{
  "hooks": {
    "PreToolUse":  [{ "matcher": "*", "hooks": [{ "type": "command", "command": "acr-hook pre" }] }],
    "PostToolUse": [{ "matcher": "*", "hooks": [{ "type": "command", "command": "acr-hook post" }] }],
    "SessionEnd":  [{ "matcher": "",  "hooks": [{ "type": "command", "command": "acr-hook card" }] }]
  }
}

No API key to manage, no MCP required

You never generate, paste, or even see an API key. The hook self-registers on first run — generating a signing keypair and minting an identity into ~/.claude/.acr-state.json — then reads that file locally to send receipts and fetch your readout. The key never leaves your machine and there's no setup step for it. (@tethral/acr-mcp shares the same identity file, so the two interoperate, but neither requires the other.)

The readout

At the end of a session you'll see:

─ ACR · today ─
  49 tool calls · 0 failures · 7% of your active time spent waiting on tools
  where the time went: bash 79% · openai.com 12% · github.com 3%
  full view → https://dashboard.acr.nfkey.ai/agents/<id>/friction?range=week#k=…

The full view link is pre-authenticated (it carries your local key in the URL fragment, which browsers never send to a server) so it opens straight to your dashboard with no login.

What gets observed

Every tool call Claude Code makes, mapped to a canonical target:

| Tool | Target | |---------------------------|-------------------| | Bash | platform:bash | | Read / Write / Edit | platform:fs-* | | Grep / Glob | platform:fs-* | | Task | agent:subagent | | WebFetch | api:<hostname> | | WebSearch | api:web-search | | mcp__<server>__<tool> | mcp:<server> |

Receipts carry source='claude-code-hook', the primary capture path.

Fail-quiet by design

pre/post never block a tool call and never write to stdout/stderr — if ACR is unreachable, the receipt is dropped rather than slowing you down. card is the one command that prints (to stdout, shown by Claude Code at session close); on any error it prints nothing rather than cluttering the exit.