A lightweight JavaScript widget with zero dependencies that performs real-time email address validation using the Verifalia email verification service. This widget integrates seamlessly with any web form to swiftly identify and eliminate invalid, undelive
npm install verifalia-widgetVerifalia widget - Add real-time email verification to your page, without any coding
====================================================================================
Verifalia provides a powerful and lightning-fast service for **real-time email address validation and
deliverability checks**; once included in a web page, this Javascript widget automatically binds to every input field
of type email (or those with the email word in their names or IDs or anything else, based on a configured XPath
selector) it finds and prevents form submission, unless the field contains a valid email address that points to
an active and deliverable mailbox which can accept messages. The widget comes as a lightweight (9KB gzipped) single
Javascript file, with no external dependencies and a wide range of customization options.
!Verifalia email verification widget
The widget includes default settings that automatically **prevent form submission for email addresses that are invalid,
unreachable, disposable, and throw-away**; however, you can easily configure it to include or exclude different types of
addresses (for instance, those provided by free email service providers like Gmail or Yahoo).
It provides out-of-the-box, automatic support for all HTML5 forms, including mobile ones: just drop it into any web
page, and it will automatically validate every email address entered into its field in real-time.
The widget also supports several CAPTCHA services (including Cloudflare Turnstile, hCaptcha, Google reCAPTCHA v2 and v3),
ensuring that only email verifications from real humans are processed.
It also integrates _automatically_ with the following validation libraries and landing page / form building services, if
they are detected upon loading: Adobe Marketo Engage, FormSite, FormStack,
FormValidation, Google Tag Manager (GTM), HubSpot, Instapage, jQuery Validation Plugin,
Kendo UI for jQuery, KickoffLabs, Leadpages, Pardot, Parsley,
SamCart,
Unbounce, Validate.js, and Zoho Sites. You may find that form validation
libraries other than these are compatible with the Verifalia email verification widget; however, we make no claims to
support those libraries, and will not troubleshoot issues that arise when using those libraries.
While this widget is well-suited for many integration scenarios, it exclusively runs in the browser and comes with a
limited set of extension points for developers: check out the Verifalia SDK library for JavaScript for a more
advanced solution with support for Node.js (in addition to the browser!), as well as a vastly extended set of features.
For advanced configuration options, please read below.
First things first: using the Verifalia email verification service requires having a Verifalia account: if you don't have one, simply register for a free account. Additionally, this widget requires a browser app key (a sequence of alphanumeric characters): create a browser app, if you don't have one already. Once you are on the Verifalia dashboard, you can easily generate the necessary embedding code from the Embeddable widget tab, which will include the HTML code snippet needed to embed the Verifalia widget along with your browser app key. Paste this code onto your page or form, and you will be all set! For specific instructions on installing the widget with the validation libraries and landing page / form building services we support, please refer to the guidelines below.
As an alternative to using the code generation feature provided by the Verifalia dashboard, you have the option to manually copy the following HTML block and place it just before the closing
tag. Make sure to specify the script source as the verifalia-widget.js file, which you can obtain from one of the CDNs serving projects hosted on npm (as shown hereafter). Remember to set the data-verifalia-appkey attribute to match your browser app key, which you can acquire from the Verifalia dashboard as explained above. Alternatively, you can also set your browser app key using JavaScript, as detailed in the next section.
``html
...
src="https://unpkg.com/verifalia-widget@1.13.0/dist/verifalia-widget.js"
data-verifalia-appkey="YOUR BROWSER APP KEY HERE"
integrity="sha512-lSDPMmyZ2UdFJe668Pqz6kpbWtycj+edgzRTBdbAhXCTtWY+Shz0Qhgpo4R5wzQwjTUqm5h/4DV0ALATSob5ow=="
crossorigin="anonymous">