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

k8s-mig-manager

v0.1.2

Published

Ink + Bun + TypeScript CLI for viewing and changing NVIDIA GPU Operator MIG profiles on Kubernetes nodes.

Readme

k8s-mig-manager

Ink + Bun + TypeScript CLI for viewing and changing NVIDIA GPU Operator MIG profiles on Kubernetes nodes.

Install

The package is published to npmjs.org. Install globally with npm:

npm install -g k8s-mig-manager

Or install globally with Bun:

bun add -g k8s-mig-manager

Usage

After installation, run the CLI directly:

k8s-mig-manager

Development

Install dependencies and run locally:

bun install
bun run start

Lint and format:

bun run lint
bun run lint:fix
bun run format
bun run check:fix

These scripts call bunx --bun @biomejs/[email protected], so they can run even when the Biome binary is not installed globally.

Controls

  • outer layer: up / down select a node, enter opens a GPU node
  • node layer: left / right switches between Profiles and Metrics tabs
  • Profiles tab: up / down select a MIG profile, enter stages it, enter again applies it
  • Profiles tab shows the selected profile detail beside the profile list on wide terminals, and below it on narrow terminals
  • Profiles tab: left goes back to the node list
  • r: refresh now
  • q / ctrl+c: quit

The CLI only enables profile actions for nodes that advertise nvidia.com/gpu.present=true or nvidia.com/gpu resources. Non-GPU nodes are rendered dim and skipped during selection.

How Changes Work

NVIDIA GPU Operator MIG manager watches this node label:

nvidia.com/mig.config=<profile>

Applying a profile is equivalent to:

kubectl label node <node> nvidia.com/mig.config=<profile> --overwrite

Available profiles are read from the per-node MIG manager ConfigMap first, such as gpu-operator/<node>-mig-config. If that is not available, the CLI falls back to profiles implied by node resources like nvidia.com/mig-1g.12gb.

Real-time GPU usage is read from DCGM exporter through the Kubernetes service proxy:

kubectl get --raw /api/v1/namespaces/gpu-operator/services/nvidia-dcgm-exporter:9400/proxy/metrics