Node.js & TypeScript Email Verification SDK
Add strongly typed email deliverability validation to Node.js 18+ and TypeScript services using the zero-dependency mailveri npm package.
Why Syntax Validation Alone Is Not Enough
JavaScript regex validation accepts millions of fake, typoed, and disposable burner addresses such as [email protected] or [email protected].
1. Setup & Package Installation
Set MAILVERI_API_KEY in your server environment (claim up to 1,000 free credits with no card required) and install:
npm install mailveri2. Real-Time Signup Verification Example
Reject INVALID and DISPOSABLE accounts prior to user creation while letting UNKNOWN fail open at 0 credit cost:
import { MailVeri } from 'mailveri'
const client = new MailVeri({ apiKey: process.env.MAILVERI_API_KEY })
export async function validateSignupEmail(email: string) {
const res = await client.verify(email)
if (res.status === 'INVALID' || res.status === 'DISPOSABLE') {
return { ok: false, status: res.status, reason: 'Please use a permanent, deliverable email.' }
}
return { ok: true, status: res.status, isDeliverable: res.is_deliverable }
}3. Production Integration & Batch Verification
import crypto from 'node:crypto'
export function verifyWebhookSignature(rawBody: string, signatureHeader: string, secret: string): boolean {
const expected = crypto.createHmac('sha256', secret).update(rawBody).digest('hex')
const a = Buffer.from(signatureHeader.replace(/^sha256=/, ''), 'hex')
const b = Buffer.from(expected, 'hex')
return a.length === b.length && crypto.timingSafeEqual(a, b)
}Production Implementation Best Practices
- Initialize MailVeri once at module scope; omit apiKey to read process.env.MAILVERI_API_KEY automatically.
- Reject INVALID and DISPOSABLE at signup while checking is_forwarding if you enforce corporate-only trials.
- Verify batch completion callbacks using timingSafeEqual over the HMAC-SHA256 signature header.
Frequently Asked Questions
Does the mailveri npm SDK require external dependencies?
No. It uses Node.js built-in fetch and Web Standards with full ESM, CommonJS, and TypeScript declaration support.
What throughput limits apply to the REST API?
Real-time /v1/verify-mail/ limits scale by tier: Standard accounts get 10 req/s (up to 5 concurrent), VIP gets 25 req/s (15 concurrent), and VVIP/KYC accounts scale to 50 req/s (40 concurrent). Bulk /v1/verify-mails/ uploads are unthrottled (2 concurrent active lists on Free; unlimited on Paid).
How much does verification cost per 100,000 TypeScript API calls?
Universal credits work identically across web CSV uploads, REST API, and MCP: $9 for 10K, $59 for 100K, $299 for 1M, and $999 for 5M checks—and never expire.
More Language & Framework Guides
All GuidesExplore Related Verification Benchmarks, Integrations & Deliverability Hubs
Compare live 10K–5M verification rate cards, connect MailVeri to your outreach stack, or inspect domain-level SMTP rules.
- MailVeri vs BounceBan100K checks: $59 vs $300
- MailVeri vs AtData (TowerData)Compare 10K–1M pricing & accuracy
- MailVeri vs QuickEmailVerification100K checks: $59 vs $320
- MailVeri vs Findymail100K checks: $59 vs $849/mo
- MailVeri vs ExactVerify100K checks: $59 vs $220
- MailVeri vs EmailListVerify100K checks: $59 vs $186
- Zapier No-Code Verification1-click Zapier app & CRM filter
- Instantly.ai Lead CleaningProtect cold outreach sender domains
- Pabbly Connect 1-Click App1-click app for Pabbly workflows
- Smartlead.ai Agency HygieneStop 3% campaign auto-pauses
- viaSocket Workflows & MCPOfficial connector & AI MCP hub
- HubSpot Marketing Contacts AuditPrevent 3% CRM bounce locks
- SMTP 550 5.1.1 User UnknownPermanent hard bounce fix
- B2B SaaS Signup ProtectionBlock 100K+ burner domains
- Free Email Extractor & CSV100% browser-local deduplicator
- Domain Reputation CheckerAudit SPF, DKIM, DMARC & MX health
- AI Startups & Indie HackersOutbound + trial token shield
- Free Catch-All Domain CheckerInspect SEG & accept-all risk
- DMARC (Domain-based Message Authentication)Authentication & DNS definition
- Email Warm-UpReputation & Inbox Placement definition
- Safe SenderReputation & Inbox Placement definition
- mailinator.com Burner AnalysisPublic disposable inbox detection
- addy.io Anonymous ForwardingOpen-source alias deliverability
- vercel.com B2B Domain ReportCloud platform MX & SPF status