Modern, high-performance email validation for Node.js
A comprehensive email validation library with RFC 5322 compliance, typo detection, disposable email blocking, MX record verification, and SMTP validation.
| Package | Description | Version |
|---|---|---|
| @mailtester/core | Core email validation library |
npm install @mailtester/coreimport { validate } from '@mailtester/core';
const result = await validate('user@example.com');
console.log(result.valid); // true
console.log(result.score); // 85See the core package documentation for detailed usage instructions.
- RFC 5322 Compliant — Full regex validation with strict and loose modes
- Typo Detection — Suggests corrections for common domain typos
- Disposable Email Blocking — Detects 40,000+ temporary email services
- MX Record Validation — Verifies domain has valid mail servers
- SMTP Verification — Checks if mailbox actually exists
- Bulk Validation — Process thousands of emails concurrently
- Rate Limiting — Built-in protection against API abuse
- TypeScript First — Full type safety with strict mode
- Lightweight — ~25KB gzipped, minimal dependencies
- Node.js 16.0.0 or higher
- TypeScript 5.3+ (for TypeScript users)
# Clone the repository
git clone https://github.com/kazmiali/mailtester.git
cd mailtester
# Install dependencies
yarn install
# Build all packages
yarn build
# Run tests
yarn test
# Lint code
yarn lintmailtester/
├── packages/
│ └── core/ # Core validation library
│ ├── src/
│ │ ├── validators/ # Individual validators
│ │ ├── bulk/ # Bulk processing
│ │ ├── config/ # Configuration management
│ │ └── ...
│ └── tests/
├── docs/ # Documentation
└── README.md
Muhammad Ali Kazmi
Full-stack developer passionate about building fast, developer-friendly open-source tools.
MIT © Muhammad Ali Kazmi