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

kl-plugin-callback

v0.1.2

Published

kanban-lite callback.runtime plugin for same-runtime event callbacks

Readme

kl-plugin-callback

A first-party kanban-lite package for the callback.runtime capability.

It establishes the provider metadata, shared plugin-settings schema, and listener-owned runtime contract for same-runtime callback automation. Configure it through the shared Plugin Options / CLI / REST API / MCP plugin-settings flow at plugins["callback.runtime"], using one mixed handlers[] list that can describe both inline JavaScript handlers and subprocess handlers.

Install

npm install kl-plugin-callback

Provider id

callbacks

Capability

  • callback.runtime
  • listener-only event.listener integration via callbackListenerPlugin

What this package owns

  • discovery and selection for the callback.runtime capability
  • the shared provider-options contract surfaced through SDK/UI/API/CLI/MCP plugin settings at plugins["callback.runtime"]
  • the inline authoring choice: an embedded CodeMirror JavaScript editor in the existing shared JSON Forms settings flow
  • the runtime listener export that executes matching handlers for committed Kanban after-events

Handler model

Callback configuration lives under plugins["callback.runtime"].options.handlers as one ordered mixed list. The same path is surfaced by the shared Plugin Options tab, kl plugin-settings, /api/plugin-settings, and the MCP plugin-settings tools.

Each handler entry includes:

  • name — user-facing label for settings and logs
  • typeinline or process
  • events — one or more committed after-events to match
  • enabled — disable without deleting
  • source — inline JavaScript when type is inline
  • command / args / cwd — subprocess launch details when type is process

Inline handlers

Inline handlers are trusted same-runtime JavaScript evaluated with new Function. They are not sandboxed, run with host process privileges, and receive exactly one argument shaped as ({ event, sdk }).

Inline JavaScript is authored through the shared plugin settings form using an embedded CodeMirror JavaScript editor (uiSchema.options.editor = "code"), not a separate callback-specific editor surface.

Process handlers

Process handlers are configured in the same handlers[] array. They are normal subprocesses, not sandboxed. The subprocess contract is stdin-only: the runtime sends one serialized JSON payload to the child process and does not expose a live SDK object or other in-memory runtime handles.

Failure behavior

Matching handlers run in order. If one handler throws or exits non-zero, the runtime logs the failure and then continues with later matching handlers.

Example .kanban.json

{
  "plugins": {
    "callback.runtime": {
      "provider": "callbacks",
      "options": {
        "handlers": [
          {
            "name": "log task creation",
            "type": "inline",
            "events": ["task.created"],
            "enabled": true,
            "source": "async ({ event, sdk }) => { console.log(event.event, sdk.constructor.name) }"
          },
          {
            "name": "notify local worker",
            "type": "process",
            "events": ["task.created", "task.updated"],
            "enabled": true,
            "command": "node",
            "args": ["scripts/callback-worker.mjs"],
            "cwd": "."
          }
        ]
      }
    }
  }
}

Exports

  • pluginManifest — package metadata used by shared provider discovery
  • callbackListenerPlugin — listener-owned runtime export for callback.runtime
  • optionsSchemas — explicit provider options schema/uiSchema metadata keyed by provider id

Local development

# from the repository root
pnpm --filter kl-plugin-callback test
pnpm --filter kl-plugin-callback build

License

MIT