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

tempmail-guard

v1.1.0

Published

A high-performance, multi-layer email trust engine for advanced validation, reputation scoring, and security analysis.

Readme

TempMail Guard

npm version issues

A highly robust, multi-layer email trust engine for Node.js. It evaluates email addresses beyond simple regex, performing real-time security analysis, infrastructure checks, and behavioral heuristics to generate a comprehensive Trust Score.

Key Features

  • 7-Layer Validation Pipeline: From syntax to SMTP existence.
  • Fast-Pass Logic: Instant validation for popular providers (Gmail, Outlook, etc.).
  • Security Analysis: Deep SPF & DMARC verification, including MX authorization.
  • Advanced Catch-all Detection: Multi-probe SMTP analysis to identify "accept-all" domains.
  • Reputation Scoring: Domain age analysis and DNSBL blacklist checks.
  • Behavioral Heuristics: Detection of random/generated local parts.
  • High Performance: Parallelized checks and optional Redis caching.

Architecture

The engine evaluates every email through a weighted scoring system:

  1. Syntax (10%): RFC compliance and format verification.
  2. DNS (25%): Validates MX, A, AAAA, and NS records.
  3. Security (25%): SPF record content analysis and DMARC policy strength.
  4. SMTP (15%): Real-time mailbox existence verification.
  5. Reputation (15%): WHOIS domain age and global blacklist status.
  6. Behavior (10%): Entropy checks and pattern analysis.

Installation

npm install tempmail-guard

Usage

As a CLI Tool (Recommended for scripting/quick checks)

You can install it globally to use from anywhere in your terminal:

npm install -g tempmail-guard

# Test an email directly
tempmail-guard [email protected]
# or
npx tempmail-guard [email protected]

As a Node.js Module

const emailEngine = require('tempmail-guard');

async function validate() {
    const result = await emailEngine.validate('[email protected]');
    
    if (result.valid) {
        console.log(`Trust Score: ${result.trust_score}/100`);
        console.log(`Category: ${result.category}`);
    } else {
        console.log(`Email is invalid: ${result.reasons.join(', ')}`);
    }
}

validate();

Advanced Configuration (Redis Caching)

The engine automatically uses Redis for caching if the environment variables are set:

REDIS_HOST=127.0.0.1
REDIS_PORT=6379

Classification Categories

| Category | Score | Description | | :--- | :--- | :--- | | Trusted | 70–100 | Verified mailbox on a reputable domain. | | Risky | 50–79 | suspicious infrastructure or low-reputation history. | | Disposable | 20–49 | Known temporary email provider. | | Invalid | 0–19 | Fake mailbox, non-existent domain, or blacklisted. |


Auto-Fail Conditions

The system immediately marks an email as INVALID (Score < 20) if:

  • The domain has No MX records.
  • The domain is on a Global Blacklist (e.g., Spamhaus).
  • The domain is a known Disposable Provider.
  • The SMTP server explicitly rejects the recipient.

API Reference

validate(email)

The main entry point for the validation pipeline.

  • Returns: Promise<Object>
  • Output Schema:
    {
      "email": "[email protected]",
      "valid": true,
      "trust_score": 85,
      "category": "trusted",
      "signals": { ... },
      "reasons": [ "Valid syntax", "Strong SPF policy", ... ]
    }

Contributing

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.