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/xl1-statement-graph-protocol

v0.7.1

Published

Canonical protocol logic for the XYO Statement Graph — identities, atomic Claim admission, per-hash deployment filters, the normative append-only claim fold, and vocabulary-neutral view helpers. Pure and environment-neutral: no chain I/O.

Readme

@xyo-network/xl1-statement-graph-protocol

Canonical protocol logic for the XYO Statement Graph (see the repository WHITEPAPER). Pure and environment-neutral — no chain I/O; the SDK package bridges real XL1 types onto the abstract shapes here.

  • Identities (§6.2, D8): eventKey, claimKey, appliedKey, normalizeAddress — keys and gate comparisons always normalize; record-field casing is a fold option.
  • Acceptance gates (§6.1): evaluateAcceptance + extractStatementEvents over an abstract {txHash, block, txIndex, signers, elevatedHashes, items} transaction — exact Claim elevation, source-in-signer-set, and all-or-nothing object co-commitment. Missing one named hash rejects the whole Claim; firstIndex declared-schema selection, opt-in per-entry strict mode (ambiguity rejection, body-schema equality), and indexedSchemaPolicy filtering run only after that atomic gate. Generic extraction can report a missing explicitly elevated body as unresolved; the finalized SDK prevents that state by requiring the same-block carrier first.
  • Strict body-schema equality (§6.1, strict gate revision 1, since 0.7.0): under StrictModeOptions.requireBodySchemaEquality, an object body that is not a plain record (an array, Map, Date, buffer, or no verified body at all) drops the entry as object-body-unverifiable, and a plain record whose schema is not a string equal to the declaration (missing, null, a number, an object, or present only as $schema/_schema) drops it as object-schema-mismatch. Releases through 0.6.0 let a body without a string schema pass. The default profile is unchanged. A scan declares which strict profile and revision it ran under in the replay contract's gateProfile (schemas package; the SDK enforces it on resume).
  • The normative transition + fold (§6.3, D7): reduceClaimEntry is the pure, total, per-entry mutation-point surface for long-running indexers; foldStatements delegates to it while adding (block, blockEventOrdinal) ordering, duplicate suppression, watermark resume, and atomic per-event fan application. Identity is (source, subject, objectHash); subject is preserved without implying consent or authority. Append-only: firstBlock/firstEventHash freeze at materialization, redundant claims advance only lastBlock, and declaredObjectSchema is first-wins.
  • Enforced fold preconditions (§6.6, since 0.7.0): before sorting, foldStatements checks the position of every event and of a resume seed's watermark. A block, blockEventOrdinal.tx or blockEventOrdinal.event that is not a safe non-negative integer throws a TypeError (… has an ordinal-less or malformed position …; the fold requires D7 positions). Number.isSafeInteger is the only upper bound, so a MAX_SAFE_INTEGER sentinel seed stays valid, and a seed watermark's block may also be -1 (nothing consumed yet, as webble seeds from a processedThrough: -1 checkpoint). A different inclusion at the fold's current watermark position throws statement event position collision at block B tx T event E: <txHash>:<eventHash>. Releases through 0.6.0 skipped it, so the event that survived depended on input order. The fold sorts its input, so a full fold checks every position, but an event before a resume seed's watermark is skipped without an identity check, because a seed carries no earlier positions. An inclusion is recognized by its (txHash, eventHash) alone and is assumed to carry the same content, which content addressing guarantees for extracted events; the same inclusion repeated at its own position still applies once and counts in skippedAtOrBelowWatermark. At a resume seed's watermark a tie is skipped when its key is in the seed's watermarkGroupEventKeys, and throws otherwise. Callers that build events by hand must give each distinct inclusion its own D7 position. Refusing this input is not a fold-version change.
  • Object self-healing (§5.1): resolvePureObject + recomputableObjectHash (body-free point queries over deterministic parameterized objects). withPureObjectBodies(transaction, bodies, options) (since 0.7.0) applies self-healing to strict extraction: only when options.strict.requireBodySchemaEquality is set, it adds {schema} as the verified body of every non-statement item that has no body and whose hash is H({schema}) under that item's declaration, so a correctly declared pure object passes strict equality without a datalake. Otherwise, or when nothing is pure, it returns the input map unchanged; when it adds bodies it returns a read-only view over the input map, not a copy, so do not mutate the input while using it. Call it before extractStatementEvents, which never synthesizes a pure body itself; the SDK scan and the engine's applyStatementTransaction both do, so the two paths agree.
  • View helper (§6.4/§14): indexClaimsByReferencedHash — the vocabulary-neutral lexicon-negation index seam (caller supplies the extractor). Semantic views stay consumer-side (I6).

Verified by the shared fold conformance catalog (hand-derived from the whitepaper, SHA-256-pinned in the schemas package) plus fast-check properties for permutation invariance, seed equivalence, replay idempotency, and fan-out ≡ N-single-claims equivalence — in both Node and real Chromium.

License

LGPL-3.0-only © XY Labs / XYO Foundation