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

@mikefreno/pi-stretch

v0.1.0

Published

Stretchtext for pi — replies arrive short; click a phrase and it grows in place. A port of cc-stretch.

Readme

pi-stretch

cc-stretch — the Claude Code stretchtext plugin — as a pi extension. Replies arrive short; click a linked phrase and it grows right where it stands.

pi install npm:@mikefreno/pi-stretch
  • Guide: before_agent_start adds cc-stretch's stretchtext guide to the system prompt as a stretchtext section, so the model writes replies as {{short|long}} stretchtext.
  • Inline: a markdown transformer draws each closed stretch as a link on its short form and each open one with a « after it. A click grows the long form in place in the transcript, the view scrolling down with the growth and back up as « shrinks it — until the reader scrolls, which hands the view back to them. Stretches nest, and any reply in the transcript can be read this way, not only the last.
  • Streaming: while a reply streams, its stretches show as their short forms.
  • Feedback: with the reader's next message, the model is told which stretches they opened since its last reply, so it never assumes they read a long form they did not open. The note is spliced into that request alone, right after the reader's message, and pi restores the transcript once the request is sent: nothing is written to the session, so the history tree, exports and compaction summaries never see it.

Clicks need pi's fullscreen mode (the default tuiMode) and a terminal that draws OSC 8 hyperlinks. pi answers a click on a hyperlink by handing its URL to the TUI's openUrl; the extension wraps that, so its own https://pi-stretch.invalid/… links open and close stretches and every other link still opens in the browser. Where a click cannot land (regular mode, or no hyperlinks), every stretch is drawn open, as cc-stretch does on Claude Code's classic renderer.

Off the terminal: The Nook

The Nook puts every coding agent you run (pi, Claude Code, Codex and more, local or over SSH) in your Mac's notch, on your iPhone and on your Apple Watch, and it reads stretchtext from both pi-stretch and cc-stretch exactly as the terminal does. Stretches open and close on a tap in the Mac's session detail and the iPhone's message view, compact cards and previews show only the short forms, and the watch shows each reply with every stretch open.

parse.ts, grow.ts and guide.ts are cc-stretch's, vendored unchanged; inline.ts writes stretches into pi's markdown. npm test drives the extension against pi-tui's own Markdown; npm run typecheck checks it against the installed pi.