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

@sewdn/registry-publisher

v1.0.1

Published

Pack and check owner releases for the Lemonaid toolkit registry

Downloads

470

Readme

@sewdn/registry-publisher

Create a portable toolkit release from explicit owner inputs and genuine npm tarballs. The CLI and ESM API run in Bun or Node.js 20+.

npm install @sewdn/registry-publisher
npx registry-publisher pack scaffold/owner.json .packs/toolkit-1.0.0
npx registry-publisher check .packs/toolkit-1.0.0
npx registry-publisher check .packs/toolkit-1.0.0/release.tgz

Build and pack selected npm packages before running the publisher. Input paths resolve from the current directory, or from the directory given by --root. The publisher writes release.json, content-addressed artifacts/, and release.tgz in the output directory. The archive contains the same manifest and artifacts and can be checked in a different directory after the source checkout is removed. An identical repeat can reuse the output directory. A different release needs a separate output directory.

The API accepts the same owner document as the CLI. The pack result includes the release metadata and relative references to the manifest and archive. Both references include their SHA-256 digests.

import { checkOwnerRelease, packOwnerRelease } from "@sewdn/registry-publisher";

const result = await packOwnerRelease(owner, { root: ".", output: ".packs/toolkit-1.0.0" });
const release = await checkOwnerRelease(".packs/toolkit-1.0.0/release.tgz");

Use checkOwnerReleaseArchive(bytes) to verify an in-memory archive with the same checks as checkOwnerRelease(path). The Kit catalog command accepts the publisher's unmodified release.tgz. Registry refresh

Owner document

Use the release fields and item IDs from the registry contract. For a design-stage or unavailable tool, use an empty items array and record availability in the kit's enrollment.

{
  "schemaVersion": 1,
  "tool": "example",
  "version": "1.0.0",
  "revision": "7ac9e5d",
  "description": "Example access policy tools",
  "lifecycle": "active",
  "docs": ["https://example.org/guide"],
  "migrations": [],
  "items": [
    {
      "kind": "package",
      "id": "example/core",
      "description": "Evaluate access policies",
      "lifecycle": "active",
      "role": "runtime",
      "archive": ".packs/example-core-2.4.0.tgz",
      "source": {
        "directory": ".packs/core-source",
        "distribution": "local",
        "build": [{ "argv": ["bun", "run", "build"] }],
        "test": [{ "argv": ["bun", "test", "./src"] }],
        "requiredFiles": ["tsconfig.build.json", "src/index.ts"]
      }
    },
    {
      "kind": "skillset",
      "id": "example/integration",
      "version": "1.2.0",
      "description": "Use the access policy API",
      "lifecycle": "active",
      "skillId": "example",
      "supports": [{ "id": "example/core", "range": "2.4.0" }],
      "files": [{ "path": "SKILL.md", "source": "scaffold/skills/example/SKILL.md" }]
    }
  ]
}
  • Packages use an archive and may include name and version assertions. The publisher reads identity, explicit public export subpaths, and peers from the packed manifest. It derives toolkit requirements for dependencies on other packages in the release. For a companion from another tool, add dependencyItems mapping the npm name to its qualified toolkit item ID. The packed manifest retains ordinary dependencies and complete export conditions. Current private npm archives can be used for local releases.
  • Recipes and skillsets use the contract's item fields with a root-relative source in each file entry. For example, a recipe file entry can be { "target": "api", "path": "src/authz/guard.ts", "source": "scaffold/recipes/guard.ts" }. Preserve recipe targets, versions, parameter declarations, validation commands, and skill entrypoints in the owner document. Preset entries use the contract as written.
  • Package sources use a prepared standalone directory. Include the matching package.json, source, build configuration, tests, and notices. Npm identity, public export subpaths, effective dependencies, and peers must match the distribution tarball. Build dependencies belong in the source manifest. Add requiredFiles for project-specific inputs and companions for other toolkit packages needed by the source. The source revision defaults to the release revision.

The publisher copies source bytes under package/ and lists conventional license and notice filenames it finds. Supply licenseFiles for notices under other names. Include matching copies of notices shipped in the npm archive. Local bundles can have an empty license list. A redistributable bundle requires an explicit distribution declaration and license files under the owner's redistribution policy.

Verification

Pack and check validate portable paths, artifact SHA-256 digests, npm metadata, and source manifests. Source checks cover declared required files at pack time, local TypeScript configuration inheritance, references and explicit file lists, and package scripts referenced by common package manager commands. Run package, recipe, and source builds and tests as explicit owner steps. The publisher reads metadata and files without running lifecycle or validation commands.

The archive limits come from @sewdn/registry-artifacts. Each archive member can be at most 32 MiB. Use a prepared input tree containing regular files and directories. The resulting archives have stable file ordering and timestamps. Distributed npm tarballs are included byte-for-byte.

From the Kit workspace, run bun run registry:prepare at the root, then bun run typecheck and bun run test from this package.