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

@arcanemachine/pi-stash

v0.1.1

Published

Stash and restore an ephemeral Pi prompt with a keyboard shortcut

Readme

pi-stash

A Pi extension for stashing and restoring one ephemeral prompt.

pi-stash adds one ephemeral prompt register to Pi's interactive editor. Use a keyboard shortcut to move a draft out of the editor, restore it later, or have it return automatically after you submit another prompt.

Like this extension? See my other Pi extensions.

Requirements

  • Pi 0.84.1 or later
  • Node.js 22.19.0 or later for package development

Installation

From GitHub:

pi install git:github.com/arcanemachine/pi-stash

From npm after publication:

pi install npm:@arcanemachine/pi-stash

For local development:

pi -e ./src/index.ts

Usage

The default shortcut is Alt+S (alt+s). It operates only while Pi's prompt editor is focused.

| Editor | Register | Result | | --------- | --------- | -------------------------------------------------------------------------------------------- | | Non-empty | Any | The exact editor text is stashed and the editor is cleared. Pi notifies that it was stashed. | | Empty | Non-empty | The register is restored into the editor and cleared. Pi notifies that it was restored. | | Empty | Empty | Pi appends Stash register is empty for this shortcut action. |

Stashing a new prompt replaces the previous register without confirmation. Meaningful whitespace inside a stashed prompt is preserved. Each stash action appends a plain Pi notification: Message contents stashed. Press [configured shortcut] to restore. The active shortcut is shown in readable form.

After you submit another ordinary interactive prompt while a register exists, the register is restored into the editor immediately and cleared. This makes the stashed prompt available as the next draft while Pi processes the prompt you just sent, and appends Stashed message restored as a plain Pi notification. Manual restoration appends the same notification.

The register is in memory only. It survives /reload in the same Pi process and session, but is cleared when Pi starts another session or exits. It is not added to the conversation or written to disk.

Settings

The shortcut can be changed in Pi's normal global settings file, ~/.pi/agent/settings.json:

{
  "pi-stash": {
    "shortcut": "alt+d"
  }
}

Use a shortcut string from Pi's documented modifier+key format. Restart Pi or reload the extension after changing this setting. Invalid values fall back to alt+s.

This extension reads only the global Pi settings namespace shown above. It does not create a package-owned configuration file or modify settings automatically.

Development

npm install --ignore-scripts --workspaces=false
npm run format:check
npm run typecheck
npm run test
npm run build
npm pack --dry-run

Pi loads the TypeScript entrypoint directly from src/index.ts; no compiled runtime artifact is required by Pi.

License

MIT