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

@uniba-commons/persona-conformance

v0.1.0

Published

Cross-language conformance vectors for persona-protocol: frozen wire-format and claim-decision fixtures every implementation must pass. Data only — no runtime code.

Downloads

67

Readme

Conformance fixtures

Published as @uniba-commons/persona-conformance — the frozen, versioned vectors every persona-protocol implementation must pass, so independent codecs cannot drift from the wire contract. Data only; no runtime code.

Shared test vectors run against every language implementation (docs/spec/conformance.md). Runners live with each implementation's test suite:

  • Ruby: gems/persona/spec/conformance_spec.rb
  • TypeScript: packages/server-core/test/conformance.test.ts

Files

  • wire-names.json — the fixed wire names. Runners assert their language's exported constants equal these values.
  • claim-decision.json — the §6 claim decision table. Each case sets up a browser state and a holder state against an in-memory storage port, runs the implementation's claim logic, and asserts the outcome. Keys in expect are optional — runners check only the keys present:
    • personas_delta — net persona-count change (a confirmed merge is -1: none created, the source retired)
    • result_user — who the browser resolves to afterwards ("new" / "current" / "holder")
    • subject_holder — who holds the subject afterwards ("result" / "current" / "holder")
    • result_has_agent_binding — the result user is bound to given.agent_uid
    • account_bindings_delta / agent_bindings_delta — binding-count change
    • merged / merge_preview — result flags
    • echoed_agent_uid — the credential-echo exception (string or null)
    • current_retired — the acting persona no longer exists
    • browser_binding_moved_to_holdergiven.agent_uid now resolves to the holder
  • claim-code.json — normalization, display formatting, and digest vectors for single-use claim codes (P-7).
  • session-cookie.json — cookie-profile session verification vectors (C-1): a fixed secret plus tokens that must verify (returning the payload) or be rejected (tampered, expired, malformed). verify_at pins the clock in epoch seconds. Signing is covered by round-trip properties in each implementation, not by fixed bytes — token bytes depend on payload serialization order, which the protocol does not constrain. These vectors therefore pin verification within an implementation, not cross- implementation cookie interop: a cookie signed by one codec is not guaranteed to verify under another until a canonical serialization is frozen (see C-1 in the cookie-profile spec).

Which vectors bind you

Vectors bind by transport profile and capability level — you conform against only the ones your implementation reaches. A header-profile, level-1 consumer needs wire-names.json and nothing else.

| | Level 1 — anonymous identity + join | Level 2 — + claims (account linking / claim codes) | | ----------------------------------- | ---------------------------------------- | -------------------------------------------------- | | Header profile (X-Agent-Id) | wire-names.json | + claim-decision.json, claim-code.json | | Cookie profile (session cookie) | wire-names.json, session-cookie.json | + claim-decision.json, claim-code.json |

  • wire-names.json binds every implementation — the wire names are shared by both profiles (NOT_JOINED rides the cookie profile too, C-4/H-4).
  • session-cookie.json binds only the cookie profile (C-1).
  • claim-code.json binds implementations that issue single-use claim codes to restore or move a persona across browsers (P-7).
  • claim-decision.json binds implementations that graft a persona onto a verified account — the §6 account-link decision table.

Use (consumers)

Adopt these as tests against your own implementation — you need not depend on the reference libraries to conform. Pin a version; the vectors are what a release freezes.

import cases from '@uniba-commons/persona-conformance/claim-decision.json' with { type: 'json' }
// drive your account-link logic through each case and assert the expected outcome

Adding a vector

Fixtures are hand-written JSON (session tokens are generated by session-cookie.gen.mjs next to this file). Keep them implementation-free: a vector that only one implementation can satisfy is a spec bug — raise it against the spec (docs/spec/) instead of special-casing a runner.