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

@blackunicorn/bmad-cybersec

v4.7.2

Published

Install BMAD-CYBERSEC operations framework

Downloads

266

Readme

BMAD-CYBERSEC NPX Installer

One-command installation for BMAD-CYBERSEC framework

npx @blackunicorn/bmad-cybersec install

Overview

The NPX installer provides a streamlined way to add BMAD-CYBER framework to any existing project without manual file copying or complex setup procedures.

Installation Methods

Quick Install (Recommended)

# Install latest release to current directory
npx @blackunicorn/bmad-cybersec install

# Install to a specific directory
npx @blackunicorn/bmad-cybersec install ./my-project

# Install specific version
npx @blackunicorn/bmad-cybersec install --version v2.0.0

From Git (Development)

# Install from main branch
npx @blackunicorn/bmad-cybersec install --from-git

# Install from specific branch
npx @blackunicorn/bmad-cybersec install --from-git --branch develop

Non-Interactive Mode

# Skip all prompts and use defaults
npx @blackunicorn/bmad-cybersec install --yes

# Force overwrite existing files
npx @blackunicorn/bmad-cybersec install --force

Command Reference

install Command

Installs BMAD-CYBER framework files to a target directory.

npx @blackunicorn/bmad-cybersec install [target-dir] [options]

Arguments:

  • target-dir - Target directory (defaults to current directory)

Options:

| Option | Description | |--------|-------------| | -v, --version <tag> | Install specific version (e.g., v2.0.0) | | --from-git | Clone from Git instead of downloading release | | --branch <name> | Git branch to clone (default: main) | | --force | Overwrite existing files without prompting | | --yes, -y | Skip confirmation prompts | | --dry-run | Preview files without installing | | --with-docs | Include documentation files | | --with-dev | Include development tools | | --verbose | Enable verbose logging |

Examples:

# Preview what would be installed
npx @blackunicorn/bmad-cybersec install --dry-run

# Install with documentation
npx @blackunicorn/bmad-cybersec install --with-docs

# CI/CD installation (non-interactive)
npx @blackunicorn/bmad-cybersec install --yes --force

version Command

Display the installer version.

npx @blackunicorn/bmad-cybersec --version

help Command

Display help information.

npx @blackunicorn/bmad-cybersec --help
npx @blackunicorn/bmad-cybersec install --help

What Gets Installed

Core Files (Always)

  • _bmad/ - BMAD agent configurations and workflows
  • .claude/ - Claude Code MCP configuration
  • src/utility/tools/ - Framework utility scripts
  • CLAUDE.md - Project instructions for Claude

Optional Files

  • Docs/ - Documentation (with --with-docs)
  • dev-tools/ - Development utilities (with --with-dev)

Excluded Files (Never Installed)

  • .git/ - Git repository data
  • node_modules/ - Dependencies
  • *.test.js, *.spec.js - Test files
  • coverage/ - Code coverage data
  • .github/ - GitHub workflows

Package.json Updates

The installer automatically merges BMAD dependencies into your package.json:

Scripts added:

{
  "scripts": {
    "bmad:setup": "node src/utility/tools/setup-wizard/index.js",
    "bmad:modules": "node src/utility/tools/module-selector/index.js",
    "bmad:security": "node src/utility/tools/security-config/index.js",
    "bmad:llm": "node src/utility/tools/llm-setup/index.js",
    "bmad:health": "node src/utility/tools/health-check/index.js"
  }
}

Dependencies added:

  • chalk - Terminal styling
  • inquirer - Interactive prompts
  • zod - Schema validation
  • commander - CLI framework
  • ora - Terminal spinners

Troubleshooting

Installation Issues

"Release not found" Error

Error: Release v99.99.99 not found

Cause: The specified version doesn't exist.

Solution:

  1. Check available releases: https://github.com/BlackUnicornSecurity/BMAD-CYBERSEC/releases
  2. Use latest or omit version flag for latest release
  3. Verify the version tag format (e.g., v2.0.0 not 2.0.0)

"GitHub API rate limit exceeded" Error

Error: GitHub API rate limit exceeded. Set GITHUB_TOKEN or try again later.

Cause: Too many requests to GitHub API without authentication.

Solutions:

  1. Wait 1 hour for rate limit reset

  2. Set a GitHub token:

    export GITHUB_TOKEN=your_personal_access_token
    npx @blackunicorn/bmad-cybersec install
  3. Use Git clone method instead:

    npx @blackunicorn/bmad-cybersec install --from-git

"Checksum verification failed" Error

Error: Checksum verification failed. File may be corrupted.

Cause: Downloaded file doesn't match expected checksum.

Solutions:

  1. Retry the installation (network issue):

    npx @blackunicorn/bmad-cybersec install
  2. Clear npm cache and retry:

    npm cache clean --force
    npx @blackunicorn/bmad-cybersec install
  3. Use Git clone as fallback:

    npx @blackunicorn/bmad-cybersec install --from-git

"Git is not installed" Error

Error: Git is not installed or not in PATH.

Cause: Using --from-git without Git installed.

Solutions:

  1. Install Git: https://git-scm.com/downloads

  2. Use release download method (without --from-git):

    npx @blackunicorn/bmad-cybersec install

"Download failed: 500" Error

