Vest ✅ Declarative validations framework
Documentation · Async race demo · Getting started
Vest runs the tests for the field or step that changed and keeps the results for everything else. When async checks overlap, only the latest result can update the suite.
Vest validates what changed, remembers what already passed, and prevents stale async validation results.
The validation rules read like unit tests. The stateful runtime is what makes Vest different.
…run() and runStatic() as Vest's execution APIs.| Layer | Responsibility | Typical tools |
|---|---|---|
| Form state | Values, registration, touched state, submission | React Hook Form, Formik |
| Data boundary | Parse and protect a complete payload | Zod, Valibot, Ajv, Enforce schemas |
| Validation state | Decide what runs now, retain results, coordinate async work | Vest |
These layers are complementary. A common architecture uses a form manager for input mechanics, Vest for progressive interaction, and a schema validator for the final submitted boundary.
Vest works well for:
For a trivial synchronous form or a one-shot API parse, native HTML validation or a schema validator may be all you need.
npm i vestContributions are welcome. See CONTRIBUTING.md.
No open issues yet, or sync has not completed.