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

@yaklabs-ai/plugin-protocol

v0.13.4

Published

The Kay plugin manifest schema (`kay.plugin.v1`) — parse and validate a kay-plugin.json.

Readme

@yaklabs-ai/plugin-protocol

The kay.plugin.v1 manifest schema — the same Zod schema Bonsai's daemon uses to parse kay-plugin.json at load time.

Published to the public npm registry under the MIT licence, always at the same version as @yaklabs-ai/plugin-sdk. No registry configuration and no access token are needed. See @yaklabs-ai/plugin-sdk's README for the full authoring flow.

{
  "dependencies": {
    "@bonsai/plugin-protocol": "npm:@yaklabs-ai/plugin-protocol@^0.13.4"
  }
}

Why you want this

Validate your manifest in your own CI, against the real schema, instead of a hand-written approximation:

import { KayPluginManifestV1 } from "@bonsai/plugin-protocol";

const parsed = KayPluginManifestV1.safeParse(
  JSON.parse(await readFile("kay-plugin.json", "utf8")),
);
if (!parsed.success) {
  for (const issue of parsed.error.issues) {
    console.error(`${issue.path.join(".") || "<root>"}: ${issue.message}`);
  }
  process.exit(1);
}

A hand-rolled field check drifts from the contract it claims to enforce and passes while the host rejects the plugin at load. This is the host's own schema, so it cannot drift — and unlike resolving it out of a Bonsai checkout, it needs no clone, no build, and no KAY_REPO environment variable.

Version it against your Bonsai app

The schema changes over time — it gains fields, and it can also remove one. Three skews follow, and only the first two fail on your machine:

  • Validating against a newer schema than your Bonsai app runs can accept a manifest the host will reject.
  • Validating against an older schema can reject a manifest the host would happily load.
  • Validating against an older schema can also accept a field the host has since removed. KayPluginManifestV1 parses with strictObject, so an unrecognized key is a hard rejection: your local validation goes green, and Bonsai drops the plugin at load with a diagnostic you never see.

Keep this package in step with the Bonsai version you target — the third skew is the one a green local run will not warn you about.