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

@servanda/types

v0.4.0-pre

Published

Servanda protocol schemas (zod) and TypeScript types for every spec object

Readme

@servanda/types

Every Servanda protocol object as a zod schema plus its inferred TypeScript type, the §7 node surface contract, and §8's MUST list as data.

One schema per spec object, imported by every other package — so a commitment cannot drift between the store that writes it and the UI that renders it.

What is here

| Module | Spec | |---|---| | primitives | Hex keys, signatures, RFC 3339 timestamps, ISO 8601 durations, the §1.6 verification ladder | | identity | Attestation, revocation, domain anchor, binding proof, persona link, rotation (§1) | | envelope | Signal envelope (§2) | | commitment | Commitment, expectation, extraction output (§3) | | edge | Edge, assertion, states, rejection reasons (§4) | | scope | Scopes, scope descriptor, publish/unpublish (§5) | | wire | Wire messages, hub envelope (§6) | | node-surface | The six tools' input/output schemas (§7) | | musts | MUSTS and MUST_IDS (§8) |

The one distinction worth knowing

Assertion.state uses WireAssertionState, which admits open. AssertableState does not.

This is deliberate and load-bearing. §4.3 marks confirmed → open as "(implicit)" with no signer, so an explicit open assertion is invalid — and §4.3 requires the node to discard it with the reason implicit-transition-not-assertable. If the parser rejected open outright, the node could not report that reason, and an M-14 rejection would be indistinguishable from malformed JSON.

Syntax is the parser's job; assertability is the transition table's.

Rotation accepts two encodings

Rotation accepts both sig and sig_old/sig_new, and requires at least one signature by the old key. §1.7 names the fields sig_old/sig_new, but the universal signing rule excludes only a field literally named sig, so §1.7's shape has no defined signing preimage — see upstream issue #17. RotationCanonical is the single-sig form this implementation emits, because it is the only one that can actually be signed.

A rotation nobody signed is never valid: it would hand an attacker every open edge of the rotated persona.

MUSTs as data

import { MUSTS, MUST_IDS } from '@servanda/types';

gates/must-coverage.sh walks this list and fails if any M-x has no named test. A MUST with no test is a rule nothing enforces.