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-plan-mode

v0.2.4

Published

Plan mode extension for pi - read-only exploration with plan file editing

Readme

pi-plan-mode

Plan mode extension for pi: a safer exploration/planning mode before execution.

Inspiration

Inspired by @juanibiapina/pi-plan.

Features

  • Plan mode toggle: /plan (or Ctrl+Alt+P after integration)
  • Plan approval: /plan:approve exits plan mode and starts execution with the approved plan
  • Plan cancellation: /plan:cancel exits plan mode without approving
  • Plan resumption: /plan:resume <plan> resumes planning from an existing plan file
  • Restricted tools in plan mode: read, bash, grep, find, ls, edit, write
  • Write protection: edit/write allowed for plan file and /tmp only
  • AI-assisted bash safety: LLM evaluates whether commands are exploratory or mutating
  • Plan summary widget: Shows 2-line summary in the UI during planning
  • Plan file creation: plans are created under ~/.pi/agent/sessions/plans/
  • Terraform-style filename strategy: <adjective>-<animal>-<rand>.md (for example fuzzy-otter-a7k2.md)
  • Session persistence: mode + active plan path survive session resume
  • Bash override memory: approved commands are remembered within a session

Quick Start

  1. Enter plan mode: /plan (or Ctrl+Alt+P)
  2. Explore with safe tools and write your plan
  3. Approve and execute: /plan:approve

If you want to leave without approving, run /plan again.

Command Reference

| Command | What it does | |---|---| | /plan | Enter plan mode (create new plan) or exit plan mode | | /plan:approve | Approve plan, exit plan mode, and start execution | | /plan:cancel | Exit plan mode without approving | | /plan:resume <plan> | Resume planning from an existing plan file |

Safety & Restrictions

In plan mode:

  • Bash commands are evaluated by an AI model (exploratory vs. mutating)
  • edit and write are only allowed for the current plan file and /tmp/
  • Destructive bash commands require user confirmation
  • Confirmed commands are remembered for the duration of the session

Installation

npm install pi-plan-mode

Then enable it in pi via your packages/extensions configuration.

Development

  • Build: npm run build
  • Clean: npm run clean
  • Releases: see docs/releases.md

License

MIT