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

plan-build

v1.0.1

Published

Plan/Build workflow mode for pi: say "plan" to get an implementation plan with changes hard-blocked, say "build" (or "ok, go") to execute.

Readme

plan-build

npm version Git tag License

Plan/Build workflow mode for the pi coding agent.

  • Say "plan" → pi produces an implementation plan and cannot touch anything (file writes and mutating commands are hard-blocked).
  • Say "build" → pi executes changes.
  • Say "ok, go" after reviewing a plan → pi starts implementing it.

Works in any project, with zero configuration — just install the package.

Features

  • 🔒 Enforced plan mode — in plan mode, write/edit/rename tool calls and mutating bash commands (rm, mv, > redirects, npm install, php artisan make|migrate, git commit|push, composer require, …) are blocked. Read-only inspection (ls, grep, git status/diff, php artisan route:list, …) still works so plans can be researched.
  • 🔁 Sticky mode — once in plan mode, follow-ups like "what about edge cases?" stay read-only until you say build.
  • ✅ Approval detection — short approval messages after a plan (ok, go, ok, build, sounds good, proceed, …) flip to build mode automatically.
  • 🎛️ /plan and /build commands — switch modes explicitly mid-conversation.
  • 📊 Visible mode indicator — the TUI footer status shows PLAN MODE / BUILD MODE.
  • 📝 Companion skill — teaches the agent a consistent plan format (goal, steps, files, tests, risks).

Installation

Recommended: npm (gallery-listed, no pinning needed)

pi install npm:plan-build

Per-project (.pi/settings.json, shareable with your team):

cd your-project
pi install npm:plan-build -l

Git (latest or pinned tag)

pi install git:github.com/pramudya3/plan-build          # latest
pi install git:github.com/pramudya3/[email protected]   # pinned

Manual clone (no settings write)

git clone https://github.com/pramudya3/plan-build
pi install /path/to/plan-build
# or try it for a single run without installing:
pi -e /path/to/plan-build

Pi auto-discovers extensions/ and skills/ from the pi manifest in package.json, so no further setup is needed.

Releases & versioning

Versions are kept in sync across channels: git tag v1.0.1 = npm 1.0.1. See RELEASING.md for the release workflow.

# Update to the latest version
pi update --extensions

# Pin the git channel to a specific tag
pi install git:github.com/pramudya3/[email protected]

# Move an existing pin to a new tag
pi install git:github.com/pramudya3/[email protected]

Available tags: git ls-remote --tags https://github.com/pramudya3/plan-build.git

Note: the pi.dev gallery indexes npm packages — the npm channel (plan-build) is the gallery-eligible one; the git channel offers pinned tags.

Usage

| You say | What happens | |---|---| | plan: add login feature | PLAN mode: structured plan, no changes allowed | | what about edge cases? | Stays in PLAN mode (read-only) | | ok, go / ok, build / sounds good / build | BUILD mode: executes the plan | | /plan | Manually switch to PLAN mode | | /build | Manually switch to BUILD mode |

The mode resets to BUILD on restart.

How it works

  • before_agent_start detects the mode keyword in your prompt and injects mode instructions into the system prompt.
  • tool_call blocks write/edit/rename and mutating bash commands while in plan mode.
  • ctx.ui.setStatus shows the current mode in the TUI footer.

Security

The extension runs with full system permissions like any pi extension — review the source before installing: extensions/plan-build.ts.

License

MIT © Nanda Rizky