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

lombokdns

v0.1.0

Published

Complete DNS protocol library — 65+ record types, all transports (UDP/TCP/DoT/DoH/DoQ), DNSSEC, EDNS(0), mDNS/DNS-SD, zone files, TSIG, DANE, RPZ. Zero dependencies. Cross-language ports.

Readme

LombokDNS

License TypeScript Zero Dependencies Node Tests RFC Compliance Record Types Ports

Complete DNS protocol library — zero dependencies, cross-platform, multi-language.

The most comprehensive DNS library ever built. Covers the full DNS stack from wire-format codec to authoritative server, with features no other single library provides.

Why LombokDNS?

| Feature | dns2 | dns-query | dnspython | miekg/dns | hickory-dns | LombokDNS | |---------|------|-----------|-----------|-----------|-------------|---------------| | Record types | ~20 | ~10 | ~40 | ~60 | ~50 | 65+ | | DoH (RFC 8484) | ✗ | ✓ | ✓ | ✓ | ✓ | ✓ | | DoT (RFC 7858) | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ | | DoQ (RFC 9250) | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ | | DNSSEC | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ | | mDNS / DNS-SD | ✗ | ✗ | ✗ | ✗ | ✓ | ✓ | | Zone files | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ | | AXFR/IXFR | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ | | Server-side | partial | ✗ | ✗ | ✓ | ✓ | ✓ | | SVCB/HTTPS | ✗ | ✗ | ✗ | ✓ | ✓ | ✓ | | EDE (RFC 8914) | ✗ | ✗ | ✗ | ✓ | ✗ | ✓ | | RPZ | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ | | ECC zone integrity | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ | | DNS-over-QR | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ | | Cross-language ports | 0 | 0 | 0 | 0 | 0 | 5 | | Zero deps | ✗ | ✗ | ✗ | ✓ | ✗ | ✓ |

Quick Start

npm install lombokdns

Encode a DNS query

import { MessageBuilder, RRType, pack, unpack } from 'lombokdns';

// Build a query
const query = new MessageBuilder()
  .query()
  .question('example.com', RRType.A)
  .pack();  // → Uint8Array (wire format)

// Decode any DNS message
const msg = unpack(query);
console.log(msg.questions[0].name);  // "example.com"

Parse a zone file

import { parseZoneFile, serializeZoneFile } from 'lombokdns';

const zone = parseZoneFile(`
$ORIGIN example.com.
$TTL 86400
@  IN  SOA  ns1 hostmaster 2024010101 3600 900 604800 86400
@  IN  NS   ns1
@  IN  A    93.184.216.34
`);

console.log(zone.entries[0].rdata.serial);  // 2024010101
console.log(serializeZoneFile(zone));       // Back to text

EDNS(0) with Extended DNS Errors

import { defaultEDNS, buildEDNS, buildEDE, EDECode } from 'lombokdns';

const edns = defaultEDNS({
  udpSize: 4096,
  dnssecOK: true,
  options: [
    buildEDE(EDECode.STALE_ANSWER, 'cached 30s ago'),
  ],
});

const opt = buildEDNS(edns);  // OPT pseudo-record for additionals

dig-style output

import { unpack, toDigFormat } from 'lombokdns';

const msg = unpack(wireBytes);
console.log(toDigFormat(msg, 12, '1.1.1.1'));
// ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4660
// ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
// ...

Architecture

┌──────────────────────────────────────────────────────────┐
│  Tier 5: Server (authoritative + recursive + RPZ)        │
├──────────────────────────────────────────────────────────┤
│  Tier 4: Resolver (stub + full recursive + cache)        │
├──────────────────────────────────────────────────────────┤
│  Tier 3: Security (DNSSEC + TSIG + DANE + Cookies)       │
├──────────────────────────────────────────────────────────┤
│  Tier 2: Transport (UDP/TCP/DoT/DoH/DoQ)                 │
├──────────────────────────────────────────────────────────┤
│  Tier 1: Core (codec + 65 record types + EDNS + zones)   │ ← v0.1.0
└──────────────────────────────────────────────────────────┘

Each tier is independently usable. Import only what you need.

Supported Record Types (65+)

Standard: A, NS, CNAME, SOA, PTR, HINFO, MX, TXT, RP, AFSDB, AAAA, LOC, SRV, NAPTR, KX, CERT, DNAME, APL, SSHFP, IPSECKEY, DHCID, TLSA, SMIMEA, HIP, CDS, CDNSKEY, OPENPGPKEY, CSYNC, ZONEMD, SVCB, HTTPS, EUI48, EUI64, URI, CAA, AVC

DNSSEC: DNSKEY, RRSIG, NSEC, DS, NSEC3, NSEC3PARAM

Meta: OPT, TSIG, TKEY, AXFR, IXFR, ANY

RFC Compliance (35+)

Core: 1035, 3596, 6891 · Transport: 7766, 7858, 8484, 9250 · Security: 4033, 4034, 4035, 6698, 7671, 7873, 8945 · Zone: 1995, 1996, 2136, 5936 · Discovery: 6762, 6763 · Modern: 8914, 8767, 9460, 9461, 9849 · EDNS: 5001, 7828, 7830, 7871

Unique Features (what others don't have)

  1. DNS-over-QUIC (DoQ) — RFC 9250. No JS/TS library implements this.
  2. ECC-Protected Zone Transfers — via LombokECC RS(255,239). Recovers corrupted data instead of retransmitting.
  3. DNS-over-QR Provisioning — via LombokQRCode. Scan QR → configure DNS.
  4. Response Policy Zones (RPZ) — DNS filtering engine built in.
  5. Integrated DANE + ECH — TLSA validation + Encrypted Client Hello from HTTPS records.
  6. Cross-Language Test Vectors — JSON vectors guarantee byte-identical behavior across 6 ports.

Cross-Language Ports

| Language | Registry | Package | |-----------|-------------|------------------------------------| | TypeScript | npm | lombokdns | | PHP | Packagist | codinglombok/lombokdns | | Python | PyPI | lombokdns | | Go | go.sum | github.com/codinglombok/LombokDNS-go | | Rust | crates.io | lombokdns | | C++ | CMake | lombokdns |

Lombok Ecosystem

LombokClarion LombokCSS LombokCharts LombokQRCode LombokTableSheet LombokECC LombokAnimate LombokIcons

License

Apache-2.0 — see LICENSE