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

v0.1.6

Published

A UML-first planning mode and live localhost plan viewer for pi.

Readme

Pi Visual Plan

A project-local pi extension that separates idea discovery from implementation design, writes the plan to Markdown, and renders Mermaid UML on a live localhost site.

Install

Install for your user account:

pi install npm:pi-visual-plan

Or try it for one run without installing:

pi -e npm:pi-visual-plan

To share it through project settings, install it locally with pi install -l npm:pi-visual-plan. Pi installs the package after collaborators trust the project.

Update or remove it with:

pi update npm:pi-visual-plan
pi remove npm:pi-visual-plan

For local development, clone the repository, run npm install in .pi/extensions/visual-plan/, and use /reload after changing extension code.

Commands

  • /visual-plan on — enter read-only planning mode
  • /visual-plan off — leave planning mode and restore tools
  • /visual-plan open — open the localhost viewer
  • /visual-plan status — show phase, file, and URL
  • /visual-plan execute — validate and begin an approved implementation plan
  • /visual-plan — toggle the mode

Start directly with pi --visual-plan. The viewer uses a free localhost port for each Pi session, so always use /visual-plan open or /visual-plan status rather than assuming a URL. Set PI_VISUAL_PLAN_PORT only when you need a fixed port; startup fails clearly if that port is occupied.

Workflow

  1. Enable the mode and discuss the product idea. The agent records prose only.
  2. Once goals and constraints are understood, the agent moves to implementation design.
  3. The implementation plan must contain Mermaid classDiagram and/or stateDiagram-v2 fenced blocks.
  4. Open the live viewer. Its header shows the project directory, and it refreshes when .pi/plans/plan.md changes.
  5. Review the plan and run /visual-plan execute when approved.

Planning mode disables pi's edit, write, and bash tools. Its dedicated visual_plan_write tool can only replace the plan file and validates stage rules before writing.

Mermaid example

```mermaid
classDiagram
  PlanMode --> PlanRepository
  PlanRepository --> ViewerServer
```

```mermaid
stateDiagram-v2
  [*] --> Idea
  Idea --> Implementation: requirements understood
  Implementation --> Approved
  Approved --> Executing
```

The viewer serves only on 127.0.0.1, uses local npm assets (no CDN), disables raw HTML in Markdown, and configures Mermaid's strict security mode. It reports missing and unreadable plan files explicitly and exposes local viewer diagnostics at /api/status.