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

@aie-plugins/tool-calls

v0.1.0

Published

aie plugin — capture which Claude Code tool ran on which file (body-free metadata) and stream collapsed tool-call cards into the chat

Readme

@aie-plugins/tool-calls

An aie plugin that records which Claude Code tool ran on which file — plus body-free metadata — and streams each call as a collapsed card into the aie chat.

It captures the Bash command so you can see what ran, plus body-free structural metadata for every other tool — never file content, Edit strings, a full URL, or a prompt (offsets, lengths, counts, flags, globs, the host of a URL). It also filters out noise: aie's own commands, and tool calls whose target files are all git-ignored (build artifacts, node_modules, .aie, …) or Claude Code task-output files (…/tasks/*.output), are never recorded.

Install

// your project's package.json
"dependencies": {
  "aie": ">=1.1.1",
  "@aie-plugins/tool-calls": "^0.1.0"
}

Enable it

List the plugin in an aie.config.ts at the directory you run the aie server from:

import type { AieConfig } from 'aie/kernel'

export default {
  plugins: [{ module: '@aie-plugins/tool-calls', config: { max: 500 } }],
} satisfies AieConfig

Then run the server from that directory (bunx aie serve) so it loads the plugin.

Wire the Claude Code hook

Add a hook that runs aie cc-hook on each tool event — in ~/.claude/settings.json (global) or <project>/.claude/settings.json (project-scoped):

{
  "hooks": {
    "PreToolUse": [{ "matcher": "", "hooks": [{ "type": "command", "command": "aie cc-hook" }] }]
  }
}

aie cc-hook reads the hook JSON on stdin, appends a record to <cwd>/.aie/tool-calls.jsonl, and best-effort POSTs it to the running server. It always exits 0 and writes nothing to stdout, so it can never block or slow a tool call. Set AIE_SESSION (matching your <AIE sessionId>) so calls also stream into the live panel.

Read the log

aie tool-calls                 # summary: totals, by tool, by file
aie tool-calls json            # one JSON record per line
aie tool-calls tool:Edit       # filter by tool
aie tool-calls file:src/App    # filter by file substring

The JSONL under .aie/ is the durable source of truth; the live panel is a per-session ring.

What gets provided

The default export is an aie PluginModule{ server, client, cli }:

  • server — HTTP routes for the live SSE stream, the record intake, the side panel, and the browser client module.
  • client — a tiny React-free browser module the aie chrome loads to render inline collapsed tool-call cards, streamed live.
  • cli — the aie cc-hook (the Claude Code hook) and aie tool-calls (the report) commands.

Requires aie >= 1.1.1 as a peer dependency and runs under Bun (the aie server/CLI process).