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

@ucd-lib/cork-kube

v0.17.1

Published

Added functionality for k8s kustomize templates

Readme

cork-kube

cork-kube is a CLI tool that wraps kubectl and gcloud to simplify deploying and managing applications on Kubernetes. It is designed for teams comfortable with Docker and docker-compose who are adopting Kubernetes — providing a familiar, project-oriented workflow on top of raw kubectl and Kustomize.

How it relates to docker-compose

If you know docker-compose, cork-kube covers the same day-to-day tasks in Kubernetes:

| docker-compose | cork-kube | |---|---| | docker compose up | cork-kube start <env> | | docker compose down | cork-kube stop <env> | | docker compose restart | cork-kube restart <env> | | docker exec -it <name> bash | cork-kube pod exec <env> <service> | | docker logs -f <name> | cork-kube pod logs <env> <service> | | port mapping in compose file | cork-kube pod port-forward <env> <service> <port> |

Under the hood, cork-kube uses Kustomize to manage Kubernetes YAML. Think of Kustomize as a way to have a base configuration with environment-specific overlays on top — similar to docker-compose.yml + docker-compose.override.yml.

The two parts of the pipeline

cork-kube covers two distinct stages of the deployment cycle:

1. Building imagescork-kube build integrates with Google Cloud Build and the cork-build-registry to build and publish Docker images. The cork-build-registry is a central registry where project versions, image configurations, and build dependencies are defined. A version must be registered there before it can be built.

2. Deploying to Kubernetes — Commands like start, stop, apply, and secrets deploy those images to a Kubernetes cluster. They work from a per-project config file (.cork-kube-config) that defines your environments, services, and secrets.

These two stages are independent: you build images once and deploy them many times across environments.

Installation

npm install -g @ucd-lib/cork-kube

Quick start

# One-time: register your project config with cork-kube
cork-kube project set -c /path/to/.cork-kube-config

# Set your GCP account for the project (optional, enables account verification)
cork-kube project set -p my-project -e [email protected]

# Activate the environment (points gcloud + kubectl at the right cluster)
cork-kube activate -p my-project local-dev

# Start all services
cork-kube start -p my-project local-dev

# Tail logs from a running pod
cork-kube pod logs local-dev my-service

# Open a shell in a running pod
cork-kube pod exec local-dev my-service

# Stop everything
cork-kube stop -p my-project local-dev

Project configuration

The .cork-kube-config file defines your project's environments, services, secrets, and deployment options. It is the central config that most cork-kube commands read from. See Project Config for full documentation.


Command reference

Setup & registration

These commands are typically run once per developer machine when setting up a project. project handles registration; activate switches your local tooling to point at the right cluster; status lets you verify where you're pointed.

| Command | Description | |---|---| | cork-kube project set | Register a project config file; set GCP account or kubeconfig | | cork-kube project list | List registered projects | | cork-kube activate <env> | Set gcloud and kubectl to the project environment (alias: init) | | cork-kube status | Show the active gcloud and kubectl configuration |

Service lifecycle

Start, stop, and restart the services defined in your .cork-kube-config. These are the commands you'll use most often day-to-day.

| Command | Description | |---|---| | cork-kube start <env> | Start all services for an environment (alias: up) | | cork-kube stop <env> | Stop all services for an environment (alias: down) | | cork-kube restart <env> | Rolling restart services (Deployments and StatefulSets only) |

Kubernetes templates

Low-level commands for working directly with Kustomize templates. apply is what start calls internally for each service. Use these directly when you need fine-grained control or are working outside a full project config.

| Command | Description | |---|---| | cork-kube apply <dir> | Render and apply a kustomize template | | cork-kube edit <dir> | Edit YAML values in a template via jsonpath | | cork-kube create-overlay <dir> <name> | Scaffold a new kustomize overlay |

Pod operations

Interact with running pods. cork-kube finds the right pod by service name so you don't need to look up pod names manually.

| Command | Description | |---|---| | cork-kube pod exec <env> <service> | Open a shell or run a command in a running pod | | cork-kube pod logs <env> <service> | Follow logs from a running pod | | cork-kube pod port-forward <env> <service> <ports> | Forward a local port to a pod |

Secrets

| Command | Description | |---|---| | cork-kube secrets deploy <env> | Deploy secrets from Google Cloud Secret Manager |

Image building

A separate part of the pipeline from deployment. Requires versions to be registered in the cork-build-registry.

| Command | Description | |---|---| | cork-kube build gcb | Submit a build to Google Cloud Build | | cork-kube build exec | Run a local Docker build | | cork-kube build set-env <path> | Write built image tags to an env file | | cork-kube build list | List projects and versions from the build registry | | cork-kube build validate | Validate a project's image configuration | | cork-kube build set-config | Configure build settings (GCB project, registries) | | cork-kube build show-config | Show current build configuration |

Dashboard (deprecated)

The dashboard commands are deprecated. We are moving to Headlamp as our Kubernetes UI — see the dashboard docs for migration notes.

| Command | Description | |---|---| | cork-kube dashboard <env> | ~~Install and access the Kubernetes dashboard~~ (deprecated — use Headlamp) |