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

@vbel/core

v0.1.0

Published

Frozen event envelope, RFC 8785 canonicalization, hashing and ed25519 signing. No I/O.

Downloads

192

Readme

@vbel/core

The record format and the cryptography under it. No I/O, no network, and it imports nothing else in VBEL.

pnpm add @vbel/core

What it does

  • Envelope. The signed event format, frozen at v0.1 (envelope.ts).
  • Canonical JSON and hashing. RFC 8785, so two implementations hash the same object to the same bytes (canonicalize.ts, hash.ts).
  • Signing and verification. ed25519 over the event hash, counter-signing, and verification that reports what failed rather than only that something did (sign.ts).
  • Signers. A KeyPair you hold, or any Signer such as a wallet that only exposes signMessage (signer.ts).
  • Chains. Linking, ordering and lifecycle: corrections supersede, revocations follow the claim they withdraw, and nothing is deleted (lifecycle.ts).
  • Identity. Registration and attestation primitives, with the assurance of a name kept apart from the validity of a signature.
  • Anchoring authorisation. A proof that the requester holds a key that signed the record (anchor-auth.ts).

Sign one event and check it

import { generateKeyPair, hashPayload, signEnvelope, verifyEnvelopeSignature, type Envelope } from "@vbel/core";

const keys = await generateKeyPair();
const payload = { orderRef: "PO-1001", quantity: 500 };

const envelope: Envelope = {
  schema: "urn:example:event:order-note:v1",
  eventId: crypto.randomUUID(),
  subjectId: "urn:example:order:PO-1001",
  issuerId: "urn:example:org:supplier",
  issuedAt: new Date().toISOString(),
  previousEventHash: null, // the eventHash of the record before this one, or null for the first
  payloadHash: hashPayload(payload),
  status: "ACTIVE",
  supersedes: null,
  supersedeReason: null,
  revokes: null,
  revokeReason: null,
  policyId: "urn:example:policy:v1",
  privacy: "off-chain",
  nonce: crypto.randomUUID(),
};

const event = await signEnvelope({ envelope, signer: keys, signerId: envelope.issuerId });
await verifyEnvelopeSignature(event); // true

The envelope commits to the payload by hash and never contains it, which is what lets a payload be withheld later without breaking the chain. To carry records between parties, see @vbel/records.

Part of VBEL

Signed, hash-chained records that anyone can check for changes, with optional anchoring on a public chain. The repository readme says what that does and does not prove.

Apache-2.0.