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

@mhjerryjin/pi-footer

v0.1.7

Published

A compact Pi footer showing model, Git, context, quotas, and active work/subagent status.

Readme

pi-footer

A compact footer for Pi with two core status rows plus a stable work-status row for active tools and subagents. It shows model and thinking status, working directory, Git state, session name, context usage, provider quotas, and active work.

Preview

pi-footer showing model, effort, working directory, Git branch, context usage, weekly quota, and active agents

Features

  • Two aligned, background-free core rows plus a stable work-status row
  • Model, thinking level, optional active fast service-tier indicator, working directory, Git branch, and /name session display
  • Git dirty state plus ahead/behind counts
  • Context usage with token counts
  • Provider quota lookup with reset countdowns
  • Ten-cell segmented progress bars
  • Theme-independent usage thresholds: green below 50%, yellow from 50% to below 75%, red at 75% and above
  • Truecolor output with a 256-color fallback
  • Automatic refresh on startup, model changes, session renames, Git changes, and every five minutes for quotas
  • Active parent tool and pi-subagents agent/background counts without layout shifts
  • Distinct ● model, threshold-colored ◐ context, and ↳ work-status icons

Install

GitHub

pi install git:github.com/mhjerryjin/pi-footer

npm

pi install npm:@mhjerryjin/pi-footer

Run /reload after replacing another footer extension in an active Pi session.

Usage

Set a session name with Pi's built-in command:

/name feature-work

The footer and terminal tab title update immediately when the name changes:

pi · feature-work

Without an explicit session name, the title falls back to the current project, for example pi · pi-footer.

When Pi sends a supported provider request with the fast or priority service tier enabled, the effort section uses the same thinking-level color and becomes:

effort: high fast

The fast suffix follows pi-service-tier global defaults and branch-aware session overrides immediately. It is hidden when Fast is off or the current provider/API pair does not support service tiers.

Most terminal emulators honor the title sequence automatically. VS Code defaults to the foreground process name (node); set this in VS Code User Settings to display the title sent by Pi:

{
  "terminal.integrated.tabs.title": "${sequence}"
}

Work status

While work is active, a compact third row appears automatically:

● model: gpt-5.6-sol │ effort: high │ git: main
◐ context ■■■□□□□□□□ 31% │ weekly ■■■□□□□□□□ 34%
↳ task: bash · 12s │ agents: 1/2 · reviewer running │ bg: 1/4
  • task/tasks tracks tools currently running in the parent Pi session.
  • agents shows active/total child progress plus active agent labels from the versioned pi-subagents async snapshot, falling back to Fleet counts for older releases.
  • bg is active top-level asynchronous subagent work and its configured capacity.
  • The row stays reserved but blank while idle, preventing the editor and footer from jumping when work starts or stops.

The pi-subagents integration is optional and uses its versioned in-process event-bus API, so pi-footer has no hard dependency on that package. FleetView remains responsible for per-agent details and controls such as inspect, stop, and steer.

Context refresh after compaction

Immediately after /compact, Pi has no provider-measured token count for the new compacted context. The footer displays a conservative local estimate marked with ~:

◐ context ■■□□□□□□□□ ~14% (~154k/1.1M)

The next assistant response supplies authoritative usage and automatically replaces the estimate without ~.

Configuration

All environment variables are optional:

| Variable | Description | Default | | ------------------------------------- | -------------------------------------------------------- | ------- | | PI_MINIMAL_FOOTER_SHOW_SESSION_NAME | Show the explicit session name set with /name | 1 | | PI_MINIMAL_FOOTER_SHOW_CWD | Show the current working directory | 1 | | PI_MINIMAL_FOOTER_SHOW_BRANCH | Show Git branch, dirty state, and ahead/behind counts | 1 | | PI_MINIMAL_FOOTER_SHOW_WORK_STATUS | Reserve and show the work summary row | 1 | | PI_MINIMAL_FOOTER_SET_TERMINAL_TITLE | Update terminal title from the session/project name | 1 |

Accepted false values are 0, false, no, and off (case-insensitive).

Provider support

The extension contains quota adapters for:

  • Anthropic Claude Max
  • OpenAI Codex
  • GitHub Copilot
  • Google Gemini CLI
  • MiniMax and MiniMax CN
  • Kimi Coding
  • CommandCode
  • OpenCode Go and OpenCode Zen
  • OpenRouter

The compact layout prefers a weekly window. When a provider has no weekly window, it displays the provider's most-used available quota or balance window instead.

Credentials and privacy

To query quota endpoints, the extension reads provider-scoped credentials already stored by Pi in ~/.pi/agent/auth.json, standard provider environment variables, and documented provider-specific local credential files. Credentials are used only for the selected provider's request and are not printed or sent to an author-operated service. OpenCode Go/Zen values are local estimates based only on Pi session records.

See SECURITY.md for the complete credential and network behavior.

Platform notes

The implementation uses cross-platform Node.js APIs and is designed for macOS, Linux, and Windows. Git information requires git on PATH. The symbols ●, ◐, ↳, ■, and │ require a modern Unicode-capable terminal; Windows Terminal is recommended on Windows.

Credits

This project is based on @kvoon/pi-minimal-footer, which is itself based on @ogulcancelik/pi-minimal-footer by Can Celik. Their original copyright notices are retained in LICENSE.

License

MIT