Try Live Demo
InteractiveStop bots dead in their tracks.
A lightweight, dependency-free JavaScript CAPTCHA library. Protect your forms from automated spam with a fast, client-side canvas solution.
Why VerifyJS?
Zero Dependencies
Written in pure Vanilla JS. Keeps your bundle incredibly small and fast.
Highly Customizable
Control character length, toggle numbers, uppercase, and specials.
Canvas Rendered
Generates via HTML5 Canvas, difficult for standard scrapers to read.
Easy Integration
Drop it into any existing form in minutes. Works with any backend.
Installation
Include the minified script directly in your HTML document before the closing </body> tag.
1. HTML Structure
Add the required elements to your form: an image tag for the canvas, an input field, and buttons.
2. Initialization & Logic
Initialize VerifyJS with your preferred options and set up the validation check.
Configuration Options
| Option | Type | Description |
|---|---|---|
| totalDigit | Number | Total number of characters to generate. |
| number | Boolean | Allows numeric digits (0-9) in the challenge. |
| uppercase | Boolean | Allows uppercase alphabets (A-Z). |
| specialsCharacter | Boolean | Allows special characters (e.g., @, #, $). |
| width / height | Number | Dimensions of the generated canvas image in pixels. |
Community & Support
VerifyJS is an open-source project. We highly value your feedback and contributions!