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

svcb-inspect

v0.1.0

Published

Resolve and decode DNS HTTPS/SVCB records (RFC 9460), including full ECHConfigList decoding. Zero dependencies.

Readme

svcb-inspect

npm npm downloads CI license

Resolve and decode DNS HTTPS and SVCB resource records (RFC 9460), including a full ECHConfigList decode (RFC 9849 / Encrypted Client Hello). Zero dependencies, runs over DNS-over-HTTPS, nothing is stored or sent anywhere except your chosen resolver.

Unlike dig HTTPS example.com, which leaves the ech= parameter as an opaque base64 blob, svcb-inspect decodes the ECHConfigList into readable fields (version, KEM, cipher suites, public_name) and prints every SvcParam — or emits machine-readable JSON.

Usage

No install needed:

npx svcb-inspect cloudflare-ech.com
npx svcb-inspect example.com --svcb
npx svcb-inspect cloudflare.com --json
npx svcb-inspect --decode-ech "AEX+DQBBbAAg..."   # decode a base64 ECHConfigList offline

Example output:

cloudflare-ech.com  [HTTPS]  via https://cloudflare-dns.com/dns-query
  TTL: 300s
Record #1: priority 1 (service), target .
  alpn: h3, h2
  ipv4hint: 104.18.10.118, 104.18.11.118
  ech:
    ECHConfig #1 — ECH (0xfe0d, RFC 9849)
      config_id: 3
      kem: DHKEM(X25519, HKDF-SHA256)
      public_key: 32 bytes
      cipher_suites: HKDF-SHA256/AES-128-GCM
      public_name: cloudflare-ech.com
  ipv6hint: 2606:4700::6812:a76, 2606:4700::6812:b76

Options

| Option | Description | |---|---| | --type <https\|svcb\|both> | Record type to query (default: https) | | --svcb | Shorthand for --type svcb | | --resolver <name\|url> | DoH resolver: cloudflare (default), google, or an https://…/dns-query URL | | --json | Machine-readable JSON output | | --ech-only | Print only the decoded ECH block | | --timeout <ms> | Query timeout (default: 5000) | | --no-color | Disable ANSI color (also honors NO_COLOR) | | -h, --help | Show help | | -v, --version | Show version |

Exit codes: 0 a record was found, 1 no such record / NXDOMAIN, 2 usage or runtime error.

Library

import { lookup, parseSvcbRdata, parseECHConfigList } from "svcb-inspect";

const result = await lookup("cloudflare-ech.com", "HTTPS");
// result.status === "ok" | "nodata" | "nxdomain"
// result.records[].params  — decoded SvcParams (alpn, port, ipv4hint, ech, …)

parseSvcbRdata(rdata) and parseECHConfigList(bytesOrBase64) are pure functions you can use on raw wire data without any DNS lookup.

Prior art

There are excellent lower-level tools that overlap in scope: dig/kdig, openssl ech, goech, c2FmZQ/ech, and the miekg/dns library. They are mostly Go/C libraries, decode from a base64 string you already hold, or build full ECH clients. svcb-inspect fills a different niche: a friendly, zero-install npm CLI that goes from a bare domain to a fully-decoded HTTPS/SVCB + ECH report (or JSON). Generating ECH configs, opening ECH connections, and DNSSEC validation are intentionally out of scope.

Made by packet.guru

Built alongside packet.guru — free, privacy-first network forensics. Try the hosted ECH checker at packet.guru/web/ech-check and read the deep-dive on Encrypted Client Hello.

Contributing

Issues and PRs welcome. Run npm test and npm run build before submitting.

License

MIT