Introduction to Valibot
mainValibot is a modular, type-safe schema library designed for validating data at runtime (e.g., server inputs, forms, or configuration files). It is dependency-free and can run in any JavaScript environment.
Key features include:
- Static Type Inference: Fully type-safe with automatic TypeScript type generation.
- Modular Design: Uses small, independent functions to enable tree-shaking, which can reduce bundle sizes by up to 95% compared to libraries like Zod.
- Small Footprint: Bundle sizes can start at less than 700 bytes.
- Extensible: The functional API allows for easy extension with external code.