Error: Download failed: 500

Cause: GitHub server error.

Solutions:

  1. Wait a few minutes and retry

  2. Check GitHub status: https://www.githubstatus.com/

  3. Use Git clone as fallback:

    npx @blackunicorn/bmad-cybersec install --from-git

File Conflict Issues

Existing Files Would Be Overwritten

Found 5 existing files that would be overwritten:
  - _bmad/core/config.yaml
  - .claude/settings.json
  ...

Options:

  1. Overwrite all - Replace all existing files
  2. Skip existing - Only install new files
  3. Cancel - Abort installation

To avoid prompt:

# Skip existing files automatically
npx @blackunicorn/bmad-cybersec install --yes

# Overwrite all files automatically
npx @blackunicorn/bmad-cybersec install --force

Package.json Issues

Backup Created But Installation Failed

If you see a backup file like package.json.backup.1706547200000:

  1. Your original package.json is safe in the backup

  2. To restore:

    cp package.json.backup.* package.json

Merge Conflicts with Existing Dependencies

The installer preserves your existing dependency versions. If you need BMAD's exact versions:

  1. Check the diff shown during installation
  2. Manually update versions in package.json if needed
  3. Run npm install to update

Network Issues

Slow Download or Timeout

# Increase timeout (default is 2 minutes for git clone)
npx @blackunicorn/bmad-cybersec install --from-git

# Or use release download which has automatic retries
npx @blackunicorn/bmad-cybersec install

Behind Corporate Proxy

# Configure npm proxy
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080

# Then install
npx @blackunicorn/bmad-cybersec install

Environment Issues

Node.js Version Too Old

Error: BMAD-CYBER requires Node.js >= 18.0.0

Solution: Upgrade Node.js to version 18 or later:

Permission Denied

Error: EACCES: permission denied

Solutions:

  1. Don't use sudo with npm/npx

  2. Fix npm permissions: https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally

  3. Install to a directory you own:

    npx @blackunicorn/bmad-cybersec install ~/my-project

Getting More Information

Enable Verbose Logging

npx @blackunicorn/bmad-cybersec install --verbose

This shows:

  • Detailed progress information
  • File-by-file extraction
  • Network request details

Preview Before Installing

npx @blackunicorn/bmad-cybersec install --dry-run

This shows:

  • All files that would be extracted
  • Changes to package.json
  • No actual modifications made

Security

For Maintainers

NPM Publishing Requirements

Two-Factor Authentication (2FA) is REQUIRED for publishing to npm.

Before publishing any release:

  1. Enable 2FA on your npm account: https://docs.npmjs.com/configuring-two-factor-authentication
  2. Use an authentication app (not SMS) for security
  3. The npm account must have publish 2FA level enabled
# Verify 2FA is enabled before publishing
npm profile get

# Should show:
# two-factor auth: auth-and-writes

Token Security

  • NPM tokens are stored in GitHub Secrets (never in code)
  • Tokens are never logged or displayed in workflow outputs
  • Use scoped tokens with minimal permissions
  • Rotate tokens periodically (recommended: every 90 days)

Release Signing

All releases include:

  • SHA256 checksums for tarball verification
  • Provenance attestation via --provenance flag
  • Git tags for version tracking

For Users

Download Verification

The installer automatically verifies downloads:

  • Mandatory checksum verification - all downloads are validated against SHA256 checksums
  • HTTPS only - all network requests use secure connections
  • Trusted hosts only - downloads restricted to github.com domains

Safe Installation Practices

# Always verify the package source
npm view @blackunicorn/bmad-cybersec

# Check package integrity
npm audit

# Review what will be installed before proceeding
npx @blackunicorn/bmad-cybersec install --dry-run

Reporting Security Issues

For security vulnerabilities, please:

  1. DO NOT create a public GitHub issue
  2. Email security concerns to the maintainers directly
  3. Include reproduction steps and impact assessment

Development

Running Tests

cd tools/npx
npm install
npm test

Test Coverage

npm run test:coverage

Coverage thresholds: 80% for lines, functions, branches, and statements.

Project Structure

tools/npx/
├── cli.js              # CLI entry point
├── index.js            # Main export
├── commands/
│   └── install.js      # Install command implementation
├── lib/
│   ├── config.js       # Configuration constants
│   ├── downloader.js   # GitHub release downloader
│   ├── extractor.js    # Tarball extraction
│   ├── git-clone.js    # Git clone functionality
│   ├── logger.js       # Logging utilities
│   ├── package-merger.js # Package.json merging
│   └── utils.js        # Helper utilities
├── __tests__/
│   ├── downloader.test.js
│   ├── extractor.test.js
│   ├── git-clone.test.js
│   ├── install.e2e.test.js
│   ├── package-merger.test.js
│   └── fixtures/
├── scripts/
│   └── postinstall.js  # Post-installation script
├── package.json
├── vitest.config.js
└── README.md

Support

For issues with the NPX installer:

  1. Check this troubleshooting guide
  2. Search existing issues: https://github.com/BlackUnicornSecurity/BMAD-CYBERSEC/issues
  3. Create a new issue with:
    • Node.js version (node --version)
    • npm version (npm --version)
    • Operating system
    • Full error message
    • Command used

License

MIT License - See LICENSE for details.