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-sdk

v0.5.3

Published

Chain-facing SDK for the XYO Statement Graph — finalized-scan replay source, verified writer, and replay-contract checkpointing over structural XL1 viewer/datalake interfaces.

Readme

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

Chain-facing SDK for the XYO Statement Graph (see the repository WHITEPAPER). Everything chain-shaped is a STRUCTURAL interface (FinalizedBlockViewer, BodyStore, StatementBroadcaster) — a real XL1 gateway viewer and REST datalake runner satisfy them directly, and the testing package's fakes exercise every behavior deterministically.

  • Bridge: decodeHydratedBlock — XL1 hydrated blocks → committed-order abstract transactions plus non-transaction block carriers, with the D7-critical rule that txIndex counts the FULL committed block payload array before filtering.
  • Scan (scanFinalizedStatements): forward finalized walk with same-block elevated Claim hydration. Every transaction Bound Witness and every carrier consumed by the scan is canonical root-hash verified: required elevated Claims, configured auxiliary items, and co-committed objects named by verified Claims when strict body/schema equality is enabled. Unrelated non-transaction carriers do not affect Statement Graph replay. ClaimCarrierIntegrityError stops scanning on missing/mismatched Claim carriers, relevant non-Claim mismatches raise BlockCarrierIntegrityError, and the datalake is never a Claim-event fallback. Verified object/auxiliary carriers take precedence over off-chain resolution. Bulk range completeness, per-block fallback, head-regression checks, AbortSignal, strict object-body verification, indexedSchemaPolicy, and auxiliary candidates remain supported.
  • Writer: buildClaim({source, subject, hashes}), shared prepareStatements, insertVerified (insert → readback hash check), and publishStatements — Claims occupy only the elevated/on-chain partition and use XL1 root hashes; referenced object identity remains dataHash-based. Every named object must be co-committed or the whole Claim transaction is rejected. Objects whose client metadata makes root hash differ from dataHash are rejected because they cannot satisfy that commitment. The on-chain/off-chain transport partitions are disjoint and order-independent.
  • Checkpoint: format version 2, ReplayContract-scoped and fail-closed with observable causes (missing / corrupt / contract-mismatch). Stored and directly supplied resumeFrom values pass the same runtime parser before records or horizons are trusted. Fold version 4 and the new wire marker force older pre-subject/pre-atomic checkpoints to rescan from their declared floor; retained unresolved Claim references cannot resume under current semantics. The generic protocol still models unresolved event bodies for non-XL1/local backings, but finalized scans turn missing elevated carriers into fatal integrity errors.

Account-mode transaction building (buildTransaction + addTransactionToChain) stays at the consumer boundary for now — publishStatements targets the universal addPayloadsToChain path both browser and Node gateways expose.

License

LGPL-3.0-only © XY Labs / XYO Foundation