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

@devkade/pi-plan

v0.2.2

Published

Plan command extension for Pi: read-only planning mode with approval-based execution

Readme

Pi Plan Extension (@devkade/pi-plan)

An extension for the Pi coding agent that adds planning and execution-assist commands:

  • Default mode: execute directly (YOLO)
  • Plan mode: read-only investigation + concrete execution plan
  • /todos: check current tracked plan progress
  • Execution starts only after approval from the plan-mode UI prompt
/plan on
/plan Refactor command parser to support aliases

Why

Sometimes you want speed, sometimes you want safety.

This extension gives both:

  • No global slowdown in normal workflows (default remains execution-first)
  • Structured planning mode only when you request it
  • Read-only guardrails while planning (tool + shell protections)
  • Explicit approval handoff before implementation begins

Install

From npm

pi install npm:@devkade/pi-plan

From git

pi install git:github.com/devkade/pi-plan@main
# or pin a tag
pi install git:github.com/devkade/[email protected]

Local development run

pi -e ./src/index.ts

Quick Start

1) Start planning mode

/plan on

Then ask your task in the same session:

Implement release-note generator with changelog validation

2) One-shot plan command

/plan Implement release-note generator with changelog validation

This enables plan mode (if needed) and immediately sends the task.

3) Approve or continue planning

After each response in UI mode, you’ll get:

  • Approve and execute now
  • Continue from proposed plan (inline note optional; press Tab to add/edit. If omitted, Pi asks for modification input and waits.)
  • Regenerate plan (fresh plan from scratch, no note required)
  • Exit plan mode

Choosing Approve and execute now automatically:

  1. exits plan mode,
  2. restores normal tools,
  3. triggers implementation.

Modes

| Mode | Behavior | Safety policy | |---|---|---| | Default (YOLO) | Executes directly unless you explicitly request planning | No extra restrictions | | Plan (/plan) | Gathers evidence and returns an execution plan | Read-only tools + mutating action blocks |


Plan-Mode Guardrails

Tool restrictions

In plan mode:

  • Mutating tools are blocked: edit, write, ast_rewrite
  • Active tools are switched to a read-only subset when available

Bash restrictions

bash commands are filtered through a read-only policy:

  • ✅ inspection commands (examples): ls, cat, grep, find, git status, git log
  • ❌ mutating commands (examples): rm, mv, npm install, git commit, redirection writes (>, >>)

Plan Output Contract

In plan mode, the system prompt enforces this structure:

  1. Goal understanding
  2. Evidence gathered (files/symbols/docs checked)
  3. Uncertainties / assumptions
  4. Plan (step objective, target files/components, validation)
  5. Risks and rollback notes
  6. End with: Ready to execute when approved.

Commands

Plan workflow

  • /plan — toggle plan mode on/off
  • /plan on — enable plan mode
  • /plan off — disable plan mode
  • /plan status — show current status
  • /plan <task> — enable mode if needed and start planning for <task>
  • /todos — show tracked plan progress (/) from extracted Plan: steps and [DONE:n] markers
  • after each planning turn, the plan-mode action menu includes:
    • Continue from proposed plan (inline note optional via Tab; without note, Pi prompts for modification input and waits)
    • Regenerate plan (no additional note required)

Development

npm install
npm run check

npm run check runs TypeScript type-checking (tsc --noEmit).


Project Structure

  • src/index.ts - plan mode orchestration, /todos, and command wiring
  • src/utils.ts - read-only bash checks + plan step extraction/progress helpers
  • plan.md - package-level feature plan notes
  • .github/workflows/ci.yml - CI checks
  • .github/workflows/release.yml - tag-triggered npm publish + GitHub Release

Release

The release workflow runs on tags matching v*.*.* and performs:

  1. npm ci
  2. npm run check
  3. tag/version consistency check
  4. npm publish --access public --provenance
  5. GitHub Release creation

Example:

npm version patch
git push origin main --tags