Welcome to PolyVal
PolyVal is a multilingual and highly customizable validation library that provides developers with a simplified API for data validation. Built on top of Zod, it offers an intuitive approach to validating forms, user input, and data schemas without requiring deep knowledge of complex validation rules.Installation
Get started by installing PolyVal in your project
Quickstart
Build your first validation in minutes
API Reference
Explore the complete API documentation
Examples
Learn from real-world examples
Key features
Simplified API
Define validation schemas using simple JavaScript objects without complex type definitions. PolyVal abstracts away the complexity while maintaining full type safety.Multilingual support
Built-in support for multiple languages with default translations for English and Turkish. Error messages are automatically localized based on your selected language.Fully customizable error messages
Customize error messages at multiple levels: globally, by type, by field, or for specific validation rules. Complete control over what your users see.Custom validation rules
Easily extend PolyVal with your own validation logic. Define custom validators with optional message keys for consistent error handling.TypeScript support
Full TypeScript support with comprehensive type definitions ensures type safety throughout your validation workflow.Field comparison
Validate fields against each other with built-in comparison operators. Perfect for password confirmation, date ranges, and related fields.Why PolyVal?
PolyVal bridges the gap between powerful validation libraries like Zod and the need for a simple, intuitive API. It’s designed for developers who want:- Quick setup - Start validating data in minutes, not hours
- Internationalization - Built-in i18n support without extra configuration
- Flexibility - Customize every aspect of validation and error messages
- Type safety - Full TypeScript support with intelligent type inference
- Clean code - Write readable validation schemas that serve as documentation
Ready to get started?
Jump into the Quickstart
Learn how to validate your first data schema in less than 5 minutes