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-bmad-flow

v0.1.6

Published

Pi-native orchestration overlay for BMAD workflows

Readme

pi-bmad-flow

Pi-native orchestration overlay for BMAD.

This package is designed to run on top of:

  1. upstream pi
  2. official BMAD install targeting pi

It adds a thin control plane for phase routing and story-loop automation.

Install in a BMAD project

Install Pi and BMAD first, then install this package into the project:

npm install -g @mariozechner/pi-coding-agent
cd /path/to/project
npx bmad-method install
pi install -l npm:pi-bmad-flow```

For early access builds before npm publish, install from git or a local path:

```bash
pi install -l git:github.com/<your-org>/pi-bmad-flow
pi install -l /absolute/path/to/pi-bmad-flow

After install, open pi in the project and run:

/bmad-status

Recommended BMAD modules for this overlay:

  • core
  • bmm
  • cis
  • wds
  • tea
  • bmb

Package docs:

Publish

From pi-bmad-flow/:

npm run check
npm run smoke:fixture
npm publish --access public

prepublishOnly also runs package validation automatically before publish.

If pi-bmad-flow is already taken on npm, choose another unscoped name in package.json, run npm view <name> to confirm availability, and publish that name instead.

Validate against a project

npm run audit:project -- --project-dir /absolute/path/to/project

Expected project layout

The extension expects standard BMAD folders:

  • _bmad/
  • _bmad-output/planning-artifacts/
  • _bmad-output/implementation-artifacts/

Optional:

  • design-artifacts/
  • docs/

Commands

  • /bmad-next
  • /bmad-start
  • /bmad-review
  • /bmad-gate
  • /bmad-status
  • /bmad-phase

Included overlay skills

  • bmad-epic-pipeline-worktree — autonomous epic runner that uses epics.md, sprint-status.yaml, story_location, and the Pi-native story loop
  • bmad-phase-handoff
  • bmad-story-full
  • bmad-story-lean

Current scope

This overlay keeps BMAD adaptation inside Pi-native runtime features instead of prompt wrappers.

Current behavior:

  • BMAD detection
  • module detection
  • artifact-aware phase detection
  • sprint status parsing
  • next-step routing
  • plain-English BMAD intent routing through Pi input interception
  • dedicated story sessions created by /bmad-start
  • lean versus full packet selection
  • WDS-aware packet assembly for UI stories
  • TEA-aware review and gate routing
  • BMAD-specific compaction summaries
  • lightweight BMAD status widget and footer state
  • optional LLM access to deterministic BMAD state through the bmad_orchestrator tool
  • deterministic story worktree lifecycle through the bmad_worktree tool
  • workflow-aware model and thinking presets for routing, story prep, story start, review, and gates

This package does not replace official BMAD workflows. It reduces routing overhead around them.

Optional model policy override

By default, the overlay uses a GPT-only policy aimed at:

  • openai-codex/gpt-5.4-mini for routing and status
  • openai-codex/gpt-5.4 for story prep, story start, review, and gates
  • thinking level as the main optimization knob

The policy is applied both for overlay commands and for common BMAD workflow inputs such as:

  • bmad-create-story
  • bmad-dev-story
  • bmad-create-prd
  • bmad-create-architecture
  • bmad-create-epics-and-stories
  • bmad-code-review
  • bmad-testarch-test-review
  • bmad-testarch-trace
  • bmad-testarch-nfr

You can override the default preset behavior with:

.pi/bmad/model-policy.json

Shape:

{
  "presets": {
    "routing": {
      "model": "openai-codex/gpt-5.4-mini",
      "thinking": "minimal"
    },
    "story-prep": {
      "model": "openai-codex/gpt-5.4",
      "thinking": "low"
    },
    "story-dev": {
      "model": "openai-codex/gpt-5.4",
      "thinking": "high"
    },
    "story-start-lean": {
      "model": "openai-codex/gpt-5.4",
      "thinking": "medium"
    },
    "story-start-full": {
      "model": "openai-codex/gpt-5.4",
      "thinking": "high"
    },
    "review": {
      "model": "openai-codex/gpt-5.4",
      "thinking": "low"
    },
    "gate-light": {
      "model": "openai-codex/gpt-5.4",
      "thinking": "low"
    },
    "gate-strong": {
      "model": "openai-codex/gpt-5.4",
      "thinking": "medium"
    }
  }
}

If you omit model, the overlay falls back to tier-based matching.

Optional worktree policy override

By default, bmad_worktree finalizes story branches into master.

Override that with:

.pi/bmad/worktree-policy.json

Example:

{
  "defaultTargetBranch": "master"
}