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

pi-bar

v0.3.39

Published

Pi footer/statusline showing active model, thinking level, context pressure, live progress updates, and extension statuses.

Readme

pi-bar

npm version npm downloads

Never accidentally run Opus on a typo again. pi-bar keeps your model, thinking level, context pressure, a live progress update, and any extension statuses visible in pi's footer.

claude-opus-4.7  ❯  think:med  ❯  2.6% / 1.0M  ❯  Reviewing package structure  ❯  plan:active ❯ queue:2

pi-bar with low context usage pi-bar with medium context usage pi-bar with high context usage

Why use it?

  • See the active model at a glance — catch accidental model switches before an expensive or sensitive task starts.
  • Track thinking level in place — immediately notice when you are using the wrong reasoning setting.
  • Watch context pressure early — context usage turns green, yellow, then red as you approach the limit.
  • Follow what pi is doing — a one-line progress update keeps the current task visible without scrolling.
  • Keep extension statuses visible — statuses other extensions set still appear in the footer.

pi-bar is intentionally tiny: one small extension and no broad behavior changes. It replaces pi's built-in footer with a compact model / thinking / context / progress / extension-status line.

Install

pi install npm:pi-bar

If pi is already running after install, reload resources:

/reload

Customization

pi-bar works out of the box. Run /bar inside pi to choose which footer segments and extension statuses are shown:

/bar

Toggle Model, Thinking level, Context usage, Progress update, and Extension statuses between shown and hidden. If other extensions have published status badges, /bar also shows fine-grained Status: <key> rows plus a New extension statuses default. You can also use commands:

/bar segments list
/bar segments only model context
/bar segments hide progress
/bar segments show thinking

Allowed segments are model, thinking, context, progress, and extensions. The progress segment stays hidden until pi-bar has a current update. The extensions segment stays hidden when no extension has set a status.

You can also set startup defaults with environment variables before launching pi:

PI_BAR_SHOW=model,thinking,context,progress,extensions pi
PI_BAR_SHOW=model,context pi

Configure live progress updates

pi-bar shows a short, plain-English description of what pi is working on right now. It refreshes as pi works and resets when you switch branches in the session tree, so stale updates never follow you across tasks. Hide Progress update in /bar, run /bar segments hide progress, or set PI_BAR_SHOW without progress to disable it.

Pick a specific model for the update by setting the env var or pi settings:

PI_BAR_PROGRESS_MODEL=anthropic/claude-haiku-4-5 pi

Or in pi settings: bar.progressModel. Otherwise pi-bar picks a fast model you are already authenticated with.

Configure extension statuses

Other pi extensions can publish small status badges. Pi-bar collects them into the extensions segment, strips embedded terminal colors, and separates each badge with the same divider used by other footer segments. Run /bar or /bar status inside pi to pick which ones to show:

/bar status

Toggle each status between shown and hidden. The New statuses row controls the default for badges that appear later.

Your choices persist across pi sessions in ~/.pi/agent/pi-bar.json. Override the path with PI_BAR_CONFIG=/some/path.json.

Change context thresholds

PI_BAR_THRESHOLDS=60,85 pi

The first number is the warning/yellow threshold. The second number is the danger/red threshold. Defaults are 70,90.

Pairs well with

  • pi-chrome — give your Pi agent your real, signed-in Chrome. Use pi-bar's red-context threshold as the signal to wrap up long browser scrapes before context overflows.
  • pi-qq — ask side questions about what the agent just did without polluting the transcript.

Security note

Pi extensions run with your local user permissions. Review any pi package source before installing it.

Progress updates send short snippets of your session activity to the selected model provider. Hide Progress update in /bar or disable the progress segment with PI_BAR_SHOW if that is not acceptable.