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

@stigmer/plugin-package

v0.4.0

Published

Reads an Agent Plugins package — the open 1.0.0 format and the Cursor, Claude Code and Codex dialects — into one normalised description of what Stigmer would install, refusing with one sentence per problem what Stigmer cannot carry; pure over an in-memory

Readme

@stigmer/plugin-package

Reads an Agent Plugins package into one normalised description of what Stigmer would install from it.

A plugin is a folder with a manifest, skills/ and an MCP server configuration. This library reads the open Agent Plugins 1.0.0 format and the three vendor dialects that preceded it (Cursor .cursor-plugin/, Claude Code .claude-plugin/, Codex .codex-plugin/) unchanged, and hands back a PluginPackage: the skills, MCP servers, sub-agents and variables in the shapes a plugin's status takes, and every component it ignored. What Stigmer cannot carry is refused with one fixed sentence per problem, and the reader keeps scanning past a refusal so one run reports every problem at once.

Why this is a library

The same code runs in two places: the CLI validates a plugin directory offline (stigmer validate -f <dir>), and the server parses an uploaded archive when it installs a plugin. One implementation means a plugin that validates offline installs, and a plugin that is refused offline is refused by the server with the same sentence. The library is pure over a PluginFiles reader (a sorted list of sized entries plus read), so each consumer supplies its own: a directory walker in the CLI, an archive reader in the server. Nothing here touches the filesystem, the clock, the network or the environment, and the main entry imports no node:* module, so a browser can run it too.

Consumers

  • @stigmer/cli (client-apps/cli): stigmer validate -f <dir> over a plugin directory.
  • @stigmer/server: the plugin install pipeline, when it lands.

Dependency policy

One runtime dependency, yaml (the CLI's and the SDK's YAML library), for SKILL.md and sub-agent frontmatter. No dependency on @stigmer/apis: the library describes the plugin format, and the CLI's offline validation should not pull the resource schemas in for a parse. Field names in the normalised types mirror the protos (PluginAgent, EnvVarDeclaration, McpServerEntry) so the server's mapping is one function per part.

Design notes

  • Refuse, do not skip. The open specification tells a client to skip a broken component and keep loading. Stigmer refuses the plugin instead: an installed agent that quietly lacks a server or a sub-agent is worse than a refused install. The parser still scans past a fatal finding so an author fixes everything in one pass.
  • Every sentence lives in src/messages.ts, one per finding kind, identifiers single-quoted. Consumers never compose refusal copy.
  • Caps are checked from declared sizes before a byte is read (PLUGIN_DOCUMENT_LIMITS), and again on the bytes returned, so no reader can be talked into inflating a bomb through the library.
  • Variables are references the runner resolves. A ${VAR} in a server configuration is a reference to a value the run's vaults hold, in every dialect; an undeclared one is inferred as a required secret and warned, because the runner hands a server only the variables its spec declares.
  • Two facts about the runner shape two refusals: a ${VAR} in a server url is sent literally (refused), and a stdio env can only pass a declared variable by its own name, so only KEY: "${KEY}" is representable (anything else refused).
  • The eval suite is read, never refused. readEvalSuite reads a plugin's evals/ folder (or its manifest's experimental.evals) in Claude Code's plugin-eval format into cases and findings. A suite is the author's tests rather than something Stigmer installs, so a broken case is a finding beside the others, never a refused install. Its sentences live with it in src/evals/ and start with the file they name, the shape Claude Code's own loader prints.
  • The ./testing entry builds in-memory plugins in each dialect's exact layout, so consumers' tests and this library's own adversarial suite craft fixtures from one source.