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

agentrail-core

v0.2.0

Published

What every Agentrail component shares: the event the collector takes, markers, the keyed hash, W3C trace context, and the client that sends events.

Readme

agentrail-core

What every Agentrail component shares, wherever the Fetch API and WebCrypto run (Cloudflare Workers, Vercel's edge, Node, browsers): the event the collector takes, as types; markers, minted and read (parseMarker) as the collector's engine reads them; the keyed hash a workspace hashes addresses and principals with, and its key's id; W3C trace context; the session cookie, which ends after 30 minutes idle and a day at most, its id a UUIDv7 that carries its start; and the collector client. Its send(event, deadline) resolves once the call carrying the event has ended: one call is under way at a time, and what is sent meanwhile goes in the next, together. It retries what the network or the collector failed after a random wait, never sooner than a Retry-After, ends every call by its deadline, and tells onError of every call given up. And the Web Bot Auth check (createSignatureVerifier): a request's Signature-Agent, Signature-Input and Signature checked against the keys the named agent publishes at its /.well-known/http-message-signatures-directory, read once per max-age and only from the known signers' hosts (KNOWN_SIGNERS) and the ones a site names, since a caller chooses the URL; Ed25519, RSA-PSS-SHA512 and ECDSA-P256; the outcome is verified, invalid (a forged or stale signature, or a key the directory does not hold), directory_unreachable or unsupported, so a directory that is down is never read as a forgery and a signature it does not read is never called one.

agentrail-edge and agentrail-browser are built on it; a component of your own can be too.

npm install agentrail-core

Before 1.0, a minor version (0.1 to 0.2) may change what the package offers.

Authenticated trace handoff

signTraceHandoff(input, hashKey) and verifyTraceHandoff(token, expected) share a versioned, domain-separated HMAC-SHA256 format. Verification binds the trace parent, key ID, method and exact origin-form target, and refuses future or older-than-60-second tokens. traceHandoffTarget(url) retains encoded path and query bytes, including a trailing empty query, and excludes the fragment. The compatibility contract contains an independently calculated golden token.

readTraceHandoff returns an unverified candidate for synchronous OTel propagators. Its signature must verify over the returned bytes before its context becomes trusted. The async verifier performs that check with WebCrypto; agentrail-node performs it synchronously before OTel chooses a parent.

Licence

Apache-2.0.