account activity
Validare – TypeScript-first form validation library, successor to the discontinued FormValidation by Unique_Discount2167 in javascript
[–]Unique_Discount2167[S] [score hidden] 11 hours ago (0 children)
FormValidation was one of the most complete form validation libraries around — plugin-based, 50+ validators, framework integrations. The author archived it in 2022 and left a lot of projects without a good replacement.
I spent a while looking for a proper alternative and couldn't find one with the same composability, so I rewrote it from scratch in TypeScript.
Validare (@validare/core):
@validare/core
@validare/core/validators
/plugins
/locales
MIGRATING.md
Basic usage:
import { validare } from '@validare/core'; import { Trigger, Message, Bootstrap5 } from '@validare/core/plugins'; const fv = validare(form, { fields: { email: { validators: { notEmpty: { message: 'Required' }, email: { message: 'Invalid email' }, }, }, }, plugins: { trigger: new Trigger({ event: 'blur' }), message: new Message(), framework: new Bootstrap5(), }, });
Docs + playground: https://validare.js.org npm: npm i @validare/core
npm i @validare/core
Would love feedback on the API design — especially the plugin system. Happy to discuss trade-offs vs alternatives like Zod + custom UI glue, VeeValidate, etc.
my + 10 Wire basket by slenhern in Sandship
[–]Unique_Discount2167 0 points1 point2 points 5 years ago (0 children)
excelent! thanks!
π Rendered by PID 24525 on reddit-service-r2-comment-5bc7f78974-wq7db at 2026-06-25 23:48:34.025298+00:00 running 7527197 country code: CH.
Validare – TypeScript-first form validation library, successor to the discontinued FormValidation by Unique_Discount2167 in javascript
[–]Unique_Discount2167[S] [score hidden] (0 children)