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

@juicesharp/rpiv-btw

v1.0.5

Published

Pi extension: /btw side-question slash command — ask the same primary model a one-off side question without polluting the main conversation

Readme

rpiv-btw

npm version License: MIT

Ask a side question without polluting the main conversation. rpiv-btw adds /btw <question> to Pi Agent — a lightweight side agent picks up a read-only clone of your current conversation and answers in a panel at the bottom of the terminal. The side agent remembers its own /btw thread for follow-ups, while your main chat keeps going — its transcript is never polluted.

The /btw side-question panel at the bottom of the Pi terminal

Install

pi install npm:@juicesharp/rpiv-btw

Restart your Pi Agent session, then type /btw followed by your question:

/btw why did we switch from sockets to SSE last week?

Usage

What you see

A panel opens at the bottom of the terminal with:

  • your question on a banner,
  • a while the model is thinking,
  • the answer when it arrives.

Prior /btw questions from the same session appear above the banner, so follow-ups have context.

Keys

| Key | Action | |---|---| | / | Scroll the panel (when its content overflows) | | x | Clear this session's /btw history (hidden until you have a prior entry) | | Esc | Close the panel; cancel the request if it's still running |

What the model sees

The side agent is a fresh, tool-less instance of the same primary model, handed a read-only clone of your current conversation. When you press enter, /btw sends it:

  1. A snapshot of your main conversation so far — so it knows what you've been working on. The side agent only reads the clone, so nothing it does pollutes your main transcript.
  2. Your previous /btw questions and answers in this session — so follow-ups make sense.
  3. The question you just typed.

What it does not do

  • Your main conversation is never polluted. The side answer lives only in the panel and in memory — it's not written to the agent's transcript or to disk.
  • /btw has no tools. The model answers in plain text.
  • History is lost when you exit Pi Agent. Your main session is unaffected.

Commands

| Command | Description | |---|---| | /btw <question> | Ask a side question without polluting the main conversation |

Architecture

rpiv-btw/
├── index.ts        — extension entry; registers command + hooks
├── btw.ts          — state, message threading, model call
├── btw-ui.ts       — bottom panel renderer
└── prompts/
    └── btw-system.txt — system prompt for the side call

Pi Agent discovers the extension via "pi": { "extensions": ["./index.ts"] } in package.json.

Troubleshooting

| Symptom | Cause | Fix | |---|---|---| | /btw requires interactive mode | Running in pi --print … or RPC mode | /btw needs a terminal — run Pi interactively | | /btw requires an active model | No primary model configured | Set one with /login or edit ~/.pi/agent/models.json | | Panel opens but answer never arrives | Model call failed or network dropped | Press Esc to cancel; check your provider credentials | | History missing after restart | Expected — no disk persistence | /btw history is per-Pi-process by design |

License

MIT