Maybe Zod would fit the bill.
this post was submitted on 31 Mar 2025
5 points (85.7% liked)
TypeScript
945 readers
1 users here now
founded 2 years ago
MODERATORS
Try Valibot. It is inspired by Zod.
According to the Valibot FAQ, the main difference with Zod is:
The functionality of Valibot is very similar to Zod. The biggest difference is the modular design of our API and the ability to reduce the bundle size to a minimum through tree shaking and code splitting. Depending on the schema, Valibot can reduce the bundle size up to 95% compared to Zod. Especially for client-side validation of forms and serverless environments this can be a big advantage.
Thanks! I'll take a look.