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

@stackverify/email-check

v1.0.0

Published

High-performance email validation library to detect disposable emails, verify mail capability, and estimate inbox delivery likelihood.

Downloads

61

Readme

@stackverify/email-check

High-performance email validation library to detect disposable emails, verify mail capability, and estimate inbox delivery likelihood.

Maintained by Morgan Miller / StackVerify. Works in Node.js, TypeScript, ESM, and JavaScript environments.


Features

  • Syntax validation – ensures email is properly formatted
  • Disposable email detection – identifies temporary or throwaway emails
  • Domain & MX check – ensures the domain can receive emails (Node.js only)
  • Inbox likelihood scoring – estimates likelihood of reaching inbox
  • Fast lookups – supports large disposable domain lists efficiently
  • Browser + Node safe – auto-detects environment

Installation

npm install @stackverify/email-check

or

yarn add @stackverify/email-check

Usage ESM / TypeScript Copy code Ts

import { checkEmail } from "@stackverify/email-check";

async function validateEmail(email: string) {
  const result = await checkEmail(email);

  if (!result.isValid) {
    console.log(`Email is invalid: ${result.reason}`);
    // Handle invalid email:
    // - Show error to user
    // - Ask for a different email
    // - Log or reject in backend
    return;
  }

  if (result.disposable) {
    console.log("Email is disposable. Request a permanent email.");
    return;
  }

  if (result.inbox.score < 80) {
    console.log("Email may not reach inbox reliably.");
    // Optional: warn user or request alternate email
  }

  console.log("Email is valid and likely to reach inbox.");
}

validateEmail("[email protected]");

CommonJS (Node.js) Copy code Js

const { checkEmail } = require("@stackverify/email-check");

checkEmail("[email protected]").then(result => {
  if (!result.isValid) {
    console.log(`Invalid email: ${result.reason}`);
    return;
  }

  if (result.disposable) {
    console.log("Disposable email detected.");
    return;
  }

  if (result.inbox.score < 80) {
    console.log("Email might not reach inbox.");
  }

  console.log("Email is valid and likely to reach inbox.");
});

Result Object

Property

  • Type
  • Description
  • isValid
  • boolean
  • True if email passes all checks syntax
  • boolean
  • True if email syntax is valid disposable
  • boolean
  • True if email is disposable domainExists
  • boolean
  • True if domain exists (Node.js only) hasMX
  • boolean
  • True if domain has MX records (Node.js only) inbox
  • object
  • `{ score: 0-100, label: 'low' reason
  • string|null
  • Reason if invalid

How to handle invalid emails

  • Invalid syntax: Ask user to correct the email format.
  • Disposable email: Reject or ask for a permanent email.
  • Non-existent domain / no MX records: Warn the user, may indicate typo or inactive email.
  • Low inbox score: Optional warning, consider requesting an alternate email for important communications. Node vs Browser
  • Node.js: Full checks (syntax, disposable, domain existence, MX records, inbox likelihood)
  • Browser: Only syntax + disposable checks (safe, fast, no DNS required) Advanced Options
  • Replace the default disposable-email.conf with a custom domain list
  • Detect disposable subdomains automatically Use synchronous check in Node.js for ultra-fast repeated lookups Example: Bulk validation Copy code Ts
import { checkEmail } from "@stackverify/email-check";

const emails = ["[email protected]", "[email protected]", "[email protected]"];

for (const email of emails) {
  const result = await checkEmail(email);
  if (!result.isValid || result.disposable || result.inbox.score < 80) {
    console.log(`${email} is invalid or risky: ${result.reason || 'low inbox score'}`);
    continue;
  }

  console.log(`${email} is valid and likely to reach inbox.`);
}

StackVerify Branding

Maintained by StackVerify, part of our marketing and SaaS toolkit. Website: https://stackverify.site License MIT – free to use for personal, commercial, and SaaS projects.