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

@cpzombie/pi-settings

v1.1.0

Published

pi coding agent extensions: raw token context counter footer, plus a setup sync that seeds personal model (local llama-cpp) and compaction settings

Readme

@cpzombie/pi-settings

pi coding agent extensions for personal setup convenience.

Extensions

raw-context-counter

Replaces the built-in TUI footer with a version where the context counter shows raw token counts (e.g. 25k/200k (auto)) instead of a percentage (e.g. 12.5%/200k (auto)) — the absolute count is more useful than a percentage, and rounding follows the built-in footer's token formatting (24,600 tokens renders as 25k).

Everything else mirrors the built-in footer: pwd + git branch + session name line, token stats (cache/cost omitted — local-only), color thresholds (>90% red, >70% yellow), model name + thinking level on the right, and the extension status line. It is a line-for-line mirror of the built-in footer internals, so a pi release that changes the footer may need a sync pass.

setup-sync

Seeds the personal config bundled under setup/ into the agent dir (~/.pi/agent) on session start:

  • setup/models.json → custom providers (local llama-cpp server on localhost:8080 with Qwen3.8-27B-Q8)
  • setup/settings.json → compaction defaults (enabled, keepRecentTokens: 60000)

Merge rules (never clobber): bundled providers are added only if that provider isn't already defined in models.json; for settings.json, only missing leaf keys are filled in. If your files already exist with your own values, they win. New values take effect on the next pi start.

LLM server address. The bundled provider's baseUrl is machine-specific (default http://localhost:8080/v1). When the provider is first seeded on a machine:

  1. PI_LLM_BASE_URL=http://gpu-box:8080/v1 env var wins (non-interactive runs, print mode, CI)
  2. otherwise the TUI asks once at startup — Enter the address, or Esc to keep the default
  3. a non-interactive first run with no env var gets the bundled default (http://localhost:8080/v1)
  4. afterwards, use the /llm-setup command to set a new address, force-update the provider from the bundled config, or remove it entirely

If the provider is already defined in your models.json, nothing is asked and nothing is changed.

Edit the JSON files under setup/ in this repo and bump the version to change what gets seeded — or just edit your local files directly to override. Because of the never-clobber merge rules, updated bundled values do not propagate to machines that already have the provider seeded: use /llm-setup → “Force-update from bundled config” to replace the provider entry with the bundled definition (your baseUrl is preserved).

Note: the bundled model config points at a local llama-cpp server; on a machine without one the model will appear in /model but not connect.

Install

pi install npm:@cpzombie/pi-settings
# or pinned to a version:
pi install npm:@cpzombie/[email protected]

Uninstall (or pi remove then /reload in an interactive session):

pi remove npm:@cpzombie/pi-settings

Note: removing the package does not undo the settings that were already seeded into ~/.pi/agent/ — delete the provider from models.json and the compaction block from settings.json manually if you want that.

Notes

  • Extensions are TypeScript, loaded by pi via jiti — no build step.
  • @earendil-works/pi-coding-agent, -pi-ai, and -pi-tui are peer dependencies provided by your pi installation; they are not bundled here.