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

@namefi/dnssec-audit

v2.1.1

Published

Pure-TS DNSSEC chain-of-trust exporter and offline validator (NSEC + NSEC3). Works in Node and the browser.

Readme

@namefi/dnssec-audit

CI npm

A pure-TypeScript library (and pair of CLIs) that (1) exports the full DNSSEC chain of trust for a domain to a JSONL file, and (2) validates it cryptographically offline from that JSONL alone — no network, no dig, no native dependencies.

Same modules run in Node and in the browser (only Uint8Array, fetch, and crypto.subtle). The @namefi/dnssec.tools web app and Chrome extension in this monorepo are both built on top of this package.

Install

npm install @namefi/dnssec-audit

Requires Node 22.6+ (for node --experimental-strip-types when running the TS sources directly) or any modern browser when consumed via a bundler.

Library usage

import { DoHResolver, walk } from "@namefi/dnssec-audit";

const resolver = new DoHResolver("https://cloudflare-dns.com/dns-query");
const result = await walk("prettysafe.xyz.", /* A */ 1, resolver);

console.log(result.verdict); // "secure-positive" | "secure-nodata" | "secure-nxdomain" | "insecure" | "bogus"
for (const step of result.steps) {
  console.log(step.kind, step.ok, step.detail);
}

Individual sub-paths are also available:

import { walk } from "@namefi/dnssec-audit/walker";
import { DoHResolver, JSONLResolver, RecordingResolver } from "@namefi/dnssec-audit/resolver";
import { ROOT_TRUST_ANCHORS } from "@namefi/dnssec-audit/trust-anchor";

CLIs

Installing with -g (or via npx) exposes two binaries:

Export

dnssec-export \
     --domain prettysafe.xyz \
     [--type A] \
     [--resolver https://cloudflare-dns.com/dns-query] \
     [--out prettysafe.xyz-dnssec.jsonl]

Writes one JSON object per line:

  • 1 header (tool version, timestamp, walker verdict/steps)
  • N trust-anchor lines (IANA root DS records, informational)
  • M response lines (one per DoH query, with base64 wire-format response)

Validate

dnssec-validate \
     --domain prettysafe.xyz \
     [--type A] \
     [--at 2026-04-21T00:00:00Z] \
     [--in prettysafe.xyz-dnssec.jsonl] \
     [--verbose]

Exits 0 on secure-positive | secure-nodata | secure-nxdomain, non-zero otherwise (including insecure and bogus).

Verdicts

| Verdict | Meaning | |-------------------|------------------------------------------------------------------| | secure-positive | Full chain root → ... → qname; answer RRset signature verified. | | secure-nodata | Chain verified; NSEC/NSEC3 proves the type does not exist. | | secure-nxdomain | Chain verified; NSEC/NSEC3 proves the name does not exist. | | insecure | Proof of no DS at a delegation point (incl. NSEC3 opt-out). | | bogus | Required signature, digest, or denial proof failed verification. |

Supported algorithms

| DNSKEY algorithm | Num | Status | |---------------------------------|-----------|-------------------------------| | RSA/SHA-256 | 8 | supported | | RSA/SHA-512 | 10 | supported | | ECDSA Curve P-256 | 13 | supported | | ECDSA Curve P-384 | 14 | supported | | Ed25519 | 15 | supported | | RSA/SHA-1, RSA/SHA-1-NSEC3, DSA | 5 / 7 / 3 | not implemented (deprecated) |

DS digest types: SHA-1 (1), SHA-256 (2), SHA-384 (4).

License

MIT © 2026 D3Serve Labs Inc. dba Namefi (https://namefi.io)