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

@capitalthought/marc-zone-check

v0.1.1

Published

Lightning-fast domain-registration check via ICANN CZDS zone files. Used by the /domain-search Claude Code skill as Tier 1.5 between DoH NS scans and WHOIS+RDAP.

Readme

@capitalthought/marc-zone-check

Lightning-fast domain-registration check via ICANN CZDS zone files.

Powers the Tier 1.5 step in Josh's /domain-search Claude Code skill — between Cloudflare DoH NS scanning (Tier 1) and per-domain WHOIS+RDAP (Tier 2). For TLDs you have CZDS approval for, the answer is authoritative (every registered domain appears in the registry's zone file, even those without DNS configured — solves the "registered without nameservers" false-positive class that DNS-only checks miss).

Install

npm i -g @capitalthought/marc-zone-check
# or one-shot:
npx -y @capitalthought/marc-zone-check --domain acme.app

Get CZDS access

CZDS is ICANN's Centralized Zone Data Service. You need an approved account for each TLD whose zone files you want to read. Sign up at https://czds.icann.org/, request access per-TLD (most approvals take 1-30 days). Once approved, you have:

  • Username + password — your ICANN account creds
  • 24h JWT — minted via POST https://account-api.icann.org/api/authenticate

CLI

# Auth via env: pre-minted JWT
export CZDS_JWT='eyJraWQi...'
marc-zone-check --domain acme.app --domain multipov.dev

# Auth via env: username + password (mints fresh JWT per run)
export CZDS_USERNAME='[email protected]'
export CZDS_PASSWORD='...'
marc-zone-check --domains "acme.app,multipov.dev,foo.xyz"

# Bare positional args also work
marc-zone-check acme.app multipov.dev

Output (JSON array on stdout):

[
  {"fqdn":"acme.app","tld":"app","registered":true,"source":"czds_zone"},
  {"fqdn":"multipov.dev","tld":"dev","registered":false,"source":"czds_zone"},
  {"fqdn":"foo.com","tld":"com","registered":null,"source":"no_coverage_too_big","compressed_bytes":26000000000}
]

-v adds per-step progress to stderr.

Library

import {
  ZoneChecker,
  createCzdsHttpFetcher,
  mintCzdsJwt,
} from '@capitalthought/marc-zone-check';

const jwt = await mintCzdsJwt({ username: '...', password: '...' });
const fetcher = createCzdsHttpFetcher({ jwt });
const checker = new ZoneChecker({ fetcher });

const result = await checker.check('acme.app');
// → { fqdn: 'acme.app', tld: 'app', registered: true, source: 'czds_zone' }

source field

| Value | Meaning | |---|---| | czds_zone | Authoritative — TLD is in CZDS coverage. registered: true|false. | | no_coverage_no_approval | You are not approved for this TLD (or it's not in CZDS at all). Fall through to WHOIS. | | no_coverage_too_big | TLD zone exceeds the in-memory cap (default 200 MB compressed — covers most gTLDs but excludes .com, .net, .org, .info). For these, use checker.checkFiltered() which streams without caching, OR fall through to WHOIS. compressed_bytes is populated. | | no_coverage_invalid_fqdn | Input has no dot or is malformed. | | fetch_failed | HTTP / parse / network error. error field is populated. |

Memory model

Two parse strategies live alongside each other:

  • Full-Set caching (checker.check()) — stream-parse the zone file once, cache the full Set<string> of registered SLDs in memory, then O(1) lookups for the lifetime of the process. Used by default. Capped at 200 MB compressed input (configurable via createCzdsHttpFetcher({ maxCompressedBytes })) — over that, no_coverage_too_big.

  • Filtered streaming (checker.checkFiltered(fqdns)) — stream-parse the zone, only retain true/false answers for the specific FQDNs you asked about. Memory is O(N candidates), not O(M registered SLDs). Use this for .com/.net/.org where the full-Set variant would OOM. NB: every call streams fresh; no cache.

Most use cases want the default. Mega-TLDs need the filtered path.

Live test (.pro is ~33 MB compressed)

$ time marc-zone-check -v --domain marc.pro --domain zzznever12345.pro
[jwt] using $CZDS_JWT
[check] marc.pro              → TAKEN_ZONE
[check] zzznever12345.pro     → UNREG_ZONE
[{"fqdn":"marc.pro","tld":"pro","registered":true,"source":"czds_zone"},
 {"fqdn":"zzznever12345.pro","tld":"pro","registered":false,"source":"czds_zone"}]
real    0m6.0s

vs. ~20s for the equivalent WHOIS+RDAP fan-out.

License

MIT. (c) Capital Thought, LLC.