Type-safe schema library for TypeScript data validation.
Modular design for minimal bundle size through tree shaking.
Validates diverse TypeScript types at runtime.
Pricing: Free forever
Best for: Individuals & startups
Pros & Cons
Pros
Significantly reduces bundle size compared to alternatives like Zod (up to 95%)
Ensures type safety of unknown data at runtime
Open source and free to use under the MIT License
Excellent developer experience due to well-designed API
Comprehensive test coverage for reliability
Cons
Relies on partners and sponsors for funding, which could impact long-term development if not sustained
Preview
Key Features
Fully type safe with static type inferenceModular API design for small bundle size (less than 700 bytes initially)Supports validation of almost any TypeScript typeIncludes important validation and transformation helpers100% test coverage for source codeMinimal, readable, and well-thought-out API
Valibot is an open-source schema library for TypeScript designed to validate unknown data with a focus on bundle size, type safety, and developer experience. It allows developers to define schemas that describe structured data sets, similar to TypeScript type definitions, but with the crucial difference that Valibot schemas can be executed at runtime to guarantee the type safety of incoming data. This makes it ideal for scenarios where data originates from external sources and needs rigorous validation.
The library's modular design is a core differentiator, enabling significant bundle size reductions through tree shaking and code splitting. This is particularly beneficial for client-side form validation and serverless environments where minimizing payload size is critical. Valibot supports validation for almost any TypeScript type, from primitive values to complex objects, and includes important validation and transformation helpers. It boasts 100% test coverage and offers a minimal, readable, and well-thought-out API to ensure a great developer experience.
Valibot is an open-source schema library for TypeScript that allows you to define schemas to describe structured data sets. Unlike TypeScript types, Valibot schemas can be executed at runtime to validate unknown data and guarantee its type safety.
How much does Valibot cost?
Valibot is completely free of charge and licensed under the MIT License. It relies on partners and sponsors for funding.
Is Valibot free?
Yes, Valibot is available free of charge and is open source under the MIT License.
Who is Valibot for?
Valibot is for TypeScript developers who need to validate unknown data with confidence, especially those concerned with bundle size for client-side applications (like form validation) and serverless environments. It's also for developers who prioritize type safety and a good developer experience.