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

builderos-cli

v2.0.9

Published

BuilderOS CLI - Initialize BuilderOS in any project without requiring local code

Readme

builderos-cli

BuilderOS CLI - Initialize BuilderOS in any project without requiring local code.

🚀 Quick Start

# Initialize BuilderOS in current project
npx builderos-cli init

# Initialize with remote BuilderOS
npx builderos-cli init --api-url=https://api.builderos.com

# Update skills only
npx builderos-cli update

📦 What This Does

This CLI tool:

  1. ✅ Creates .mcp.json - MCP configuration for Claude Code
  2. ✅ Downloads skills from BuilderOS API to .claude/skills/
  3. ✅ Creates .builderos marker file
  4. ✅ Updates .gitignore with BuilderOS files (commented for easy sharing)

🌟 Features

  • No local BuilderOS code required - Works purely through API
  • Supports any API URL - Local testing or remote production
  • Smart detection - Automatically detects project state (new/existing)
  • Flexible modes - Install, update, MCP-only, or skills-only
  • Team-friendly - Easy to share configuration with team

📖 Commands

init

Initialize BuilderOS in current project.

npx builderos-cli init [options]

Options:

  • --api-url=<url> - BuilderOS API URL (default: http://builder-os.test)
  • --force - Force reinstall even if already configured
  • --mcp-only - Only install MCP configuration
  • --skills-only - Only download skills

Examples:

# Local development (default)
npx builderos-cli init

# Remote BuilderOS
npx builderos-cli init --api-url=https://api.builderos.com

# Force reinstall
npx builderos-cli init --force

# Only install MCP, skip skills
npx builderos-cli init --mcp-only

# Only download skills, skip MCP
npx builderos-cli init --skills-only

update

Update skills from BuilderOS API.

npx builderos-cli update [options]

Options:

  • --api-url=<url> - BuilderOS API URL (default: http://builder-os.test)

Example:

# Update skills from default API
npx builderos-cli update

# Update skills from remote API
npx builderos-cli update --api-url=https://api.builderos.com

🔧 How It Works

Architecture

npx builderos-cli init
    ↓
1. Create .mcp.json
   - Uses npx @builderos/mcp-client
   - No local code dependency
    ↓
2. Download skills from API
   - Fetch /api/skills (list)
   - Fetch /api/skills/{slug} (content)
   - Save to .claude/skills/
    ↓
3. Create .builderos marker
   - Track initialization state
    ↓
4. Update .gitignore
   - Add BuilderOS files (commented)

Generated .mcp.json

{
  "mcpServers": {
    "builder-os": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@builderos/mcp-client"],
      "env": {
        "BUILDEROS_API_URL": "https://api.builderos.com"
      }
    }
  }
}

Key point: Always uses npx @builderos/mcp-client, not local code.

🌍 Use Cases

Local Development

# Developer has BuilderOS running locally at builder-os.test
cd ~/projects/my-app
npx builderos-cli init

Remote Team Collaboration

# Team uses shared BuilderOS at api.builderos.com
cd ~/projects/team-app
npx builderos-cli init --api-url=https://api.builderos.com

CI/CD Pipeline

# Automated setup in CI
npx builderos-cli init --api-url=$BUILDEROS_API_URL --force

Multiple Environments

# Development
npx builderos-cli init --api-url=https://dev.builderos.com

# Staging
npx builderos-cli init --api-url=https://staging.builderos.com

# Production
npx builderos-cli init --api-url=https://api.builderos.com

🎯 Comparison with use-builderos.sh

| Feature | builderos-cli | use-builderos.sh | |---------|----------------|------------------| | Requires local BuilderOS code | ❌ No | ✅ Yes (for script itself) | | Works anywhere | ✅ Yes | ⚠️ Only if script accessible | | npm installable | ✅ Yes | ❌ No | | MCP mode | Remote only | Local + Remote | | Best for | Remote deployment | Local development |

📝 After Installation

1. Restart VSCode

# Quit completely (not just reload)
Cmd+Q (Mac) or Ctrl+Q (Linux/Windows)

2. Reopen Project

Open the project directory in VSCode.

3. Test MCP Connection

/mcp

Should show: builder-os

4. Test Skills

Ask Claude:

What skills do I have?

Should list available BuilderOS skills.

🤝 Team Sharing

To share BuilderOS with your team:

1. Edit .gitignore

Remove # from:

# .mcp.json
# .claude/

2. Commit

git add .mcp.json .claude/ .gitignore
git commit -m "Add BuilderOS configuration"
git push

3. Team Members

After cloning:

# No need to run CLI - files already in repo
# Just restart VSCode
Cmd+Q

Done! BuilderOS works automatically.

🔒 Environment Variables

BUILDEROS_API_URL

Set default API URL:

# Local development
export BUILDEROS_API_URL=http://builder-os.test

# Remote production
export BUILDEROS_API_URL=https://api.builderos.com

Then run without --api-url:

npx builderos-cli init

🐛 Troubleshooting

CLI not found

# Make sure you're online
# npx will download the package

# Or install globally
npm install -g builderos-cli
builderos init

API connection failed

# Check API URL
curl http://builder-os.test/api/skills

# Try with explicit URL
npx builderos-cli init --api-url=http://builder-os.test

Skills not loading

# Verify skills directory
ls -la .claude/skills/

# Re-download skills
npx builderos-cli update --api-url=http://builder-os.test

MCP not connecting

# Verify .mcp.json
cat .mcp.json

# Restart VSCode completely
# Cmd+Q, not just reload

📦 Publishing to npm

When BuilderOS is ready for production:

cd /Users/audilu/next/builder-os/cli
npm login
npm publish --access public

Then users can use:

npx builderos-cli init

🔗 Related

📄 License

MIT


BuilderOS CLI - Initialize Anywhere, Anytime