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

@xyo-network/event-kit-protocol

v0.1.9

Published

Wallet-JWT Payload verification and admission contracts for XL1 Event Kit

Readme

@xyo-network/event-kit-protocol

Transport-neutral verification and admission orchestration for Event Kit wakes:

  1. Verify a real ES256K wallet JWT with the XYO SDK
  2. Bind JWT eventHash to the wake Payload data hash
  3. Bind the Payload to one immutable route, source identity, and authorization chain
  4. Require an exact active subscription and its live Statement Graph grant
  5. Resolve replay, logical idempotency, receipt creation, and durable enqueue through one atomic inbox boundary

The D-002 split now exists as pure verifyWakeRequest plus stateful admitAndEnqueue over explicit WakeGrantAuthorizer and AtomicWakeInbox ports. Protocol code owns no cloud or transport SDK. The stateful layer invokes injected I/O, while the inbox contract deliberately owns durable enqueue or a transactional outbox instead of exposing a split queue callback. See Yellow Paper §6 and §13.

D-002's target is a raw strict XYO Payload plus a real short-lived wallet JWT; there is no separate event signature.

D-005 adds a second, independent pure-protocol surface for the on-chain subscription handshake. It provides canonical RFC 8785 bytes, one fixed RFC 9180 Base-mode suite (X25519/HKDF-SHA256/AES-128-GCM), dedicated encryption-key generation, strict one-shot subscription encryption/decryption, HMAC-SHA256 endpoint challenge proof, and deterministic fail-closed service/key/ subscription lifecycle selection. Clear routing fields and the structural subscriber claim source are HPKE associated data. This package still performs no XL1, datalake, filesystem, HTTP, or cloud I/O.

See the normative on-chain handshake profile and the language-neutral fixture at ../../conformance/vectors/subscription-hpke.json.

createMemoryWakeInbox ships one conformant AtomicWakeInbox: it serializes the critical section, binds a fresh jti to an existing wake receipt, and hands the wake to its sink before consuming either identity, so a failing sink leaves the attempt retryable. It is single-process and loses state on restart — a durable adapter is available from @xyo-network/event-kit-node, but full resident-runtime and network qualification remain pending. The memory adapter is not production evidence.

Source binding and activation

verifyWakeRequest and admitAndEnqueue implement the one current source-aware contract. Routes pin the independent XL1 authorization chain, source, canonical filter hash, immutable subscription hash, source floor, and range bound. createStatementGraphWakeGrantAuthorizer requires a finalized activation reader in addition to the grant viewer. The production helper createActiveSourceWakeGrantAuthorizer in event-kit-statement-graph supplies the exact active D-005 lifecycle binding and selects the exact accepted grant.

AtomicWakeInbox<TWake>, WakeQueue<TWake>, and drainQueue default to AdmittedWake. Use AdmittedWakeZod to validate repeated persisted fields and parseAdmittedWake to also recompute the event hash. Neither parser authenticates an arbitrary raw record or replaces the HTTP admission path.

The exact source/floor/range filter is encrypted and authenticated. Activation height on the authorization chain never substitutes for a source position. All public schemas and helpers describe this contract; versioned Event Kit schemas and alternative plaintext readers are rejected.