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

scaffold-gcp-cli

v1.0.14

Published

🧠 SCAFFOLD - Smart Cloud CLI for AI-powered Google Cloud Platform automation

Readme

🧠 SCAFFOLD - Smart Cloud CLI

AI-powered Google Cloud Platform automation that understands natural language commands.

SCAFFOLD Demo

✨ Features

  • Natural Language Interface: Talk to your GCP infrastructure in plain English
  • Intelligent Command Generation: AI converts your requests to optimal gcloud commands
  • Enhanced Command Parsing: Advanced support for complex commands with pipes and filters
  • Multi-Step Plan Execution: Execute comprehensive workflows with intelligent step-by-step guidance
  • Smart Error Recovery: Intelligent error analysis with alternative command suggestions and recovery options
  • Interactive Execution: Review and confirm commands before execution with user choice on failures
  • Context Awareness: Remembers your session for better recommendations
  • Shell Integration: Seamless support for complex shell operations and command chaining
  • Multi-tool Support: Works with gcloud, gsutil, bq, and kubectl

🚀 Installation

Global Installation

npm install -g scaffold-gcp-cli

Prerequisites

  1. Node.js 16+: Download here
  2. Google Cloud CLI: Install gcloud
  3. OpenAI API Key: Get your key

Setup

  1. Set your OpenAI API key:

    export OPENAI_API_KEY=your_api_key_here
  2. Authenticate with GCP:

    gcloud auth login
    gcloud config set project YOUR_PROJECT_ID
  3. Start SCAFFOLD:

    scaffold

💡 Usage Examples

Basic Queries

💬 SCAFFOLD ❯ show me all my compute instances
💬 SCAFFOLD ❯ list storage buckets with public access
💬 SCAFFOLD ❯ analyze my cloud costs for last month
💬 SCAFFOLD ❯ check firewall rules for security issues

Advanced Operations

💬 SCAFFOLD ❯ create a new VM in us-east1 with 4 CPUs
💬 SCAFFOLD ❯ scale my kubernetes cluster to 5 nodes
💬 SCAFFOLD ❯ backup all my databases
💬 SCAFFOLD ❯ show me resources costing more than $100

Multi-Step Workflows

💬 SCAFFOLD ❯ perform a comprehensive security audit of my project
💬 SCAFFOLD ❯ analyze firewall risks across all my networks
💬 SCAFFOLD ❯ audit IAM permissions and service accounts
💬 SCAFFOLD ❯ check for unused resources to optimize costs

Complex Commands

💬 SCAFFOLD ❯ find all service accounts with editor roles
💬 SCAFFOLD ❯ list storage buckets with public access and their IAM policies
💬 SCAFFOLD ❯ show me recent error logs from all services
💬 SCAFFOLD ❯ get compute instances with their firewall rules

Available Commands

  • help - Show available commands
  • examples - Display example queries
  • clear - Clear the screen
  • exit - Quit SCAFFOLD

🔧 Configuration

Environment Variables

| Variable | Description | Required | |----------|-------------|----------| | OPENAI_API_KEY | Your OpenAI API key | ✅ Yes | | GOOGLE_CLOUD_PROJECT | Default GCP project | No |

GCP Authentication

SCAFFOLD uses your existing gcloud configuration:

# View current config
gcloud config list

# Set project
gcloud config set project my-project-id

# Set default region/zone
gcloud config set compute/region us-central1
gcloud config set compute/zone us-central1-a

🛠️ Development

Local Development

# Install dependencies
npm install

# Run locally
npm start

🔒 Security

  • API Keys: Never commit API keys. Use environment variables.
  • Permissions: SCAFFOLD uses your existing gcloud permissions.
  • Command Review: All commands are shown for confirmation before execution.
  • No Data Storage: Conversation history is kept in memory only.

🐛 Troubleshooting

Common Issues

"OPENAI_API_KEY environment variable is required"

export OPENAI_API_KEY=your_key_here

"gcloud CLI not found"

"No GCP project configured"

gcloud config set project YOUR_PROJECT_ID

Commands hanging on interactive prompts

  • This is expected for component installations
  • Type 'Y' when prompted to continue

Getting Help

  • Type help in SCAFFOLD for built-in assistance

📝 License

MIT License - see LICENSE file for details.

🤝 Contributing

Contributions welcome! Please read our contributing guidelines and submit pull requests.

🔗 Links


Built with ❤️