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-tui-pro

v1.0.2

Published

pi 界面优化扩展:用户消息背景色、右下角状态栏(思考挡位/时间/token缓存命中)、鼠标点击折叠单个思考块和工具输出

Readme

pi-tui-pro

UI enhancements for the Pi coding agent TUI.

Install

pi install npm:pi-tui-pro

Features

  1. User message background — user messages get a slightly brighter, easy-on-the-eyes background so they stand out from the transcript.
  2. Thinking level pinned to the footer — the current thinking level (off / low / medium / high / xhigh / max) is always shown next to the model name at the bottom-right, color-coded by level.
  3. Clock never truncated — the current time is pinned to the very end of the status line and is never ellipsized, no matter how much token/context stats pile up.
  4. Cache hit stats — the footer shows cache reads (R), cache writes (W) and the cache hit rate (CH%) alongside input/output tokens.
  5. Click to fold/unfold individual blocks — click a collapsed thinking block (💭 Thinking... · 点击展开) to expand just that block, click inside an expanded thinking block to collapse it, and click anywhere on a tool output to toggle it — independent of the global expand/collapse toggle.

Usage

  • Restart pi after installing. The new footer appears immediately; fold markers appear on new and existing thinking blocks after the session loads.
  • The global "expand/collapse all" shortcut still works and resets per-block overrides.
  • Clicking is disabled while a message is streaming (to avoid racing with live updates).

Notes

  • Deep links into pi's internal components are runtime-patched from the live component tree, so the extension adapts to the actual runtime classes instead of relying on instanceof.
  • If a future pi update breaks click-to-fold, open an issue with your pi version.

Development

# run smoke tests (requires the extension to be loadable via jiti)
node test.mjs

# debug logging (writes to ~/.pi/agent/pi-tui-pro-debug.log)
PI_TUI_PRO_DEBUG=1 pi

License

MIT