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-mono-status-line

v1.6.0

Published

Pi extension that adds git branch and richer stats to the footer

Readme

status-line extension

Configurable footer with two modes: basic (default) and expert.

Modes

Basic (default)

Original two-line layout with token stats.

~/my-project (main)
↑582k ↓44k R7.0M W470k $6.918 24.0%/1.0M         claude-opus-4-6 • high

Expert

Rich footer with visual context gauge, enhanced git status, and subscription usage indicators.

Layout:

gpt-5.4 (high) - ◔ 14% (38k/272k $0.33)
🗀 ~/my-project  ⎇ main * ↑2
Codex > 5h ◑ 46% 2h38m > Week ○ 12%

Features:

  • Git status — branch name, dirty indicator (*), ahead/behind arrows (↑2 ↓1)
  • Context gauge — pie icon (○ ◔ ◑ ◕ ●) with color thresholds (green → yellow → red)
  • Session cost — running $ total next to the gauge
  • Subscription usage — rate-limit progress icons for Claude Max, Codex, Copilot, and Gemini (auto-detected from the active provider, refreshed every 5 min)
  • Status-first layout — model, current status, and context appear on the first line; cwd/git move to their own line for visibility

Configuration

Mode is resolved in this order (first hit wins):

  1. PI_STATUS_LINE_MODE environment variable
  2. ~/.pi/agent/status-line.json{ "mode": "basic" | "expert" }
  3. default: basic

Use cases

1. Persistent mode across all sessions (config file)

Best for: setting your preferred mode once and forgetting about it.

echo '{ "mode": "expert" }' > ~/.pi/agent/status-line.json

Lives alongside pi's other config files (auth.json, keybindings.json, models.json). Survives shell restarts, applies to every terminal, and is independent of your shell profile.

2. One-off override for a single session (env var inline)

Best for: trying out expert mode without committing, or temporarily switching back to basic while debugging.

PI_STATUS_LINE_MODE=expert pi

Only affects the pi invocation on that line. Your config file default stays untouched.

3. Shell-scoped default (env var in shell profile)

Best for: per-machine or per-shell preferences, or sharing dotfiles across machines where you don't want to manage ~/.pi/agent/ on each.

# ~/.zshrc or ~/.bashrc
export PI_STATUS_LINE_MODE=expert

Takes precedence over the config file, so it's useful on a shared machine where you want your shell to override whatever is in ~/.pi/agent/.

4. Revert to basic mode

Either delete the config file, unset the env var, or explicitly set basic:

# remove persistent config
rm ~/.pi/agent/status-line.json

# or explicitly write basic
echo '{ "mode": "basic" }' > ~/.pi/agent/status-line.json

# or one-off
PI_STATUS_LINE_MODE=basic pi

Files

  • index.ts — entry point (mode selector)
  • basic.ts — basic mode implementation
  • expert.ts — expert mode implementation