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

@axmion/mailpattern

v1.0.7

Published

Predict, validate, and enrich business emails. Free tier supported, RapidAPI key for premium tiers at https://bit.ly/mailpattern.

Readme

📨 @axmion/mailpattern

Predict, validate, and enrich business emails — built for developers, B2B tools, and CRMs. Supports both Free tier (no API key) and Premium tier (via RapidAPI key).

🚀 Features

  • 🔍 Predict likely email formats for any company domain
  • ✅ Validate email deliverability (syntax + MX record)
  • 🏢 Guess company industry from its domain
  • ⚙️ Works instantly for Free tier (no key required)
  • 🔑 Supports RapidAPI keys (https://bit.ly/mailpattern) for higher request limits and premium reliability

📦 Installation

    npm install @axmion/mailpattern

🧠 Usage Examples

    import { predict, validate, industry } from "@axmion/mailpattern";

    // ===== Free Tier (No API Key Needed) =====
    try {
        const freeRes = await predict({
            domain: "hubspot.com",
            first: "Megan",
            last: "Turner"
        });
        console.log(freeRes);
    } catch (error) {
        console.error("Free Tier Test Error:", error);
    }

    // ===== Paid Tier (with RapidAPI Key) =====
    try {
        const paidRes = await predict(
            { domain: "hubspot.com" },
            "YOUR_RAPIDAPI_KEY"
        );
        console.log(paidRes);
    } catch (error) {
        console.error("Paid Tier Test Error:", error);
    }

    // ===== Validate an Email =====
    try {
        const validation = await validate({ email: "[email protected]" });
        console.log(validation);
    } catch (error) {
        console.error("Validate Email Error:", error);
    }

    // ===== Guess Company Industry =====
    try {
        const industryInfo = await industry({ domain: "solarpowerpros.com" });
        console.log(industryInfo);
    } catch (error) {
        console.error("Guess Industry Error:", error);
    }

🔍 API Methods & Responses

1️⃣ predict()

Purpose: Predict the most likely email patterns for a given domain. Uses heuristic scoring, DNS MX checks, and common corporate naming conventions.

Example Response — Without first & *last:

    {
    "domain": "hubspot.com",
    "patterns": [
        "{first}.{last}@hubspot.com",
        "{first}@hubspot.com",
        "{f}{last}@hubspot.com"
    ],
    "most_common": "[email protected]",
    "confidence": 0.94
    }

Example Response — With first & *last:

    {
    "domain": "hubspot.com",
    "patterns": [
        "{f}.{last}@hubspot.com",
        "{first}.{last}@hubspot.com",
        "{f}{last}@hubspot.com"
    ],
    "most_common": "[email protected]",
    "confidence": 0.8,
    "meta": {
        "generatedAt": "2025-11-06T20:37:18.946Z",
        "engine": "heuristic_v5",
        "input": { "first": "Megan", "last": "Turner" },
        "realizedExamples": [
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]"
        ],
        "cached": false
    }
    }

2️⃣ validate()

Purpose: Validate whether an email address is likely deliverable. Checks both:

  • ✅ Syntax format (RFC-compliant)
  • 📬 MX record presence (active mail server)

Example Response

  {
    "email": "[email protected]",
    "valid_format": true,
    "domain": "hubspot.com",
    "mx_found": true
  }

Tip:

  • Use predict() first to generate potential contacts → Then validate() to confirm deliverability.

3️⃣ industry()

Purpose: Guess a company’s industry from its domain. Useful for CRM enrichment, segmentation, and lead scoring.

Example Response

  {
    "domain": "solarpowerpros.com",
    "industry": "Energy"
  }

🧩 Tiers & Access

| Tier | Description | Auth | Monthly Limit | | ------------- | -------------------------- | ------------ | ------------------- | | Free Tier | Works instantly (no setup) | None | 1,000 reqs / month | | Paid Tier | Hosted via RapidAPI | RapidAPI Key | Up to 100,000+ reqs |

📄 License

MIT License © 2025 Axmion