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

@govp/verifier

v0.1.10

Published

Environment-neutral JavaScript verifier for GOVP records, evidence and publication proofs

Readme

@govp/verifier

Environment-neutral JavaScript verification for the open GOVP protocol. It independently implements GOVP-1 parsing, signing bytes, Ed25519 verification, GOVP-ID derivation, asset binding, canonical URL checks and GOVP-STATUS-1. It also verifies GOVP-EXT-1 signed evidence envelopes with the same byte-exact canonical input as the Python reference implementation. It also rebuilds and verifies org.govp.publication-batch/1 Merkle inclusion proofs locally.

The package works in modern browsers and Node.js 20 or newer. It does not send records, assets or results to GOVP.

Install

Install the public package from the npm registry:

npm install @govp/verifier

For reproducible audits, the matching release tarball and SHA256SUMS are also published with the signed GitHub release:

npm install https://github.com/govp-protocol/govp-js/releases/download/v0.1.10/govp-verifier-0.1.10.tgz

Verify a record

import { verifyText } from '@govp/verifier';

const result = await verifyText(recordText, {
  assetBytes,
  fetchedUrl: 'https://issuer.example/.well-known/govp/record.govp',
});
if (!result.ok) throw new Error(JSON.stringify(result.checks));

Every applicable check must pass. A valid signature proves that the matching private key signed the record; it does not certify the publisher or the truth of a statement.

Evaluate live status

import { evaluateStatus, parseRecord, parseStatus } from '@govp/verifier';

const result = await evaluateStatus(
  parseRecord(recordText),
  parseStatus(statusText),
  {
    recordFetchedUrl: 'https://issuer.example/.well-known/govp.txt',
    fetchedUrl: 'https://issuer.example/.well-known/govp/revoked.json',
  },
);
if (result.currentlyTrusted !== true) throw new Error(result.reasons.join(', '));

Live trust additionally requires generated_at within the default 300-second maximum age and 60-second future clock-skew allowance. Pass maxAgeSeconds, maxFutureSkewSeconds and an optional now explicitly for a stricter or reproducible policy. Offline evaluation can return snapshotValid: true, but always returns currentlyTrusted: null because a saved file cannot prove liveness. snapshotTrusted is a deprecated 0.1.x alias for snapshotValid. Network retrieval remains the caller's responsibility so applications can enforce their own TLS, redirect and resource policies.

Verify an evidence envelope

import { verifyEnvelope } from '@govp/verifier';

const result = await verifyEnvelope(envelope, { subjectBytes });
if (!result.ok) throw new Error(JSON.stringify(result.checks));

This operation is local. It verifies the signature, deterministic signing input, subject digest, declared origin and registered reference shapes; it does not fetch or independently validate external attestations.

Verify a static publication proof

import { verifyEnvelope, verifyPublicationProof } from '@govp/verifier';

if (!(await verifyEnvelope(envelope)).ok) throw new Error('invalid envelope');
if (!verifyPublicationProof(envelope, proof, batch.payload.root)) {
  throw new Error('event is not included in the signed batch');
}

The verifier binds the signed event descriptor to its shard, reconstructs both RFC 6962 paths and compares the exact batch root. It performs no network call.

Conformance

The npm package contains the exact public vectors under exported paths:

import vectors from '@govp/verifier/conformance/vectors.json' with { type: 'json' };

Run the implementation suite with npm test; the tests are included in the published package, so this command also works after a registry install. The suite tests every GOVP-1 vector, GOVP-STATUS-1, the shared GOVP-EXT-1 corpus and the exact Python publication roots and proofs for 7 and 10,000 events.

Specification and documentation: govp.io
Python reference implementation: govp
License: Apache-2.0. The GOVP and Gemacode names remain subject to the trademark policy.