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

btw-pi

v0.4.0

Published

Ask a context-free side question while Pi keeps working.

Downloads

276

Readme

btw-pi

A lightweight Pi extension for asking an isolated side question while the main agent keeps working.

/btw what does SIGPIPE mean?

The answer appears as a compact card in the chat transcript. The card is a custom session entry, so neither the question nor the answer is added to the main model context. There is no centered modal: input stays in Pi's normal editor and an animated activity row remains visible above it.

UX

  • /btw <question> starts an independent completion with the currently selected model.
  • An animated /btw <question> activity row stays visible above the editor until the answer arrives.
  • If Pi is still streaming, the completed side answer is shown immediately in that row instead of waiting for the main transcript to settle.
  • Focus immediately returns to Pi's normal editor, so you can keep using the main conversation while /btw runs.
  • Side questions use minimal reasoning and a concise output budget for lower latency.
  • Pi's active inference continues; the side question is not queued as steer/follow-up.
  • /btw cancel cancels the active side question without aborting Pi's main inference.
  • One side request may run at a time.
  • Ctrl+O expands a result card to show model and timestamp.

Install

Install from npm:

pi install npm:btw-pi

Or try it for one run without installing:

pi -e npm:btw-pi

You can also install a local checkout while developing:

pi install /absolute/path/to/btw-pi

After changing a local extension, run /reload in Pi.

Design

  • Uses pi.registerCommand() rather than adding an LLM tool or system-prompt overhead.
  • Calls Pi's compatibility completeSimple() API with minimal reasoning and no shared conversation state.
  • Reuses Pi's selected model and credential registry.
  • Uses pi.appendEntry() plus registerEntryRenderer() for durable, display-only results.
  • Uses the injected theme and built-in TUI components.
  • Aborts in-flight work on session shutdown/reload.

Development

npm install
npm test
npm run pack:dry

Requires Node.js 20 or newer.

Release history is maintained in CHANGELOG.md.