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-mind-queue

v0.2.0

Published

A durable, project-wide thought queue for Pi sessions.

Readme

Mind Queue for Pi

Mind Queue is a project-wide scratchpad for thoughts you do not want to lose while working in Pi. Thoughts persist across sessions, retain a short creation-session label, and can be moved back into Pi's editor when they become relevant.

Install

From npm (latest stable release):

pi install npm:pi-mind-queue

From GitHub (default branch):

pi install git:github.com/sanif/pi-mind-queue

Restart Pi or run /reload, then open Mind Queue with /mind or Ctrl+Shift+M.

If you previously installed a local development copy at ~/.pi/agent/extensions/mind-queue, remove or rename that directory before installing the package. Loading both copies registers duplicate commands and shortcuts.

Use

| Action | Key | | --- | --- | | Open or close | Ctrl+Shift+M | | Open by command | /mind | | Add while Pi is working | /mind <thought> | | Add from the queue | A | | Edit in Pi's multiline editor | E | | View the complete thought | V | | Move the thought to Pi's editor | Enter | | Mark open or done | X or Space | | Remove | D or Delete | | Undo this session's latest change | U or /mind-undo | | Move selection | arrow keys or J/K | | Close | Esc |

/mind <thought> saves immediately, including while the agent is working. It does not interrupt the agent or send the command to the model; it only updates the local project queue.

Moving a thought removes it from the queue and inserts it at the current Pi editor cursor. U restores both the queue entry and the inserted editor text when the editor has not changed around that insertion.

Mind Queue detects stale dialogs. If another Pi session changes a thought before you edit, remove, move, or toggle it, the stale action is rejected and the queue refreshes instead of overwriting newer work.

Storage and privacy

Mind Queue stores one JSON file per project under:

<pi-agent-dir>/state/mind-queue/

The directory is mode 0700 and files are mode 0600. Writes use a process lock, a temporary file, fsync, and atomic rename. The repository itself is never modified.

Stored data includes:

  • thought text and completion state;
  • creation time and session ID;
  • a session name or a sanitized first-prompt label capped at 46 characters;
  • one undo snapshot for the latest change.

Thoughts may contain sensitive information. Back up or remove the state directory according to your own data-retention needs. Uninstalling the package does not delete saved thoughts.

Older session-local Mind Queue snapshots are imported once when a project store is first created. The migration reads Pi's default session catalog and an active custom session directory, if configured.

Requirements

  • Pi with Node.js >=22.19.0.
  • Interactive TUI mode for the /mind overlay and shortcut.
  • macOS with /usr/bin/lockf, or Linux with flock in /usr/bin, /bin, or /usr/local/bin.

Mind Queue fails safely with an actionable error when no supported kernel lock utility is available. Windows is not currently supported.

Pi extensions run with the same system access as Pi. Review extension source before installation.

Development

bun install
bun run verify

verify runs strict TypeScript checks, the complete test suite, and a package dry run. CI runs the same checks on macOS and Linux.

License

MIT