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-compact-renderer

v2.5.3

Published

Compact Pi transcripts with collapsible work strips, grouped tool calls, prompt folding, and readable final replies

Readme

Pi compact renderer

Less scrolling. More room for the answer.

A Pi extension that keeps progress visible while the agent works, then folds the steps into a Worked for … strip. The final reply stays in view, and you can expand the strip whenever you want the details.

  • Follow the work. Tool calls, thinking, and subagent updates stay organized under each prompt.
  • Find the answer. Final replies get a subtle background. Questions, decisions, and unresolved errors remain visible when work is folded.
  • Open what you need. Inspect tool output, code, diffs, and recorded images. Long prompts and skill text fold too.

Replies without tool or subagent activity skip the work strip.

Install

Tested with Pi 1.3.0 and Node.js 22.19.0 or later. Other Pi versions are not verified; version-sensitive features fall back to native rendering.

pi install npm:[email protected]

Restart Pi, or run /reload when the session and its background work are idle.

If Pi Config already manages your renderer, update through Pi Config. You do not need a second copy.

Everyday controls

| To… | Use… | | --- | --- | | Open a block | Click its arrow, or use /inspect | | Return to typing | Esc | | Collapse work sections | /work collapse or Ctrl+Alt+W | | Expand work sections | /work expand | | Turn compact rendering off | /compact-rendering off |

Active and waiting work stays open. To disable the collapse shortcut, use /work shortcut off.

A few things to know

This changes the transcript's appearance. It preserves the original messages and does not reduce token usage or make extra model calls.

Image previews depend on your terminal. When images cannot display, you get a text fallback. Keyboard inspection works over mosh/tmux.

Compact thinking groups need Pi's hideThinkingBlock: true setting. Ctrl+T still switches to Pi's full thinking display. Compatibility with other transcript-rendering extensions has not been verified.

For detailed behavior, all keyboard controls, and test/preview instructions, see the renderer reference.

Performance

In a synthetic 400-turn transcript, median warm layout took 4.9 ms on Mac and 3.3 ms on CCC, down from 12.6 and 9.5 ms. Added layout time versus compact rendering disabled was 4.6 ms and 3.1 ms; retained fixture memory increased by about 0.14 MiB versus the prior renderer.

Measured with Pi 1.3.0, Node 26.11.1, and a 100-column layout. These are layout benchmarks, not live typing or terminal latency. See methods, cache limits, and results.

Development

Runtime modules live in src/, regression checks in tests/, preview and benchmark runners in scripts/, and detailed notes in docs/. index.ts is the Pi entry point.

Run npm test, npm run preview:work, or npm run benchmark. See the renderer reference for runtime setup.

Uninstall

pi remove npm:[email protected]

MIT license · Report an issue