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-codex-style-tools

v0.1.0

Published

Codex-style inline rendering for Pi's built-in tools

Readme

pi-codex-style-tools

Codex-like inline rendering for Pi's built-in tools.

CI License: MIT

pi-codex-style-tools is a Pi package that keeps tool execution unchanged while rendering it with a Codex-like presentation: inline bullets, Running/Ran labels, shell highlighting, and gutters, compact output previews, and expandable details. Search results from extensions are normalized to source URLs.

Installation

After the package is published to npm:

pi install npm:pi-codex-style-tools

Or install it directly from the public repository:

pi install git:github.com/DanielSuhett/pi-codex-style

For local development:

pi -e ./index.ts

Restart Pi or run /reload after installing the package.

What it changes

The extension overrides only the visual renderer for bash, read, grep, find, ls, edit, and write. Tool execution remains delegated to Pi's original built-in implementations. Search-like tool results from extensions are compactly rewritten to source links while preserving their details.

  • Consecutive file operations are grouped into one row.
  • Read and grep previews stay inline.
  • Read content gets a bordered, path-aware syntax highlight with a 10-line preview.
  • Short diffs up to 20 lines are shown inline; longer diffs remain expandable.
  • Bash output follows the tail, up to 10 lines, and highlights Git statistics.
  • Empty successful output stays hidden to keep the transcript compact.
  • Search results from Firecrawl, Tavily, Brave, SerpAPI, and similar tools show only source URLs.

Performance

Renderer output is cached by tool result and theme. Syntax highlighting is limited to the visible read preview, and expanded output is capped at 200 lines with an expansion hint. This keeps repeated TUI redraws cheap and avoids large tool results blocking Pi's event loop.

Development

Requirements: Node.js >=22.6.0, npm, and a compatible Pi installation.

npm ci
npm run verify

Run the Pi-hosted renderer benchmark separately:

npm run bench

The benchmark reports cold and steady render times for the overridden tools and event-loop lag.

Package structure

index.ts                 Pi extension entry point
bench/renderer-bench.ts  renderer benchmark
.github/workflows/ci.yml tests, types, packaging, and Pi installation smoke test

The package manifest declares index.ts under pi.extensions, includes the pi-package keyword for package discovery, and keeps Pi core packages as peer dependencies as required by the Pi package documentation.

Contributing

See CONTRIBUTING.md for the development workflow and standards. The project also includes a code of conduct and issue templates.

Security

See SECURITY.md for private vulnerability reporting.

License

MIT © 2026 Suhett.