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-input-bar

v1.1.0

Published

Pi extension: decorated input bar — folder/branch/model/effort above the editor, context/token usage and tokens-per-second below, plus random working words while the agent streams.

Readme

pi-input-bar

npm

A pi extension that embeds live status in your editor's border — no extra rows, no clutter. Everything fits inside the input box: folder, branch, model, speed, context, cost.

╭─ ⌂ agent :: ⎇ main ● ────────────────── openrouter/tencent/hy3:free :: ✦ high  ─╮
│ _                                                                                │
╰─────────────────────── ⛁ 10%/262k :: ↑29k ↓1.6k R24k :: ⚡pp 512 · tg 34.2 t/s ─╯

Install

From npm:

pi install npm:pi-input-bar

Or from git:

pi install git:github.com/sebaxzero/pi-input-bar.git

Add -l to either form to install project-locally (adds to .pi/settings.json only).

No dependencies, no build step, nothing to configure — the bar appears as soon as it loads.

What you see

Top border — where you are and what's thinking:

  • Current folder and git branch
  • A dot that pulses while the agent is responding (●)
  • provider/model and thinking effort level (color-coded)
  • If pi-loop-police is installed and has caught loops this session, a summary appears after the dot: ⚠ 10 loops (tool 7, think 3). No loop-police (or no loops) — nothing shown.

Bottom border — what's happening under the hood:

  • Context usage — fill level, colored green → yellow → red as it fills
  • Token stats — input, output, cache reads/writes
  • Session cost — running total
  • Speed — prefill (pp) and generation (tg) tokens/sec, llama.cpp style

While streaming — a random working word replaces the default label: Pondering…, Percolating…, Marinating… — re-rolled on every agent run.

Commands

/input-bar                 — show current config
/input-bar set KEY=VAL     — override config for the current session only
/input-bar save            — write the current config to input-bar.json
/input-bar reset           — restore defaults

Configuration

Persistent configuration lives in extensions/input-bar.json next to the installed extension (auto-created on first load with defaults). You can ask the agent to edit it, or tune values live with /input-bar set.

| Key | Default | Description | |-----|---------|-------------| | TOP | true | Show folder/branch/model/effort in the top border | | BOTTOM | true | Show stats in the bottom border (and slim down the footer) | | TPS | true | Show tokens/sec | | ANIM | true | Random working word while streaming | | ICONS | true | Glyphs (⌂ ⎇ ⛁ ⚡) in the bars | | WORDS | "" | Comma-separated custom working-word pool | | LOOPS | true | Summary of pi-loop-police detections in the top border (only shown once a loop is caught) |

License

MIT