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

llm-comment

v0.1.0

Published

Leave inline comments on AI agent output in a local web UI

Readme

llm-comment

Leave inline comments on AI agent output in a local web UI, then hand them back to the agent. Works with any harness that can run a shell command.

Agent skill

plugin/skills/review-output/SKILL.md tells an agent how to write its output to a file, run a review and act on the comments. In Claude Code it runs as /llm-comment:review-output, or automatically when you ask to comment on its output.

Install in Claude Code (this repo is also a plugin marketplace). Run this from any directory; there's no need to clone the repo first:

/plugin install llm-comment --marketplace GeekFiftyFive/llm-comment

Claude Code fetches the marketplace straight from the GeekFiftyFive/llm-comment GitHub repo, saves it in your user settings and installs the skill for all your projects. Add --scope project to record it in the current project's .claude/settings.json instead, so collaborators are offered it too.

On versions before 2.1.275, add the marketplace first: /plugin marketplace add GeekFiftyFive/llm-comment, then /plugin install llm-comment@llm-comment.

The skill runs llm-comment if it's on your PATH, and otherwise npx -y llm-comment@<pinned version>, so you don't need to install the CLI separately.

CLI usage

# Foreground: blocks until the user clicks "Finish review", then prints the comments JSON.
npx -y [email protected] open /path/to/output.md --wait

# Background: prints {"session":"…","url":"…"} and exits immediately.
npx -y [email protected] open /path/to/output.md
# Later: print the comments and stop the background server.
npx -y [email protected] comments <session>

Options for open: --no-open (don't launch a browser), --port <n>, --timeout <minutes> (idle timeout, default 120). The server also stops when the review is finished.

Output:

{
  "version": 1,
  "document": { "sha256": "…", "lines": 31 },
  "status": "done",
  "comments": [
    {
      "id": "…",
      "startLine": 7,
      "endLine": 9,
      "quote": "selected text",
      "comment": "…",
      "createdAt": "…"
    }
  ]
}

status is "open" if the review timed out or comments was run before the user finished.

Security model

  • The input file is copied into a private mkdtemp session directory (mode 0700). The server only reads and writes fixed files in that directory; no request ever carries a path.
  • Listens on 127.0.0.1 only, on a random port. Requests with any other Host header are refused (DNS rebinding).
  • Every API request needs a per-session bearer token, delivered in the URL fragment so it never reaches logs or Referer. No CORS headers are sent; writes also check Origin/Sec-Fetch-Site and only JSON bodies are accepted.
  • Request bodies are schema-validated and size-limited.
  • The document is rendered without raw HTML, remote images are blocked, and a strict CSP is applied.

Development

npm run build        # compile the CLI and bundle the frontend into dist/
npm run typecheck    # tsc over src, test and web
npm test             # unit tests
npm run test:e2e     # builds, then drives the real CLI
npm run lint         # oxlint
npm run format       # oxfmt (format:check to check without writing)

Git hooks are managed by Lefthook and installed by npm install. Before each commit they lint and format-check the staged files and run the unit tests; before each push they lint and format-check the whole project, typecheck, and run the unit and end-to-end tests. Skip them once with LEFTHOOK=0.

Frontend with live reload: run npm run dev:server (serves example.md on port 4100 and prints a URL with a token), then npm run dev:web and open http://localhost:5173/#token=<token from the first command>.

To try the skill against your working copy, run npm link (puts llm-comment on your PATH, pointing at dist/), then start Claude Code with claude --plugin-dir ./plugin. Check manifests with claude plugin validate ..

Jest runs under node --experimental-vm-modules so it can load Fastify's ESM-only dependencies. TypeScript 7 has no compiler API for ts-jest, so tests are transpiled with SWC and type-checked separately by npm run typecheck.

CI and releasing

Every pull request to main, including drafts, runs lint, format check, typecheck, build and all tests (.github/workflows/ci.yml).

To release:

  1. Bump the version in package.json, plugin/.claude-plugin/plugin.json and the pinned npx version in plugin/skills/review-output/SKILL.md together, so the skill always runs the CLI it was written for. Merge that to main.
  2. Tag the merged commit and push the tag: git tag v0.2.0 && git push origin v0.2.0.
  3. Approve the npm deployment in the workflow run on GitHub.

.github/workflows/release.yml checks the tag matches the package.json version and points at a commit on main, runs every check, packs the package, and publishes that tarball to npm with provenance. Versions with a pre-release suffix (v0.2.0-beta.1) are published under the next dist-tag instead of latest.

Publishing uses npm trusted publishing, so no npm token is stored in GitHub. It relies on these settings:

  • npm package settings: a trusted publisher for GitHub Actions (GeekFiftyFive/llm-comment, workflow release.yml, environment npm), and publishing access set to "Require two-factor authentication and disallow tokens".
  • GitHub environment npm: a required reviewer, and deployments limited to tags matching v*.
  • GitHub rulesets: v* tags can only be created, moved or deleted by admins; main requires a pull request with the "Lint, build and test" check passing.
  • GitHub Actions settings: fork pull request workflows need approval for all outside contributors, and the default workflow permissions are read-only.