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

@vnstrawhat/pi-oneterm

v0.2.4

Published

Pi extension that bridges pi events to OneTerm via OSC 9;7 escape sequences.

Readme

pi-oneterm

pi-oneterm is a pi extension for OneTerm Agent Mode. It emits OSC 9;7 status events from pi to the terminal host, following docs/spec-osc-agent-status.md.

What it emits

Wire format:

ESC ] 9 ; 7 ; <base64-json> BEL

Implemented event types:

  • session on session_start, including project_dir: ctx.cwd
  • state for working, idle, done, error, and manual blocked
  • heartbeat while the session is alive
  • model on startup/model changes/turn end
  • tool_call on tool start/update/end
  • file for pi built-in file/search tools
  • approval for manual blocked state via /agent-status blocked ...

Tool calls are separated in code and payload metadata:

  • Pi built-ins: bash, read, write, edit, grep, find, lstool_kind: "pi_builtin"
  • pi-srcwalk tools: semantic_query, semantic_grep, semantic_inspect, semantic_show, semantic_reviewtool_kind: "pi_srcwalk"
  • Other/custom/extension tools → tool_kind: "other"

Project layout

src/
├── commands/          # slash commands
├── events/            # pi event registration
├── protocol/          # OSC 9;7 wire protocol, envelope, sequence, types
├── runtime/           # state machine, heartbeat, lifecycle handling
├── tools/             # pi built-in, pi-srcwalk, and other tool classification/summaries
├── utils/             # text/object/redaction helpers
└── index.ts           # extension entrypoint

Project-local auto-discovery entrypoint:

.pi/extensions/pi-oneterm.ts

Package entrypoint:

{
  "pi": {
    "extensions": ["./src/index.ts"]
  }
}

Development usage

Run directly:

pi -e ./src/index.ts

Or trust this project and let pi auto-discover .pi/extensions/pi-oneterm.ts.

Commands

Inside pi:

/agent-status
/agent-status working [message]
/agent-status blocked [message]
/agent-status idle [message]
/agent-status done [message]
/agent-status error [message]

/agent-status with no args shows current status and emits a heartbeat.

Validation

npm install
npm run typecheck