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

@aduverger/pi-ship

v0.2.0

Published

Workspace-aware simplify, test curation, review, and GitHub pull request workflow for Pi.

Readme

@aduverger/pi-ship

Workspace-aware shipping workflow for the Pi coding agent: rebase, simplify, curate tests, independently review, validate, push, and open cross-linked draft GitHub pull requests.

ship-it

Requirements

  • Pi 0.84 or newer
  • Git
  • GitHub CLI (gh), authenticated for github.com
  • Clean, committed feature branches in repositories included in simplify/test/review
  • Clean default branches without local-only commits in workspace context/config repositories

Install

From npm:

pi install npm:@aduverger/pi-ship

From a checkout:

git clone https://github.com/aduverger/pi-ship.git
cd pi-ship
npm install
npm run build
pi install .

For a one-off development run:

pi -e ./dist/index.js

Usage

Inside a Git repository, /ship targets only that repository:

/ship
/ship --auto

From a workspace directory that is not itself a Git repository, /ship discovers direct child Git roots:

/ship
/ship api frontend
/ship api frontend --auto

--auto makes the agent's evidence-based review dispositions authoritative without waiting for user approval. It stops applying fixes after the fifth independent review, then publishes with any remaining findings disclosed as PR follow-ups. If the base branch moves afterward, mandatory rebase validation may add review-only rounds; their findings are disclosed but not fixed. A ready PR with remaining blocking findings is returned to draft status.

Operational commands:

/ship status
/ship resume
/ship abort

/ship is the publication consent boundary. The workflow asks for user input only when independent-review findings require a decision, conflict resolution requires semantic guidance, or test curation encounters ambiguous behavior or production work outside the original feature scope. Once the approved final changes pass review, it pushes branches and creates or updates PRs without another confirmation.

Workflow

  1. Validate that every selected repository is clean and committed.
  2. Fetch each origin and resolve its default branch independently of the configured upstream.
  3. Fast-forward default-branch repositories to the fetched remote and classify them as workspace context/config; block only default branches with local-only commits, and rebase changed feature branches.
  4. Compare the branch design with the agreed intent and existing patterns before cosmetic cleanup. Remove unnecessary architecture only when observable behavior and required guarantees stay unchanged; report intent mismatches for review. Simplify the listed changed-feature files, using Git line ranges as guidance rather than hard edit boundaries, run focused validation, and commit per repository.
  5. Prune branch-added or modified automated tests before improving them. Remove implementation-only, redundant, and one-off migration/script checks plus unused supporting files. Retain or add tests grounded in real contracts, known failures, meaningful properties, or authoritative reference implementations only when they provide distinct ongoing protection at proportionate cost. Prefer extending existing tests; rewrite only tests worth keeping. Recurring installation, upgrade, and script contracts can qualify; test-level labels and coverage alone cannot. Preserve contractual, security, and data-integrity coverage without a deletion quota. Report current-pass edits and verification gaps, run repository-standard affected validation, and commit any changes per repository.
  6. Launch one fresh, read-only Pi reviewer over the complete selected workspace. It inherits the active model, always uses high thinking, can page through complete Git diffs, and focuses on concrete defects and unnecessary complexity, not maximizing findings or hardening. Scenario-dependent findings require a supported trigger, observable failure, and proportionate remedy. General test durability remains owned by the Test phase; later reviewers apply that policy only to tests and supporting files changed by the immediately preceding review fixes.
  7. Persist a visible repository-qualified findings summary in the active session branch and return the full review to the main agent for evidence-based reachability and proportionality analysis. Normal runs wait for a user decision; --auto runs immediately apply the agent's structured disposition. Later review rounds receive every prior decision and rationale so fixes are verified against updated guidance and accepted or deferred tradeoffs are not reported repeatedly.
  8. Apply approved fixes, test, commit each repository with a message describing its actual changes, and independently review the complete workspace again.
  9. Verify that every pushed SHA exactly matches the reviewed SHA and that default branches have not advanced.
  10. Push all changed branches, create or update one draft PR per changed repository, and cross-link related PRs.

When the active provider is claude-bridge, the reviewer explicitly loads the user-installed pi-claude-bridge package from Pi's managed npm directory (pi install npm:pi-claude-bridge). Other automatically discovered extensions remain disabled, and the reviewer's read-only tool selection is unchanged. The reviewer does not fall back to another model.

Workflow-phase activity and independent-review results stay in Pi. Pull requests describe final changes and validation, not simplification or test-curation activity.

Unchanged feature-branch repositories remain available to the reviewer as integration context and do not produce commits or PRs unless an approved review fix changes them. Default-branch context/config repositories remain available in the workspace but are excluded from simplification, test curation, and independent review, and must stay unmodified throughout the run.

The changed-line simplification prompt is adapted from MattDevy/pi-simplify. See NOTICE.md.

Safety properties

  • No dirty repository enters the workflow; default-branch repositories are fast-forwarded to their fetched remote, must not contain local-only commits, and remain immutable workspace context.
  • Reviewer subprocess has no bash, edit, or write tools.
  • Rebased existing branches use --force-with-lease against the observed remote SHA.
  • A moved default branch restarts rebase, simplification, test curation, and review before publication.
  • Partial push/PR failures are resumable with /ship resume.
  • New PRs are created as drafts; existing PRs preserve their current readiness unless an auto run reaches its review cap with blocking findings, in which case affected PRs return to draft.
  • /ship abort aborts active rebases but preserves already completed rebases and commits.

Development

make check
make pack-check

Release a stable version from a clean, synchronized main branch:

make release VERSION=0.1.1

For a prerelease, use a non-latest npm tag:

make release VERSION=0.2.0-rc.1 NPM_TAG=next

The release target validates Git and npm state, updates package versions, runs all quality gates, publishes the public package, verifies the registry, and pushes the matching Git tag.

.github/workflows/publish.yml also supports npm trusted publishing with provenance. Configure the npm trusted publisher for repository aduverger/pi-ship, workflow publish.yml, and GitHub environment npm; dispatch with dry_run: true to verify release gates before publishing.