What is Email Provider Links?

Email Provider Links is a completely free and open source JavaScript/TypeScript library that automatically detects email providers and retrieves their login URLs. It helps create seamless user experiences by guiding users directly to their email inbox after registration or email verification. 100% Free Forever:

100%
Free
93
Email Providers
207
Domains Supported
94.65%
Code Coverage

How does it work?

1. Domain Matching

Instantly recognizes popular providers like Gmail, Outlook, Yahoo, and 40+ others from a curated database.

2. DNS Lookup

For unknown domains, performs MX record analysis to identify the underlying email infrastructure.

3. Heuristic Analysis

Uses advanced patterns to detect email alias services and proxy providers.

4. Fallback Handling

Gracefully handles unknown providers while still providing useful feedback.

Why Use Email Provider Links?

โŒ The Problem

  • Users abandon registration flows when they can't find verification emails
  • Generic "check your email" messages provide no helpful guidance
  • Users don't know which email app to open or where to look

โœ… The Solution

  • Automatically detect the user's email provider
  • Show provider-specific instructions and branding
  • Provide direct "Go to Gmail" or "Check Outlook" buttons
  • Reduce user confusion and improve completion rates

Benefits

๐Ÿ’ฏ
100% Free: No subscriptions, no hidden costs, completely open source
๐Ÿš€
Fast & Lightweight: Zero dependencies, minimal footprint
๐Ÿ“ง
93 Email Providers: Gmail, Outlook, Yahoo, ProtonMail, iCloud, and many more
๐ŸŒ
207 Domains Supported: Comprehensive international coverage
๐Ÿข
Business Domain Detection: DNS-based detection for custom domains (Google Workspace, Microsoft 365, etc.)
๐Ÿ”’
Enterprise Security: Multi-layer protection against malicious URLs and supply chain attacks
๐Ÿ›ก๏ธ
URL Validation: HTTPS-only enforcement with domain allowlisting
๐Ÿ”
Integrity Verification: Cryptographic hash verification for data integrity
๐Ÿ“
Type Safe: Full TypeScript support with comprehensive interfaces
โšก
Performance Optimized: Smart DNS fallback with configurable timeouts
๐Ÿšฆ
Rate Limiting: Built-in DNS query rate limiting to prevent abuse
๐Ÿ”„
Email Alias Detection: Normalize Gmail dots, plus addressing, and provider-specific aliases
๐Ÿ›ก๏ธ
Fraud Prevention: Detect duplicate accounts through email alias manipulation
๐Ÿงช
Thoroughly Tested: 445 tests with 94.65% code coverage

Perfect For

๐Ÿš€ User Registration

Guide new users directly to their inbox after they sign up, improving email verification completion rates.

๐Ÿ” Password Reset

Help users quickly find and access password reset emails by showing them exactly where to look.

๐Ÿ“ง Email Verification

Reduce bounce rates in verification flows by providing clear, provider-specific guidance.

๐Ÿ’ผ Business Applications

Detect corporate email systems and provide appropriate messaging for business users.

Enterprise-Grade Security

๐Ÿ”’
HTTPS-Only Enforcement:
All provider URLs must use HTTPS protocol
๐Ÿ“‹
Domain Allowlisting:
Only pre-approved domains are allowed (93+ verified providers)
๐Ÿ›ก๏ธ
Malicious Pattern Detection:
Blocks IP addresses, URL shorteners, suspicious TLDs
๐Ÿšซ
Path Traversal Prevention:
Detects and blocks ../ and encoded variants
โšก
JavaScript Injection Protection:
Prevents javascript:, data:, and script injections
๐Ÿ”
File Integrity Verification:
SHA-256 hash verification for provider database

Get Started

๐Ÿ“ฆ Installation

Install using npm:

npm install @mikkelscheike/email-provider-links
๐Ÿ“‹ Click to copy

๐Ÿ› ๏ธ Basic Usage

import { detectEmailProvider } from '@mikkelscheike/email-provider-links';

const result = await getEmailProvider('user@gmail.com');
console.log(result);
// {
//   provider: {
//     companyProvider: 'Gmail',
//     loginUrl: 'https://mail.google.com/mail/'
//   },
//   email: 'user@gmail.com',
//   loginUrl: 'https://mail.google.com/mail/',
//   detectionMethod: 'domain_match'
// }

Built With Amazing Tools

โšก Warp Terminal

Warp is the modern, AI-powered terminal that made this development process incredibly fast and efficient. With its intelligent command completion, AI assistance, and modern interface, Warp transformed how I interacted with the codebase.

๐Ÿ™ GitKraken

GitKraken provided powerful Git visualization and management capabilities that streamlined our version control workflow. Its intuitive interface and advanced merge tools made managing the codebase seamless and efficient.