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

@xdkoc/email-auth-checker

v0.1.0

Published

CLI tool to check SPF, DMARC and MX records for any domain

Downloads

81

Readme

email-auth-checker

CLI tool to check SPF, DMARC and MX records for any domain — instantly see your email security score and what to fix.

npx @xdkoc/email-auth-checker google.com
Email Auth Report: google.com
──────────────────────────────────────────────────
✓  SPF     v=spf1 include:_spf.google.com ~all (soft)
✓  DMARC   v=DMARC1; p=reject; rua=mailto:... (p=reject)
✓  MX      5 record(s) — aspmx.l.google.com, ...
──────────────────────────────────────────────────
Score:  9/10   Grade: B

Recommendations:
  → Upgrade SPF from ~all (softfail) to -all (fail) for stricter enforcement

Why

Email authentication is critical for deliverability and security — but checking SPF, DMARC and MX manually means visiting multiple tools or digging through DNS records yourself. This CLI does it all in one command.


Install

# Run without installing
npx @xdkoc/email-auth-checker example.com

# Or install globally
npm install -g @xdkoc/email-auth-checker
email-auth-checker example.com

What it checks

SPF (Sender Policy Framework)

Verifies which mail servers are allowed to send email on behalf of your domain.

  • Detects missing SPF records
  • Flags +all (allows anyone to send — dangerous)
  • Distinguishes ~all (softfail) from -all (strict fail)
  • Warns about multiple SPF records (only one is allowed)

DMARC (Domain-based Message Authentication)

Tells receiving mail servers what to do with emails that fail SPF/DKIM.

  • Detects missing DMARC records
  • Reports policy: none (monitoring only) / quarantine / reject
  • Flags partial enforcement (pct < 100)
  • Recommends upgrading from p=none to p=reject

MX (Mail Exchange)

Checks that your domain can actually receive email.

  • Detects missing MX records
  • Lists all records sorted by priority
  • Warns when only one MX record exists (no fallback)

Scoring

| Points | What it covers | |---|---| | 0–3 | SPF: present + policy strictness | | 0–4 | DMARC: present + policy level | | 0–3 | MX: present + redundancy |

| Score | Grade | |---|---| | 9–10 | A | | 7–8 | B | | 5–6 | C | | 3–4 | D | | 0–2 | F |


Zero dependencies

Uses Node.js built-in dns/promises — no third-party packages at runtime.


License

MIT