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

@notrico/pi-fold

v3.1.0

Published

Pi Fold: readable agent transcripts with collapsible work, inspectable details, and clear final replies

Readme

Pi Fold

Follow the work. Unfold the details.

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 1.4.0, and Node.js 22.19.0 or later. Fold checks each feature’s required interfaces, so compatible newer Pi releases can work without a Fold update. Run /fold status for full, partial, or unavailable support. Missing interfaces use native rendering. Compatibility checks run against Pi 1.3.0 and the latest stable release.

pi install npm:@notrico/[email protected]

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

If a configuration manager already installs this extension, update it there to avoid duplicate copies.

Everyday controls

| To… | Use… | | --- | --- | | Open the Pi Fold menu | /fold | | Enable Pi Fold | /fold on | | Open a block | Click its arrow, or use /inspect | | Return to typing | Esc | | Toggle completed work sections | Ctrl+Alt+W | | Collapse work sections | /fold collapse | | Expand work sections | /fold expand | | Show native Pi rendering | /fold off |

Use /fold status to check the mode. /fold toggle switches between Pi Fold and native display.

Ctrl+Alt+W collapses completed work if any section or retained detail pane is expanded; otherwise it expands completed work. Collapse also closes manually opened actions and details. After collapse, expanding a work section starts with its detail panes closed. Active and waiting sections stay unchanged by collapse and the shortcut. To disable the shortcut, use /fold shortcut off.

Upgrading from pi-compact-renderer? Remove its existing install source before installing @notrico/pi-fold so Pi loads one copy. Version 3 replaces /compact-rendering and /work with /fold; the old commands are removed.

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

Across two benchmark machines, median warm layout for a synthetic 400-turn transcript fell from 9.5–12.6 ms to 3.3–4.9 ms. Added layout time versus compact rendering disabled was 3.1–4.6 ms; retained fixture memory increased by about 0.14 MiB versus the prior renderer.

Measured on macOS arm64 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:@notrico/[email protected]

MIT license · Report an issue