Search for a command to run...
Modular schema validation library for TypeScript that validates unknown data at runtime while preserving full type safety and static type inference. Designed for minimal bundle impact and developer experience, with zero dependencies and support for any JavaScript environment.
Valibot uses a modular API of small, independent functions instead of a few large methods, allowing bundlers to tree-shake unused code. This can reduce bundle size by up to 95% compared to Zod while offering similar ergonomics. Born from a bachelor thesis at Stuttgart Media University, the library is MIT licensed with 100% test coverage and has been adopted by teams needing lightweight runtime validation.
Key capabilities:
Typical applications include validating API request payloads, user form input, configuration files, and environment variables. Developers integrate Valibot where data crosses trust boundaries, such as webhooks, file imports, or third-party integrations, to ensure runtime type safety with minimal impact on application size.