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

@vellym/plugin-api

v0.1.0-beta

Published

Public contract for Vellym plugins: host API types, manifest schema, record types

Readme

@vellym/plugin-api

Public contract for Vellym plugins.

This package holds the types a plugin needs and nothing else: the host API, the record types a plugin receives, the declarative view descriptors, and the JSON Schema for the vellym field in a plugin's package.json. It has no runtime dependencies and does not depend on Vellym's internals.

Installing

npm install --save-dev @vellym/plugin-api

Declare the range of Vellym versions your plugin supports. There is no separate plugin API version — engines.vellym refers to the vellym package itself.

{
  "name": "vellym-plugin-example",
  "engines": { "vellym": ">=0.3.0-beta.1" },
  "exports": {
    ".": { "node": "./dist/node.mjs", "browser": "./dist/browser.mjs" }
  },
  "vellym": {
    "id": "example",
    "contributes": {
      "kinds": [{ "kind": "Example" }],
      "views": [
        { "id": "example-list", "kind": "Example", "type": "list", "static": true }
      ]
    }
  }
}

Writing the Node entry

import { definePlugin } from "@vellym/plugin-api";

export default definePlugin({
  activate(host) {
    host.registerKind({ kind: "Example", showInDocumentTree: false });

    host.registerRecordProjection("Example", (record) => ({
      // Copy what the list needs. Do not retain `record` itself.
      values: { status: String(record.spec.status ?? "") }
    }));

    host.registerView({
      id: "example-list",
      static: true,
      navigation: { label: { ja: "例", en: "Examples" } },
      view: {
        type: "list",
        id: "example-list",
        kind: "Example",
        title: { ja: "例", en: "Examples" },
        columns: [
          { id: "title", label: { ja: "タイトル", en: "Title" }, sortable: true },
          { id: "status", label: { ja: "状態", en: "Status" }, filterable: true }
        ]
      }
    });
  }
});

Rules the host enforces

  • A plugin never receives a filesystem path or the content root. It reads the extracted records the host hands it, and writes only through host commands, which go through Vellym's own save path.
  • Anything a plugin gets wrong — an unresolvable package, a manifest outside the declared version range, a throwing activate — becomes a diagnostic. It never fails vellym validate, vellym build, the dev server, or the SPA.
  • Data a plugin does not understand is preserved. Unknown fields and comments in canonical YAML survive a save round trip whether or not the plugin is enabled.

Naming

Official plugins are published under @vellym/*. Community plugins are encouraged to use vellym-plugin-<name>. Neither convention affects resolution — Vellym loads exactly the package names listed under plugins in vellym.config.yaml.

License

MIT