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

@open-panel/plugin-sdk

v0.1.0

Published

The OpenPanel plugin SDK: the plugin.json manifest schema, a plugin registry with per-contribution isolation and live reload, the capability surface (log/shell/http/storage/notify/device), and the adapter that turns plugin actions into ActionDefinitions.

Readme

@open-panel/plugin-sdk

The plugin SDK for OpenPanel: the plugin.json manifest schema, a PluginRegistry that discovers and validates plugins with per-contribution isolation and live reload, the capability surface a plugin's code runs against (log/shell/http/ storage/notify/device), and the adapter that turns a plugin's actions into regular ActionDefinitions namespaced as <pluginId>.<actionKey>.

Themes, locales, actions and device drivers all arrive through this one mechanism — a directory with a plugin.json in it, discovered by the same scan, validated by the same rules, isolated per contribution rather than per plugin (one bad theme in a plugin doesn't take its other contributions down).

Requires Node — plugin discovery reads the filesystem and dynamically imports plugin entry points.

Install

npm install @open-panel/plugin-sdk

If you're writing a plugin, this is a devDependency: definePlugin and the types it gives you are compiled away, and the plugin actually runs inside a host application that already has this SDK loaded.

What's in here

  • definePlugin(definition) — identity function that gives plugin authors type-checking and IDE completion for a PluginDefinition (actions, devices, onLoad, onUnload). This is the whole authoring API: write a plugin.json and export definePlugin({ ... }) as default.
  • PluginManifestSchema / PluginManifest — the plugin.json shape: id, name, version, apiVersion, and contributes (actions, devices, themes, locales).
  • PluginRegistry — new PluginRegistry(directories, options), then load() to scan and import every plugin, list()/get(pluginId) to read what loaded, and watchForChanges(onChanged) for live reload as plugin files change on disk.
  • Capabilities — PluginCapabilities/PluginLifecycleContext/ PluginActionContext: the only surface a plugin's code touches (ctx.log, ctx.shell, ctx.http, ctx.storage, ctx.notify, ctx.device), and createDefaultCapabilities() for a host wiring up a sandbox for the first time.
  • toActionDefinitions(...) — the adapter that turns a plugin's PluginActionDefinitions into @open-panel/action-engine ActionDefinitions, namespaced <pluginId>.<actionKey>.
  • Validation — validatePluginShape, validatePluginConfig, PluginValidationError, PluginConfigError, isApiVersionSupported, declaredKinds/unknownKinds.

Usage

Authoring a plugin (its code half — see plugin.json for the identity half):

// plugin's entry point, referenced from plugin.json's contributes.actions
import { definePlugin } from "@open-panel/plugin-sdk";

export default definePlugin({
  actions: {
    ping: {
      name: "Ping",
      async execute(ctx) {
        await ctx.notify("OpenPanel", "pong");
      },
    },
  },
});

Loading plugins in a host application:

import { PluginRegistry } from "@open-panel/plugin-sdk";

const registry = new PluginRegistry(["./plugins", "~/.openpanel/plugins"]);
const scan = await registry.load();

for (const plugin of registry.list()) {
  console.log(plugin.manifest.id, plugin.problems);
}

Related packages

License

MIT © OpenPanel contributors