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

@val-protocol/demo

v0.1.1

Published

Runnable VAL demo: mints a live Profile-B chain (device-key-signed human root, delegated agent actions, a consent bond), verifies it offline, then attacks it four ways — byte tamper, full history rewrite, signature strip, silent truncation — showing exact

Readme

@val-protocol/demo

Records prove what your agents did. VAL proves they were allowed to. See it in 60 seconds:

npx @val-protocol/demo

No install, no account, no network calls after the package download. The demo:

  1. Mints a live chain — a human (Alice) roots two grants with a fresh P-256 key: one delegating scoped read + record.append to an agent, one keeping sign-class authority to herself. The agent reads a document and derives a record from it (grounding); Alice signs a consent bond.
  2. Verifies it offline — the reference verifier re-derives integrity, lineage, scope, grounding, delegator authority, and the root signatures from the chain bytes plus one pinned capability policy. Zero reads against any operator. Conformance floor: Profile B (device-key-signed root).
  3. Attacks it, four ways:

| Act | Attack | What catches it | |---|---|---| | 1 | Edit one committed block in place | integrity: red — any hash chain catches this | | 2 | Rewrite the whole history (recompute every hash, re-link every parent, upgrade the key-binding claim) | integrity and lineage stay green — a tamper-evident log alone calls the forged chain intact. signature: red — the self-attestation binding challenge breaks. This is the seam VAL exists for. | | 3 | Strip the signatures (and drop the consent bond they cannot re-sign) | everything green — but the conformance floor drops B → A: the report now says human-attributed, no longer human-signed. Forgery cannot be hidden, only demoted. | | 4 | Silently truncate the tail, present the valid prefix | nothing — honestly. A self-held chain cannot prove completeness; that is the §8 external anchor's job (an independent RFC 3161 timestamp authority holds the head). |

Every act asserts its expected verdict — the demo doubles as an integration test of the reference verifier.

Flags

npx @val-protocol/demo --out=chain.ndjson --html=report.html
  • --out=<path> — write the pristine minted chain (NDJSON). Re-verify it yourself: npx @val-protocol/chain-verifier-cli --export=chain.ndjson
  • --html=<path> — write the self-verifying HTML report: a single file embedding the chain bytes and the full verifier source; opening it re-runs verification in your browser, offline.

Honesty notes

  • The demo key is generated in software, so the chain declares key_binding: 'unattested' — §5.2 forbids claiming device_bound without a verified WebAuthn attestation statement. The profile letter (B) grades the instrument; the binding is the orthogonal hardware axis, surfaced verbatim.
  • Act 4 is a feature, not a bug: no record system can self-certify capture completeness, and the demo says so instead of hiding it. See the spec's external anchor.

Apache-2.0 · spec + protocol: val-protocol/verifiable-authorization-lineage