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

@berryn/release-candidate

v0.2.1

Published

Berryn Release Candidate Verification Engine — SBOM generation, release gates audit, and OIDC provenance attestation

Downloads

373

Readme

@berryn/release-candidate

CycloneDX 1.5 JSON SBOM generator, npm OIDC provenance verifier, and release gate auditor.

npm version License: MIT Node.js TypeScript


Overview

@berryn/release-candidate powers the release gating and supply chain security infrastructure for Berryn. It generates machine-verifiable Software Bill of Materials (SBOM) in the CycloneDX 1.5 JSON standard, parses and validates Sigstore/npm OIDC provenance attestations, and audits the 6 mandatory release candidate validation gates.


The 6 Mandatory Release Gates

flowchart TD
    G1[1. Formatting & Linting] --> G2[2. TypeScript Strict Typecheck]
    G2 --> G3[3. Vitest Unit & Integration]
    G3 --> G4[4. SAST & Dependency Audit]
    G4 --> G5[5. SBOM & Provenance Verification]
    G5 --> G6[6. ZIP Bomb & XXE Security Shield]
    G6 --> Candidate[0.1.0 Umbrella Release Candidate Certified]
  1. Formatting & Linting: Prettier format conformance and ESLint zero-warning checks.
  2. TypeScript Strict Typecheck: Complete tsc --build composite project build under "strict": true.
  3. Unit & Integration Suite: 100% passing Vitest test harness across all packages.
  4. SAST & Dependency Audit: Zero high/critical vulnerabilities in dependency tree.
  5. SBOM & Provenance: Spec-compliant CycloneDX 1.5 SBOM generated with verifiable build provenance.
  6. Security Shields: Runtime validation against decompression bombs and XML entities.

Installation

# Using pnpm
pnpm add @berryn/release-candidate

# Using npm
npm install @berryn/release-candidate

Usage Examples

1. Generating a CycloneDX 1.5 SBOM

import { generateSbomJson } from '@berryn/release-candidate';

const dependencies = {
  '@berryn/core': '^0.1.0',
  '@berryn/security': '^0.1.0',
  'fast-xml-parser': '^5.0.8',
  'fflate': '^0.8.2'
};

const sbom = generateSbomJson('berryn', '0.1.0', dependencies);

console.log(`Spec Version: ${sbom.specVersion}`); // '1.5'
console.log(`Components: ${sbom.components.length}`);
// Output valid CycloneDX 1.5 JSON

2. Auditing Release Gates

import { auditReleaseGates } from '@berryn/release-candidate';

const { results, overallPassed, diagnostics } = auditReleaseGates();

console.log(`All Gates Passed: ${overallPassed}`);
for (const gate of results) {
  console.log(`[${gate.passed ? 'PASS' : 'FAIL'}] ${gate.gateName} (Findings: ${gate.criticalFindings})`);
}

3. Verifying npm / GitHub OIDC Provenance

import { verifyProvenanceAttestation } from '@berryn/release-candidate';

const rawAttestation = JSON.stringify({
  builderId: 'https://github.com/actions/runner',
  buildType: 'https://github.com/npm/provenance/v1',
  invocation: { configSource: { uri: 'git+https://github.com/Grevix/berryn', digest: {} } }
});

const { statement, diagnostics } = verifyProvenanceAttestation(rawAttestation);
console.log(`Provenance Verified: ${statement.verified}`);
console.log(`Builder ID: ${statement.builderId}`);

Exported Symbols

| Symbol | Category | Description | |---|---|---| | generateSbomJson | Function | Produces CycloneDX 1.5 JSON object from package name and dependencies. | | auditReleaseGates | Function | Validates that all 6 release requirements are met before publishing. | | verifyProvenanceAttestation | Function | Parses and verifies build attestation statements. | | CycloneDxSbom | Interface | Schema for CycloneDX 1.5 JSON SBOM. | | SbomComponent | Interface | Component definition with Package URL (purl) and license metadata. | | ReleaseGateCheckResult | Interface | Result schema for individual release gate audits. | | ProvenanceStatement | Interface | Verified build invocation and signer identity record. |


Links