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

@codetools/blueprints-cli

v2.0.0

Published

A tool for generating predefined files and directories

Downloads

103

Readme

blueprints-cli

A tool for generating files and directories from reusable templates called blueprints. Commonly used to scaffold components, services, configurations, and other repeatable file structures.

Installation

npm install -g @codetools/blueprints-cli

Quick Start

# 1. Create a blueprint
bp new -g myBlueprint

# 2. Add template files to ~/.blueprints/myBlueprint/files/

# 3. Generate from the blueprint
bp generate myBlueprint MyInstance

Commands

| Command | Description | Options | | ------- | ----------- | ------- | | generate\|g <blueprint> <instance> | Generate files from a blueprint. Extra key=value args supply template data. | -d, --dest <dir>: Output directory.--dry-run: Preview without writing.--json: Machine-readable output. | | info\|i <blueprint> | Inspect a blueprint and list its required variables. | --json | | list\|ls [namespace] | List all available blueprints. | -l, --long: Show descriptions.--json | | new <blueprint> | Create a new blueprint template. | -g, --global: Create globally.-s, --source <path>: Seed from a directory.--json | | import <globalBlueprint> [localBlueprint] | Copy a global blueprint into the current project. | --json | | remove\|rm <blueprint> | Remove a blueprint. | -g, --global: Remove from global store.--json | | init [projectPath] | Initialize a .blueprints directory in a project. | --json | | ask\|a <blueprint> <instance> | Generate files using AI and blueprint prompts. | -d, --dest <dir>-m, --model <id> | | models\|md | List configured AI model ids, providers, and model names. | — |

The global --json flag is supported on all commands except ask and models. When set, output is emitted as structured JSON to stdout; errors are emitted as { "error": { "code", "message" } } to stderr with exit code 1.

Example

# Inspect a blueprint first
bp info statusReport --json

# Generate with template data
bp generate statusReport ProjectAlpha projectName="Project Alpha" status="On Track" date=2023-12-08

MCP Server (Agent Integration)

blueprints-cli ships an MCP server so AI agents (Claude Code, Claude Desktop, etc.) can call blueprint operations directly without shell execution.

Recommended — zero-install via npx:

{
  "mcpServers": {
    "blueprints": {
      "command": "npx",
      "args": ["-y", "-p", "@codetools/blueprints-cli", "bp-mcp"]
    }
  }
}

Working inside this repo? An .mcp.json is included at the project root — compatible clients connect automatically with no extra setup.

See Agent Integration for all setup options, available tools, and CLI JSON mode.

Documentation