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

@skillsregistry/contracts

v2.0.0

Published

Zod schemas + TypeScript types for the SkillsRegistry public API and the local-node ↔ mothership contract.

Readme

@skillsregistry/contracts

Zod schemas + TypeScript types for the SkillsRegistry public API and the local-node ↔ mothership contract.

License: Apache-2.0. Consumed by both the open-source skillsregistry-local node and the proprietary mothership. Both sides pin the exact same version so no field ever silently drifts.

Modules

| Import | Purpose | |---|---| | @skillsregistry/contracts | Everything below re-exported | | @skillsregistry/contracts/common | Shared OpenAPI path + query params (SkillIdParam, SkillSlugParam, LimitQuery, …). Depends on @hono/zod-openapi. | | @skillsregistry/contracts/responses | HTTP response envelopes for public REST routes. Depends on @hono/zod-openapi. | | @skillsregistry/contracts/upstream | Local-node → mothership contract: trust scoring, budget, publish, delta sync, error taxonomy. Plain zod — no OpenAPI meta. |

Install

pnpm add @skillsregistry/contracts

Example — upstream client

import {
  TrustScoreRequestSchema,
  TrustScoreResponseSchema,
  UpstreamErrorSchema,
  type UpstreamErrorCode,
} from '@skillsregistry/contracts/upstream';

const body = TrustScoreRequestSchema.parse({ skill_id: mySkillId });
const res = await fetch(`${MOTHERSHIP_URL}/v1/trust/score`, {
  method: 'POST',
  headers: {
    'authorization': `Bearer ${API_KEY}`,
    'content-type': 'application/json',
  },
  body: JSON.stringify(body),
});

if (!res.ok) {
  const err = UpstreamErrorSchema.parse(await res.json());
  handleUpstreamError(err.error.code, err.error.retry_after);
  return;
}

const scored = TrustScoreResponseSchema.parse(await res.json());

Design intent

Plain zod for upstream. The upstream contracts (./upstream) use bare zod so consumers can validate without pulling @hono/zod-openapi. The HTTP-response contracts stay on @hono/zod-openapi because that's where mothership generates its OpenAPI doc.

Field-name stability. Every field name in this package is a public contract. Renaming a field is a MAJOR bump. Adding a nullable field is a MINOR bump. Docstring changes are a PATCH.

Semver rules

  • Major (2.0.0): rename or remove any request/response field; change the enum values of UpstreamErrorCode
  • Minor (1.1.0): add a new endpoint's schemas; add a nullable request field; add a new UpstreamErrorCode value
  • Patch (1.0.1): docstring updates, README

License

Apache-2.0 — see LICENSE in the monorepo root.