π― Real-Time Feedback β’ βΏ Fully Accessible β’ π¨ Zero-Styling Conflicts β’ π i18n Ready
JavaScript Bootstrap Form Validation is a modern, dependency-free validation library that seamlessly integrates with Bootstrap 5. It brings beautiful, accessible, and instant form feedback to any web project β without the bloat of heavy frameworks or messy configuration.
Just add data-validate to your form, and you're done. It's that simple.
π‘ Perfect for: SaaS signups, contact forms, checkout flows, admin panels β any form where user experience matters.
| β 40+ Rules | π¨ Bootstrap Native | βΏ Accessible |
|---|---|---|
| Email, phone, URL, password strength & more |
Inherits Bootstrap styles perfectly |
ARIA-compliant error messages |
| π i18n Support | π Custom Rules | π¦ Tiny Footprint |
|---|---|---|
| 15+ built-in languages |
Register your own validators easily |
Under 5kb minified + gzip |
| π Advantage | π Description |
|---|---|
| β‘ Zero Dependencies | Pure vanilla JS β no jQuery, no framework, no bloat |
| π¨ Bootstrap-Native | Works with Bootstrap, not against it β no CSS conflicts ever |
| βΏ WCAG 2.1 AA | Screen-reader tested, keyboard navigation, focus management built-in |
| π Instant Feedback | Validates on blur, keystroke & submit β no waiting for page reloads |
| π§© Extensible | Register custom rules in 3 lines of code |
| π Global-Ready | Ready for international forms with automatic RTL support |
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π Sign Up Form β
β βββββββββββββββββββββββββββββββββββββββββββββββββββ£
β β
β Email β
β ββββββββββββββββββββββββββββββββββββββββββββββ β
β β john@example.com β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β Password β
β ββββββββββββββββββββββββββββββββββββββββββββββ β
β β β’β’β’β’β’β’β’β’β’β’β’β’ β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββ β
β β 12+ characters β Uppercase β Symbol β
β β
β Confirm Password β
β ββββββββββββββββββββββββββββββββββββββββββββββ β
β β β’β’β’β’β’β’β’ β β β
β ββββββββββββββββββββββββββββββββββββββββββββββ β
β β οΈ Passwords do not match β
β β
β [ Create Account ] β
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
π js-bootstrap-form-validation/
βββ π― src/
β βββ validator.js # Core validation engine
β βββ rules/ # Built-in rules
β β βββ email.js
β β βββ password.js
β β βββ phone.js
β βββ ui/ # Bootstrap feedback binding
βββ π i18n/ # 15+ language packs
βββ π¨ themes/ # Optional visual presets
βββ π§ͺ tests/ # Vitest unit + Playwright e2e
βββ π docs/ # Live playground & guides
Found a bug? Want a new rule? Have a translation to share?
Distributed under the MIT License. See LICENSE for details.
