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

inboxguard

v1.2.1

Published

Official TypeScript/JavaScript SDK for the InboxGuard email deliverability API (SPF, DKIM, DMARC, MTA-STS, TLS-RPT, BIMI, DNS blocklists).

Readme

InboxGuard — TypeScript / JavaScript SDK

Official SDK for the InboxGuard email deliverability API: scan SPF, DKIM, DMARC, MTA-STS, TLS-RPT, BIMI, and DNS blocklists for any domain.

Install

npm install inboxguard

Usage

import { InboxGuard } from "inboxguard";

// Anonymous scan (5/hour per IP) — no key required:
const ig = new InboxGuard();
const report = await ig.scanDomain("example.com");
console.log(report.score.total, report.score.grade); // e.g. 88 "B"
// Checks are TOP-LEVEL keys on the report (no `checks` wrapper); each has
// `healthy` and `issues: [{severity, message}]`.
for (const name of ["spf", "dkim", "dmarc", "ptr", "mtaSts", "tlsRpt", "bimi", "blocklist"] as const) {
  console.log(name, report[name]?.healthy, report[name]?.issues);
}

// Authenticated (full blocklist set, history, more domains):
const auth = new InboxGuard({ apiKey: "ig_live_xxxxxxxxxxxxxxxxxxxxxxxx" });
const { items, total } = await auth.listDomains(); // all domains; no pagination
console.log(total, items[0]?.latest_score, items[0]?.open_alerts);

// Resolve a domain name to its monitored row, then drill in:
const dom = await auth.findDomain("example.com");
if (dom) {
  const scans = await auth.listScans({ domainId: dom.id, limit: 20 });
  console.log(scans.items.map((s) => [s.run_at, s.score]), scans.nextCursor);

  const dmarc = await auth.listDmarcReports({ domainId: dom.id, days: 30 });
  console.log(dmarc.ruaInbox.address, dmarc.totals, dmarc.topSenders[0]);
}

// Open alerts (rows use `kind`, `severity`, `resolved_at`):
const alerts = await auth.listAlerts({ resolved: false, severity: "critical" });
console.log(alerts.total, alerts.items[0]?.kind);

Fix DNS, don't just report it

Scans now return remediations (the exact record to publish per failing check, with an autoFixable flag) and a dnssec block. For tracked domains with a connected registrar you can remediate end to end — preview, apply, re-scan:

const auth = new InboxGuard({ apiKey: "ig_live_xxxxxxxxxxxxxxxxxxxxxxxx" });

// 1. Scan and read the fix list.
const report = await auth.scanDomain("example.com");
console.log(report.remediations, report.dnssec.enabled);

// 2. Preview the DNS fix plan (read-only). Resolves the name → id for you.
const plan = await auth.getDnsFixPlan("example.com");
console.log(plan.connected, plan.ops, plan.manualReview);

// 3. Apply it (DESTRUCTIVE — needs an owner/admin `full` key). Pass the
//    connectionId + ops from the plan verbatim; the server re-validates them.
if (plan.connected && plan.connectionId && plan.ops.length) {
  const result = await auth.applyDnsFix({
    domain: "example.com",
    connectionId: plan.connectionId,
    ops: plan.ops,
  });
  console.log(result.results); // per-op outcome (not transactional)

  // 4. Re-scan to confirm.
  console.log((await auth.scanDomain("example.com")).score.total);
}

Authentication

Pass an API key (ig_live_… / ig_test_…) as apiKey. Mint one in the dashboard (Settings → API keys) or via the API. See https://inboxguard.io/auth.md.

Errors

Failed requests throw InboxGuardError with status, code, message, requestId, and (on 429) retryAfterSeconds.

import { InboxGuardError } from "inboxguard";
try {
  await ig.scanDomain("example.com");
} catch (e) {
  if (e instanceof InboxGuardError && e.code === "RATE_LIMIT") {
    console.log("retry after", e.retryAfterSeconds, "s");
  }
}

Reference

MIT © movaMedia, Inc.