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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@headlamp-k8s/pluginctl

v0.1.1

Published

CLI for managing plugins in Headlamp

Readme

@headlamp-k8s/pluginctl

A lightweight CLI tool for managing Headlamp plugins.

Purpose

This package provides a minimal, focused tool for managing Headlamp plugins. It's ideal for:

  • Installing plugins from ArtifactHub
  • Managing plugin configurations
  • Performing bulk plugin operations via configuration files

Usage

pluginctl.js <command>

Commands:
  pluginctl.js extract <pluginPackages>     Copies folders of packages from plug
  <outputPlugins>                           inPackages/packageName/dist/main.js
                                            to
                                            outputPlugins/packageName/main.js.
  pluginctl.js package [pluginPath]         Creates a tarball of the plugin
  [outputDir]                               package in the format Headlamp
                                            expects.
  pluginctl.js install [URL]                Install plugin(s) from a
                                            configuration file or a plugin
                                            artifact Hub URL
  pluginctl.js update <pluginName>          Update a plugin to the latest
                                            version
  pluginctl.js uninstall <pluginName>       Uninstall a plugin
  pluginctl.js list                         List installed plugins

Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]

Configuration File Format

plugins.yaml:

plugins:
  - name: my-plugin
    source: https://artifacthub.io/packages/headlamp/test-123/my-plugin
    version: 1.0.0
  - name: another-plugin
    source: https://artifacthub.io/packages/headlamp/test-123/another-plugin
    dependencies:
      - my-plugin
installOptions:
  parallel: true
  maxConcurrent: 3

Available Classes

The package exports the following classes for programmatic use:

  • PluginManager: Core class for managing individual plugins
  • MultiPluginManager: Class for handling multiple plugins and their dependencies

Example usage:

const { PluginManager, MultiPluginManager } = require('@headlamp-k8s/pluginctl');

// Create a plugin manager instance
const manager = new PluginManager();

// Create a multi-plugin manager for handling multiple plugins
const multiManager = new MultiPluginManager();

Using npm link for Development

To test your local changes to pluginctl in other packages:

  1. Create a global symlink:
cd plugins/pluginctl
npm link
  1. In the project where you want to use the local version:
npm link @headlamp-k8s/pluginctl

This will create a symlink to your local development version instead of using the published package. This is useful for:

  • Testing changes before publishing
  • Debugging issues
  • Developing features that require changes in both packages

To unlink:

npm unlink @headlamp-k8s/pluginctl

Relationship with @kinvolk/headlamp-plugin

pluginctl is a minimal tool focused solely on plugin management operations. It provides the core functionality for:

  • Installing plugins
  • Updating plugins
  • Removing plugins
  • Listing installed plugins

In contrast, @kinvolk/headlamp-plugin is a comprehensive package that includes:

  • All plugin management features from pluginctl
  • Plugin development tools
  • Build and testing infrastructure
  • Code quality tools

Choose pluginctl if you only need plugin management features, or headlamp-plugin if you need the full development toolkit.