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

@smarzban/pi-editor

v0.1.0

Published

Rounded input editor box + draft stash (alt+s saves/restores the editor draft per project)

Readme

pi-editor

Two input-editor features in one package: a rounded editor box and a draft stash. They share pi's input-editor extension surface (the editor component, plus getEditorText/setEditorText and shortcuts), so they ship together.

╭─────────────────────────╮
│ › text box              │
╰─────────────────────────╯

Rounded editor box

Draws a rounded border around the input editor. The default box is square; this one is rounder. The session name can be shown as a right-aligned label on the top or bottom border, toggled per command:

| Command | Effect | |---------|--------| | /editor | Box + label status | | /editor on / /editor off | Toggle the rounded box | | /editor name on / /editor name off | Toggle the session name label | | /editor name top / /editor name bottom | Label position |

The box is on as soon as the package is installed; /editor off turns it off and the choice sticks. If you had previously turned the old pi-statusline box off, that preference lived in statusline.json and does not carry over: turn it off once here.

Settings persist to ~/.pi/agent/editor.json (enabled, sessionName, sessionNamePosition).

Draft stash

alt+s parks a half-written prompt so you can go do something else; alt+s again brings it back. Same idea as Claude Code's draft stash.

| Action | Effect | |--------|--------| | alt+s with text in the editor | Stash it (per project) and clear the editor | | alt+s with an empty editor | Restore the stash into the editor (one-shot, the stash is then cleared) | | /stash | Show stash status for this project | | /stash clear | Clear this project's stash |

The stash is keyed by the session's working directory: stashing in one project never touches another project's stash. Stored in ~/.pi/agent/stash.json (one file, one entry per project path). It lives outside the session, so it restores in any session, even new ones, and never enters the conversation: the LLM does not see it, and the session file is not touched.

Commands

| Command | Effect | |---------|--------| | /editor | Show box/label status | | /editor on / /editor off | Toggle the rounded box | | /editor name on / /editor name off | Toggle the session name label on the box | | /editor name top / /editor name bottom | Label position | | /stash | Stash status for this project | | /stash clear | Clear this project's stash |

Install

pi install npm:@smarzban/pi-editor

Shortcut note

On macOS, your terminal must send Option as Meta/Esc+ for alt+s to work (the default in iTerm2 profiles set to "Esc+", Ghostty via macos-option-as-alt, and kitty via macos_option_as_alt), otherwise Option+S types ß instead.

Development

# install locally
pi install /absolute/path/to/pi-extensions/packages/pi-editor

One extension, no build step: index.ts registers the custom editor component, the alt+s shortcut, and the /editor + /stash commands.