A headless, model-based form validation library for Vue.js 3 with full TypeScript support and a Vuelidate-like API.
Regle is a headless form validation library for Vue.js 3 that enables developers to define validation rules in a model-based, type-safe manner. It solves the problem of tightly coupled validation logic in UI components by providing a flexible, decoupled validation layer that works with any frontend markup or styling approach.
Vue.js 3 developers building complex forms who need a maintainable, type-safe validation solution that integrates seamlessly with modern Vue ecosystems like Nuxt and Pinia.
Developers choose Regle for its headless architecture, full TypeScript support, and familiar Vuelidate-like API, which together offer a robust yet flexible validation system that enhances developer productivity and application reliability.
✅ Headless form validation library for Vue.js
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Decouples validation logic from UI, allowing integration with any markup or CSS framework, as emphasized by its 'style agnostic' design in the README.
Provides full TypeScript inference and autocompletion, enhancing developer experience and reducing errors in complex, type-safe forms.
Includes a built-in Vue DevTools extension for debugging validation states, with a screenshot in the documentation showing real-time inspection capabilities.
Seamlessly integrates with popular validation libraries like Zod and Valibot, enabling reusable schemas and leveraging existing ecosystem tools.
Requires installing separate packages (@regle/core and @regle/rules) and optional schema libraries, which can increase bundle size for lightweight projects.
The model-based, Vuelidate-inspired API may feel less intuitive for developers accustomed to declarative or schema-first validation approaches, despite its improvements.
As a newer library, it has fewer third-party plugins, community examples, and integrations compared to more established alternatives like Vee-Validate.
regle is an open-source alternative to the following products: