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

emailhealth

v1.0.1

Published

Point emailhealth at a domain, get back a scored report on SPF, DKIM, DMARC, MTA-STS, TLS-RPT, and MX health

Readme

emailhealth

A terminal tool that checks a domain's email deliverability health. Point it at an email address and it looks up the domain's DNS records — MX, SPF, DKIM, DMARC, and more — and renders an interactive report in your terminal.

Features

emailhealth runs the following checks against the domain of the email address you give it:

  • NS Records — confirms the domain resolves and has nameservers
  • IP Address (A record) — resolves the domain's A record
  • MX Records — fetches and sorts mail exchanger records, flags null MX records
  • TXT Records — fetches all TXT records for the domain
  • SPF Records — checks _spf.<domain> and falls back to scanning TXT records for a v=spf1 entry
  • DMARC Records — checks _dmarc.<domain>
  • DKIM Records — checks _domainkey.<domain> plus a set of common selectors (default, google, k1, s1, s2, selector1, selector2), and flags revoked/empty keys (p=) or RSA keys under 1024 bits

Each check is reported as healthy, unhealthy, or unknown, and an overall health score (percentage of healthy checks) is shown in the header. Results are displayed as an interactive, collapsible accordion in the terminal, with a button to copy any individual report to your clipboard.

Requirements

Installation

Global install from NPM

npm install -g emailhealth

From source

git clone https://github.com/charlesinwald/emailhealth.git
cd emailhealth
yarn install
yarn build

Usage

From a local clone, run:

yarn start [email protected]

This compiles the TypeScript sources and runs the CLI against the domain of the given email address (example.com in this case — the local part of the address isn't used for lookups).

Inside the report view:

| Key | Action | | -------------- | ---------------- | | Mouse | Full interaction | | Up Arrow | Scroll up | | Down Arrow | Scroll down | | Enter | Open a section | | q | Quit |

Development

yarn build   # compile TypeScript to dist/
yarn test    # compile and run the test suite (node --test)

Source lives in src/:

  • src/index.ts — CLI entry point and terminal UI (built with @rezi-ui)
  • src/checkEmailHealth.ts — DNS lookups and health check logic
  • src/utils.ts — CLI argument parsing, formatting, and helper functions
  • src/types.ts — shared types

Tech stack

License

ISC