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

@roodriigoooo/pi-hunk

v0.9.0

Published

Explicit Hunk review checkpoints for Pi with safe handoff, freshness checks, and human-authored note delivery.

Readme

pi-hunk

npm version

pi-hunk orchestrates explicit human review checkpoints between Pi and Hunk.

Workflow

  1. Let Pi change working tree.
  2. Run /hunk review or press Ctrl+Shift+H.
  3. Review changes and author notes in Hunk, then exit.
  4. Choose Submit now, Keep for later, or Abandon.
  5. After requested changes, re-review and submit empty review to approve.

Hunk owns human review. pi-hunk launches or attaches Hunk, captures complete review snapshots, persists checkpoint state, verifies freshness, and delivers only explicitly submitted human notes to model. Empty approval never starts model turn.

When no Hunk session exists, same-terminal review temporarily stops Pi TUI, launches hunk diff --watch --no-exclude-untracked, and restores Pi after Hunk exits.

If Hunk is already open in another terminal, /hunk review attaches read-only and returns immediately. Finish review there, then run /hunk submit in Pi.

Review states

  • hunk · ready — no active checkpoint.
  • hunk · reviewing — captured review awaits submission.
  • hunk · re-review — complete changeset changed after capture.
  • hunk · approved — empty review was explicitly submitted.
  • hunk · approved · state unknown — current freshness could not be verified.

Freshness covers complete changeset. Live Hunk session is authoritative. Owned default Git working-tree reviews also receive conservative fallback covering tracked changes, renames, and untracked files. Unsupported sources and failed probes report unknown instead of claiming clean state.

Requirements

  • Node.js 20 or newer.
  • Pi.
  • Hunk 0.15.3 or newer for review workflow.

Install

pi install npm:@roodriigoooo/pi-hunk

Restart Pi or run /reload.

Commands

  • /hunk status — show checkpoint, session, freshness, and journal diagnostics.
  • /hunk review — attach existing Hunk session or launch same-terminal Hunk.
  • /hunk submit — validate freshness and deliver exact submitted human notes.
  • /hunk abandon — abandon active checkpoint without model turn.
  • /hunk configure — configure Hunk integration and binary path.

Configuration

/hunk configure writes project config to .pi/hunk.json:

{
  "hunk": {
    "enabled": true,
    "binary": "hunk"
  }
}

Global config lives at ~/.pi/agent/hunk.json. Project values override global values.

Checks

npm run check
npm pack --dry-run

Project layout

  • src/review-export.ts — complete Hunk export normalization and stable digests.
  • src/changeset.ts — tool-independent freshness fingerprints and comparisons.
  • src/git-changeset.ts — owned Git working-tree fallback adapter.
  • src/checkpoint-store.ts — immutable checkpoint state machine and journal folding.
  • src/hunk-session-client.ts — read-only Hunk probe and review client.
  • src/hunk-handoff.ts — child process and Pi terminal lifecycle.
  • src/review-coordinator.ts — live review sampling and retained final exports.
  • src/index.ts — commands, shortcut, persistence, and explicit submission.

License

MIT