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

@jecruz/pi-dev-workflow

v1.0.1

Published

Multi-stage development workflow for pi — automated write/test/review/fix/verify cycle with coverage gates and auto-commits

Readme

pi-dev-workflow

Automated code development pipeline for the pi coding agent.

Write → Test → Review → Fix → Verify → Done

Quick Start

/workflow my-project strict create a password hasher with bcrypt... fixes #42
/workflow quick utils create helper functions
/workflow strict auth-service build login API with JWT tokens

Modes

| Mode | Pipeline | Gate | |------|----------|------| | default | Write → Test → Review → Fix → Verify → Done | Coverage ≥80% | | quick | Write → Test → Verify → Done | None | | strict | Write → Test → Review → Fix → Verify → Done | Coverage ≥90% |

Usage

/workflow [name] [quick|strict] <spec>
  • name — optional project name (auto-generated from spec if omitted)
  • mode — optional mode prefix (quick or strict)
  • spec — feature description, or path to .md/.txt file

Examples

# Full cycle with custom name
/workflow markdown-parser in @tests create a heading parser...

# Strict mode with linked issue
/workflow strict auth-service create login API with JWT tokens fixes #42

# Quick mode, auto-named
/workflow quick create a set of math utility functions

# From file
/workflow ./specs/feature.md

Pipeline Stages

1. Write

Agent creates implementation in projects/<name>/src/ and tests in projects/<name>/tests/. Commits with wip: prefix.

2. Test

Agent runs test suite. Exit code parsed deterministically — 0 = pass. Commits with test: prefix.

3. Review

Agent reviews code with domain-specific checklist injected based on spec keywords:

| Spec keywords | Checklist items | |---|---| | auth, password, login, token | Security: injection, hashing, token safety | | api, fetch, http, request | API: error handling, timeouts, response validation | | file, fs, read, write, save | I/O: error recovery, missing files, encoding | | async, promise, await | Async: error propagation, unhandled rejections | | ui, component, render, dom | UI: a11y, loading/empty states, error boundaries | | db, database, sql, query | Data: injection, transactions, connection handling |

4. Fix

Agent addresses review findings. Commits with fix: prefix. Returns to test stage.

5. Verify

Agent runs tests + coverage. Must meet coverage threshold (80% default, 90% strict). Gate status shown in completion.

6. Done

Workflow finalizes — the completion banner (project name, location, tests, coverage, linked issues) is returned as tool result content from workflow_complete. README, changelog entry, and final commit are generated.

Directory Structure

projects/<name>/
├── src/
│   └── <module>.ts
├── tests/
│   └── <module>.test.ts
├── README.md          ← generated on completion
└── POSTMORTEM.md      ← generated on failure

Tools

| Tool | Stage | Description | |------|-------|-------------| | workflow_next | all | Advance to next stage | | workflow_test_result | test, verify | Report test exit code | | workflow_review_result | review | Report review findings | | workflow_verify_result | verify | Report type-check, lint, coverage | | workflow_complete | verify, done | Finalize workflow |

Commands

| Command | Description | |---------|-------------| | /workflow [name] [mode] <spec> | Start workflow | | /workflow:status | Show current stage, gates, issues | | /workflow:cancel | Cancel workflow |

Git Integration

Auto-commits after each stage with structured messages:

wip: project-name — implementation + tests
test: all passing
fix: project-name — address review feedback
chore: workflow complete — project-name

Issue Linking

Extracts issue references from spec and displays them in completion:

closes #42, resolves RM-123, GH-789

Linked issues appear in the completion banner, README, and changelog.

Changelog

Appends to CHANGELOG.md on completion:

## 2026-05-09 — markdown-parser: fixed trailing whitespace in headings (fixes #42)

Output Artifacts

| File | When | Contents | |------|------|----------| | projects/<name>/README.md | Completion | Summary, spec, results table, stats | | CHANGELOG.md (root) | Completion | Date, project, summary, linked issues | | projects/<name>/POSTMORTEM.md | Failure | Timeline, root cause, spec |

Completion Banner

Returned as tool result content from workflow_complete:

✅ **markdown-parser** is complete

📁 **Location:** `projects/markdown-parser/`
🧪 **Tests:** All passing
📊 **Coverage:** 94% ✓ (≥80% required)

Linked: fixes #42

State Persistence

Workflow state persists in session branch entries. Survives context compaction. Restored on session restart.

Installation

Copy index.ts to ~/.pi/agent/extensions/dev-workflow.ts. Restart pi.

cp index.ts ~/.pi/agent/extensions/dev-workflow.ts