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

@absolutejs/vulnerabilities-witness

v0.7.7

Published

Independent durable transparency witness with rollback, equivocation, key-rotation, and HTTP service primitives for AbsoluteJS vulnerability evidence.

Readme

@absolutejs/vulnerabilities-witness

The witness consumes @absolutejs/secrets@^0.9.2, whose Agency integration is host-owned and externalized. It never embeds a second Secrets or Agency runtime.

Independent transparency witnessing for AbsoluteJS vulnerability evidence. The package verifies the complete signed evidence-key transparency log before issuing an Ed25519 checkpoint receipt. Durable stores reject a lower log size as rollback and reject two different heads observed for the same authenticated subject and log size as equivocation.

The HTTP service has three routes:

  • POST /v1/checkpoints authenticates a bearer token, verifies the submitted transparency log, and returns { checkpoint, registry }.
  • GET /v1/keys publishes the witness key registry and cross-signed rotation chain.
  • GET /health returns service liveness.
import {
  EVIDENCE_WITNESS_REQUEST_CONTRACT,
  createEvidenceWitnessHttpHandler,
  createEvidenceWitnessService,
  createEvidenceWitnessSigningState,
} from "@absolutejs/vulnerabilities-witness";
import {
  createPostgresEvidenceWitnessStore,
  ensurePostgresEvidenceWitnessSchema,
} from "@absolutejs/vulnerabilities-witness/postgres";

const signingState = createEvidenceWitnessSigningState();
await ensurePostgresEvidenceWitnessSchema(sql);

const service = createEvidenceWitnessService({
  loadSigningState,
  origin: "https://witness.example",
  signingState,
  store: createPostgresEvidenceWitnessStore(sql),
  storeSigningState,
});

const fetch = createEvidenceWitnessHttpHandler({
  authenticate: async (token) => subjectsByToken.get(token) ?? null,
  service,
});

Bun.serve({ fetch, port: 3000 });

The signing identity contains a private key and belongs in a durable secret broker, not PostgreSQL or source control. service.rotate() stores the new secret state before activating it and publishes the cross-signed transition in the registry. service.maintain() performs the same rotation only after the configured maximum key age. In a multi-replica service, the supplied secret-store integration must serialize rotations.

Standalone service

The included absolute-vulnerability-witness executable uses PostgreSQL for observations and accepts these deployment secrets:

  • DATABASE_URL
  • EVIDENCE_WITNESS_ORIGIN
  • EVIDENCE_WITNESS_SIGNING_STATE_JSON
  • EVIDENCE_WITNESS_TOKENS_JSON, an object mapping stable subjects to bearer tokens
  • EVIDENCE_WITNESS_SECRETS_PATH, the durable encrypted secret file
  • EVIDENCE_WITNESS_SECRETS_PASSPHRASE, the master passphrase kept outside the file
  • EVIDENCE_WITNESS_KEY_MAX_AGE_MS, defaulting to 90 days
  • EVIDENCE_WITNESS_MAINTENANCE_INTERVAL_MS, defaulting to one hour
  • EVIDENCE_WITNESS_TLS_CERT_FILE and EVIDENCE_WITNESS_TLS_KEY_FILE, an optional pair enabling native TLS for deployments without a terminating proxy

The authenticated GET /v1/status endpoint reports the verified key registry and optional backup restoration evidence. Store EVIDENCE_WITNESS_BACKUP_VERIFICATION_JSON in the encrypted secret adapter after a drill has restored both the PostgreSQL artifact and encrypted signing state. The record must use the absolutejs.vulnerability-evidence-witness-backup-verification/v1 contract, contain SHA-256 digests for both artifacts, and record both restoration times. The single-host deployment includes runtime-only backup creation, isolated restore verification, and a bounded CLI that persists this record through the encrypted secret adapter. See deploy/single-host/README.md for the complete workflow and outer public-key encryption boundary.

  • PORT, defaulting to 3000

The two JSON values bootstrap the encrypted file only when their entries do not already exist. Later key rotations are written atomically to the encrypted file before the new identity becomes active.

Run independent instances under different administrative and infrastructure boundaries. Clients should pin each genesis witness key through an independent channel and require a quorum with verifyEvidenceWitnessQuorum from @absolutejs/vulnerabilities.

The repository publishes a deployable container to ghcr.io/absolutejs/vulnerabilities-witness. Deploy only the digest-pinned reference retained in the successful witness-image-<commit> workflow artifact. The workflow rejects high and critical vulnerabilities, retains an SPDX SBOM and Grype report, and immediately verifies the image's keyless signature, SLSA provenance, and SBOM attestation against its exact GitHub Actions identity. Never deploy the mutable main tag. See deploy/README.md for the independence requirements, bootstrap sequence, hosted-platform quorum configuration, and repeatable Admin drill workflow.