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

@firstpick/pi-extension-git-footer-status

v0.3.9

Published

Enhanced Pi footer with git status, token usage, context usage, and model telemetry.

Readme

pi-extension-git-footer-status

Enhanced Pi footer with git health and model/token telemetry.

Status bar with metrics and git context

What it does

  • Shows compact runtime metrics in the footer:
    • input/output/cache tokens
    • export-backed initial prompt estimate (PI: X tok, same estimator as /stats-pi, compacted as k for thousands; falls back to live context data if Pi HTML export is unavailable)
    • live output token counter + token output speed (tok/s) measured from assistant streaming lifecycle events, with a session-history fallback
    • cost + context-window usage
    • current model and reasoning level
  • Shows git status context on the path line:
    • branch/detached state
    • ahead/behind
    • staged/unstaged/untracked/conflicts
    • operation state (rebase/merge/cherry-pick/revert/bisect)
    • stash/submodule/worktree/tag/last-commit-age/signing mismatch indicators
  • Publishes the same footer data as a structured git-footer-webui status payload so Pi Web UI can render the extension-owned footer instead of duplicating this logic in the Web UI package.

Install

pi install npm:@firstpick/pi-extension-git-footer-status

Configuration

No required configuration.

Performance-related environment toggles:

  • PI_GIT_FOOTER_FETCH=0 — disable startup git fetch. Enabled by default.
  • PI_GIT_FOOTER_AUTO_REFRESH_MS=10000 — git status auto-refresh interval. Set 0 to disable.
  • PI_GIT_FOOTER_DISABLE_PROMPT_ESTIMATE=1 — disable the background PI: X tok prompt estimate.

Visibility controls:

  • PI_GIT_FOOTER_HIDE=cost,context — hide keys everywhere.
  • PI_GIT_FOOTER_NATIVE_HIDE=model,thinking — hide keys only in the native TUI footer.
  • PI_GIT_FOOTER_WEBUI_HIDE=webui-refresh-button,webui-details-button — hide keys only in Web UI.
  • PI_GIT_FOOTER_<KEY>=0|1, PI_GIT_FOOTER_NATIVE_<KEY>=0|1, or PI_GIT_FOOTER_WEBUI_<KEY>=0|1 — explicit per-key overrides, with dashes written as underscores, e.g. PI_GIT_FOOTER_WEBUI_CHANGES_MODAL=0.

Useful keys include metric cards (tokens, cache, pi, speed, cost, context), metadata cards (cwd, git, git-state, sync, changes, git-extra, worktree, model, thinking), git subitems (git-branch-indicator, git-ahead, git-behind, git-staged, git-unstaged, git-untracked, git-conflicted, git-clean, git-stash, git-submodules, git-worktrees, git-tag, git-last-commit-age, git-signing-mismatch), native footer areas (cwd-branch, git-status, extension-statuses), and Web UI affordances (webui-fetch-state, webui-refresh-button, webui-details-button, webui-cwd-picker, webui-pi-calibration, webui-context-auto-compaction, webui-branch-picker, webui-git-init, webui-sync-push, webui-changes-modal, webui-git-tools-modal, webui-model-picker, webui-thinking-picker, webui-changed-files-popover).

The initial prompt estimate and session-usage recompute run lazily after the TUI is ready, so the footer should not block startup.

Commands

  • /git-footer-refresh — refresh git/footer information immediately.
  • /git-footer-visibility — in native TUI mode, open an interactive searchable visibility selector. Use Enter/Space to toggle items, Ctrl+S to apply, and Esc/q to cancel.
  • /git-footer-visibility select [all|native|webui] — open the native TUI selector for both targets or a specific target.
  • /git-footer-visibility [status|keys] — inspect available visibility keys and their native/Web UI state.
  • /git-footer-visibility show|hide|toggle|reset [all|native|webui] <key> [key...] — adjust visibility at runtime until the Pi session restarts, e.g. /git-footer-visibility hide webui cost context webui-changes-modal.

Tools

None.

Example view

🪙 ↑126k · ↓11k │ 💾 R1.4M │ PI: 6.8k tok │ ⚡ 48.6 tok/s │ 💸 $1.667 (sub) │ 🧠 19.0%/272k                                                                                                                (openai-codex) gpt-5.5 • low
~/npm-packages (main) │ ✎15 │ ⏱15m · Agent

At a glance you can see token flow, cache reads, prompt-injection size, streaming speed, cost/subscription state, context pressure, model/reasoning level, current repo/branch, dirty-file count, and session time without running git status.