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

@open-nodo/protocol

v0.3.0

Published

The Nodo wire contract: OpenAPI 3.1 + JSON Schemas (register, check-in, catalog, entitlements, aggregates) and the TypeScript types generated from them.

Readme

@open-nodo/protocol

The wire contract between Nodo instances and the rail. This package is the asset that gates the rail, the SDK, conformance, and any third-party reimplementation — change it first, regenerate, then change consumers.

  • License: Apache-2.0 (we want this reimplemented in any language).
  • Source of truth: openapi/openapi.yaml (OpenAPI 3.1) plus the standalone schemas/ (JSON Schema 2020-12) for the persisted entities.
  • TypeScript types are generated, never hand-written: npm run generatesrc/generated/types.ts.

Use

npm run generate   # OpenAPI -> src/generated/types.ts
npm run build      # generate + tsc -> dist
npm run lint       # redocly lint of the OpenAPI document
npm run mock       # boot a Prism mock server from the spec
import type { Instance, CheckinResponse } from "@open-nodo/protocol";
import { API_VERSION } from "@open-nodo/protocol";

API surface (v1)

| Method & path | Auth | Purpose | |---|---|---| | POST /instances/register | registration token (body) | One-time: store the instance's Ed25519 public key → instance_id. | | POST /instances/checkin | EdDSA-signed JWT | Identity + entitlements + latest versions + advisories. | | GET /catalog/modules | none | Browse the catalog. | | GET /catalog/modules/{key}/versions | none | Versions of a module. | | GET /orgs/{orgId}/entitlements | session | What an org may run. | | POST /selection-tokens | session | Mint the catalog→CLI handoff token. | | POST /aggregates | EdDSA-signed JWT | Push a signed period rollup (Phase 4). | | GET /groups/{groupId}/consolidation | session | Consolidated figures across a group (Phase 4). |

Check-in handshake (§C)

  1. Instance builds JWT claims { iss: instance_id, iat, jti } and signs with its Ed25519 private key (EdDSA).
  2. POST /instances/checkin with Authorization: Bearer <jwt> and body { app_version, modules_running[] }.
  3. Rail loads the instance by iss, fetches the stored public key, verifies the signature, and rejects a seen jti (replay) or an iat outside the freshness window.
  4. Rail returns identity, entitlements, latest_versions, and advisories.
  5. Instance caches the response, enforces entitlements locally, and on rail-unreachable keeps the last-known entitlements for the offline-grace window.

Invariant: no shared secret is ever transmitted; the rail only ever stores public keys, and no raw financial/beneficiary data leaves the instance — only identity metadata and signed aggregates.

Entities

The seven persisted entities have authoritative standalone schemas in schemas/: Module, ModuleVersion, Entitlement, Instance, Aggregate, Advisory, SelectionTokenClaims. The OpenAPI document $refs them, so they are defined once. Versioning policy: VERSIONING.md.