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

@joshbochu/pi-flash

v0.1.4

Published

Launch fresh, isolated Pi sessions in Git worktrees.

Readme

Pi Flash

Launch a fresh, isolated Pi session in a Git worktree selected from your GitHub repositories.

The package is prepared for a later public release. Once published, install it with:

pi install npm:@joshbochu/pi-flash

After installation, /flash opens a repository picker and /flash <query> launches a confident match in a new worktree. Setup configures repository sources, the workspace root, matching, and conservative cleanup behavior.

On first use, /flash opens a welcome overlay. It verifies git, gh, and Pi, discovers your GitHub account and organizations through gh, lets you enable the accounts to index, and records your chosen workspace root. Pi Flash also caches that verified login for branch naming, so launching does not repeat a GitHub identity lookup. It stores only its own configuration below PI_CODING_AGENT_DIR (or ~/.pi/agent when that variable is unset).

Use /flash billing to search repository names. Include a slash, as in /flash acme/billing, to match an exact owner/repository name. A high-scoring, clear result launches directly; otherwise the searchable picker shows the best local matches and their descriptions. /flash refresh explicitly replaces the cached index; an index older than 24 hours refreshes in the background.

Commands

  • /flash — searchable repository picker.
  • /flash <name> — match repository names only; launch only when confident.
  • /flash <owner>/<name> — match canonical names; exact matches launch.
  • /flash setup or /flash config — choose sources and workspace root.
  • /flash refresh — refresh the local GitHub cache now.
  • /flash history — show recent recoverable worktree events.
  • /flash clean — review inactive managed worktrees; confirmation is required before any removal.
  • /flash clean enable|disable — control background cleanup after the explicit initial report-only default.
  • /flash clean config — choose untracked and ignored-file policies.

Pi Flash supports macOS and Linux. It uses gh for GitHub.com repository discovery and git for all clone, fetch, branch, and worktree work.

Storage and cleanup

The selected workspace defaults to ~/dev. A repository uses one compact partial bare clone at <workspace>/.flash/repos/<owner>/<repo>.git; every launch creates a separate branch and worktree at <workspace>/worktrees/<owner>/<repo>/<petname>. The remote default branch is fetched on every launch, and Git may use all logical cores while checking out the new worktree.

Cleanup is intentionally conservative. It starts report-only, considers only worktrees already registered by Pi Flash, skips active or recent worktrees, and blocks both untracked and ignored files by default. The two policies are independent: unignored files may be included in the parking commit, while ignored files are never staged and are discarded only when the user explicitly chooses that policy. When enabled, cleanup runs in a detached worker, pushes and verifies the exact parking commit, and only then removes the local worktree. Interrupted operations resume from their last durable stage the next time cleanup runs.

Development

npm install --legacy-peer-deps
npm run check
npm test
pi -e ./src/index.ts

Published packages load precompiled bundles; the TypeScript entry point above is kept for local extension development.

See docs/architecture.md and docs/acceptance.md for the product contract.

License

MIT