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

burnledger

v0.2.0

Published

TypeScript SDK for the BurnLedger API — cryptographic deletion certificates

Downloads

16

Readme

BurnLedger TypeScript SDK

TypeScript/JavaScript client for the BurnLedger API — cryptographic deletion certificates for regulatory compliance.

Install

npm install burnledger

Requirements: Node.js 18+

Quick Start

import { BurnLedger } from "burnledger";

const dp = new BurnLedger({ apiKey: "dp_..." });

// 1. Attest — snapshot systems before deletion
const att = await dp.attest("[email protected]", {
  systemIds: ["sys_abc", "sys_def"],
});

// 2. Delete data (your code, your tools)

// 3. Verify — confirm deletion and get certificate
const result = await dp.verify(att.id, "[email protected]", { timeout: 60 });

// 4. Download certificate PDF
await dp.savePdf(result.certificate!.id, "./deletion-cert.pdf");

Browser Support

For browser environments (verification only, no API client):

import { verifyCertificate, publicKeyFromHex } from "burnledger/browser";

Uses WebCrypto (crypto.subtle) instead of node:crypto. Requires Chrome 113+, Firefox 128+, or Safari 17+.

Offline Verification

Verify certificates without network access using Ed25519 signatures:

import {
  verifyCertificate,
  verifyTransparency,
  publicKeyFromHex,
} from "burnledger";

const key = await publicKeyFromHex("abcdef...", { revoked: false });
const keys = new Map([[key.keyId, key]]);

const certResult = await verifyCertificate(certificate, keys);
// "VALID" | "INVALID"

const logResult = await verifyTransparency(certificate, keys);
// "INCLUDED" | "INVALID" | "NOT_AVAILABLE"

Webhook Verification

Verify incoming webhook signatures (HMAC-SHA256):

import { verifyWebhookSignature } from "burnledger";

const valid = verifyWebhookSignature(
  webhookSecret,       // from dp.registerWebhook()
  request.body,        // raw request body
  request.headers["x-burnledger-signature"],
);

API Reference

Client

new BurnLedger({
  apiKey: string,
  baseUrl?: string,    // default: "https://api.burnledger.com"
  timeout?: number,    // seconds, default: 30
  maxRetries?: number, // default: 2
})

Systems

| Method | Returns | |--------|---------| | registerSystem(opts) | Promise<System> | | getSystem(id) | Promise<System> | | listSystems(opts?) | Paginator<System> | | deregisterSystem(id) | Promise<void> | | healthCheck(id) | Promise<System> |

Attestations

| Method | Returns | |--------|---------| | attest(subject, opts?) | Promise<Attestation> | | getAttestation(id) | Promise<Attestation> | | waitFor(id, opts?) | Promise<Attestation> | | verify(id, subject, opts?) | Promise<VerifyResult> |

Certificates

| Method | Returns | |--------|---------| | getCertificate(id) | Promise<CertificateResponse> | | listCertificates(opts?) | Paginator<CertificateResponse> | | downloadPdf(id) | Promise<Uint8Array> | | savePdf(id, path) | Promise<void> | | getRevocationStatus(id) | Promise<RevocationStatus> | | revokeCertificate(id, opts) | Promise<CertificateResponse> |

Webhooks

| Method | Returns | |--------|---------| | registerWebhook(opts) | Promise<Webhook> | | listWebhooks(opts?) | Paginator<Webhook> | | deleteWebhook(id) | Promise<void> |

Transparency Log

These methods do not require authentication.

| Method | Returns | |--------|---------| | getLogHead() | Promise<SignedTreeHead> | | getLogEntry(index) | Promise<LogEntry> | | getLogEntries(opts) | Promise<LogEntry[]> | | getInclusionProof(opts) | Promise<InclusionProof> | | getConsistencyProof(opts) | Promise<ConsistencyProof> |

Pagination

All list* methods return a Paginator that auto-fetches pages:

for await (const cert of dp.listCertificates()) {
  console.log(cert.id);
}

Dual ESM/CJS

The package ships both ESM and CommonJS builds:

// ESM
import { BurnLedger } from "burnledger";

// CommonJS
const { BurnLedger } = require("burnledger");

License

MIT