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

@luxass/pi-btw

v0.2.1

Published

Ask /btw side questions in a popover without derailing your main Pi conversation.

Readme

@luxass/pi-btw

Ask Pi a side question in a popover without derailing the main conversation.

Install

pi install npm:@luxass/pi-btw

Use

Run /btw to open the side thread, or /btw <text> to open it and ask right away. If a thread already exists, /btw asks whether to continue it or start fresh.

In the popover, Enter asks, Esc stops a running answer or closes the popover, and ↑↓ / PgUp PgDn scroll. In fullscreen mode, you can also scroll with the mouse wheel or trackpad, click the scrollbar on the right edge, or drag its thumb. Wheel speed follows Pi's fullscreenWheelScrollLines setting. Regular mode keeps terminal-owned mouse scrolling, so use the keyboard inside the popover.

Scrolling up holds your place while an answer streams. Scroll back to the bottom to follow new output again. Closing a non-empty thread asks whether to keep it or inject a summary into the main chat.

The side thread sees the main conversation up to the moment you ask, using your current model and thinking level. By default, its tools are read-only (read, grep, find, ls), so it can look things up but not change files. You can configure its tool access separately from the main chat. Because the side request starts with the same prefix as the main chat, providers with prompt caching can reuse the main conversation's cache.

Injecting asks the model for a summary, sends it as a user message, and clears the side thread. If the main agent is busy, the summary is queued as a follow-up.

The side thread is stored in the session log, follows branch navigation, and never enters the main agent's context unless you inject it.

When the popover opens, the side thread copies extension-registered providers from the main session, including their streaming and authentication handlers. Stored credentials still come from Pi's auth.json. Provider extensions are not reloaded, so their tools and lifecycle hooks are not enabled in the side thread.

Tool access

Set btw.tools in ~/.pi/agent/settings.json, or in a trusted project's .pi/settings.json. Pi merges these settings, with the project's tool list replacing the user-level list.

This example adds shell access to the default read-only tools:

{
  "btw": {
    "tools": ["read", "grep", "find", "ls", "bash"]
  }
}

The list replaces BTW's defaults. Omit btw.tools to use read, grep, find, and ls; set it to [] to disable all tools. Supported names are read, grep, find, ls, bash, powershell, edit, and write. Extension and MCP tools are not supported. Invalid tool lists produce an error instead of silently changing tool access.

Enabling bash, powershell, edit, or write lets the side thread run commands or modify files. The main session's permission hooks and custom tool overrides are not inherited. The tool list is not an operating-system sandbox.

Close BTW, run /reload after editing settings, and reopen it to apply the new list. Changing BTW's tools does not change the main chat's tools.