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

@kojo_shaddy/kojo-deploy

v1.0.13

Published

Simplified GCP deployment CLI utility

Readme

Kojo-Deploy Banner

Kojo-Deploy 🚀

npm package github repo

A lightweight, npm-integrated CLI utility designed to simplify the developer experience when hosting applications on Google Cloud Platform.

Features

  • One-Command Deployment: npm run kojo-deploy handles everything.
  • Auto-Auth: Automatically checks and prompts for GCP authentication.
  • Smart Defaults: Infers service names and project settings.
  • Zero-Config Docker: Generates a Dockerfile if one is missing.
  • Cloud Run Ready: Scales your app from zero to hero automatically.
  • Live URL: Instant production URL provided at the end.
  • Upcoming: Real-time log streaming with --logs flag (coming soon!)

Kojo-Deploy Demo

Prerequisites

Quick Start

Option 1

You can deploy your project in seconds without even installing it:

npx @kojo_shaddy/kojo-deploy 

Option 2

  1. Add Kojo-Deploy to your project:

    npm install --save-dev @kojo_shaddy/kojo-deploy
  2. Deploy:

    npm run kojo-deploy

Workflow

  1. Authentication: Checks if you are logged in; opens browser if not.
  2. Configuration: Prompts for Project ID and Service Name.
  3. Containerization: Builds your app using Google Cloud Build.
  4. Deployment: Deploys the image to Cloud Run (Managed) with unauthenticated access enabled.

Authentication Under the Hood

The authentication check essentially delegates to GCP's own authentication system rather than reimplementing it.

What It Does vs. Doesn't Do

| What Kojo-Deploy Does | What It Doesn't Do | | :----------------------- | :-------------------- | | ✅ Leverages GCP's native auth system | ❌ Doesn't store credentials | | ✅ Uses secure Google OAuth flow | ❌ Doesn't handle token refresh manually | | ✅ Works across all platforms (Windows, Mac, Linux) | ❌ Doesn't reinvent the wheel | | ✅ Automatically uses your existing GCP sessions | ❌ Doesn't require additional setup | | ✅ Supports multi-account scenarios | ❌ Doesn't manage multiple auth providers |

The Flow in Action

User runs kojo-deploy
    ↓
✅ checkGcloud() → Confirms gcloud exists
    ↓
✅ checkAuth() → Queries gcloud auth list
    ↓
    ├─→ Active account found? → Continue deployment 
    ├─→ No active account? → Spawn browser login 
    │                         → gcloud auth login
    │                         → OAuth redirect to Google
    │                         → User authenticates
    │                         → Return to terminal with fresh session
    │                         → Continue deployment 
    └─→ Error? → Exit gracefully 

The Bottom Line

Kojo-Deploy doesn't play authentication, it plays orchestra conductor. It orchestrates Google Cloud's battle-tested authentication system through elegant CLI commands and smart error handling. This is why it's so reliable, so secure, and so effortless for users.

Environment Variables & Secrets

Local Environment Variables

If a .env file is present in your project's root directory, Kojo-Deploy will automatically read it and inject the environment variables into your Cloud Run service during deployment. Note: .env is typically excluded from version control by .gitignore automatically.

Google Secret Manager Integration

For sensitive values (like database passwords or API keys) in production, you should use Google Secret Manager rather than plain text environment variables. Kojo-Deploy automatically enables the Secret Manager API in your GCP project.

You can securely pass secrets to your service using the --secrets flag, mapping the environment variable name to the Secret Manager path:

npx @kojo_shaddy/kojo-deploy --secrets "DB_PASS=projects/PROJECT_ID/secrets/db_password/versions/latest"

If using an npm script, pass the arguments like this:

npm run kojo-deploy -- --secrets "API_KEY=projects/PROJECT_ID/secrets/my_api_key/versions/latest"

Mission

Kojo-Deploy acts as a "digital engine" for the global tech community, making cloud infrastructure accessible and fast, so engineers can focus on writing code rather than managing consoles.


Created with ❤️ by Shadrack Inusah