-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Are you interested in adding Valibot? #1527
Comments
I saw Valibot on twitter a few days ago, looks exciting! Definitely interested, especially if/once there is a significant TS server performance benefit over Zod despite (near-)feature parity - the bundle size difference is not nearly as big a deal. But IMO the right order of events here is that a few key libraries like tRPC, react-hook-form, etc. get first class support for Valibot, and then we consider whether the switch is worth it for CT3A. |
Thank you for your feedback. I agree with you. For tRPC I have already submitted the corresponding PR and for React Hook Form a community member will do it. I'll probably report back here in September after Valibot is integrated into more projects and I've done some more performance research. |
trpc(https://trpc.io/docs/server/validators#with-valibot) and react-hook-form (react-hook-form/resolvers#602) already support Valibot |
Definitely want it here as on t3-oss/t3-env#6 😃 |
A few schema library authors are currently working on a common interface. This may allow CT3A to support any schema library that supports this interface in the future. This will simplify the integration of schema libraries and prevent vendor lock-in, which could lead to more innovation in the long run. |
Is your feature request related to a problem? Please describe.
Valibot is a new schema library, similar to Zod, but with a much smaller bundle size and probably better performance in real world scenarios. Are you interested in adding Valibot to
create-t3-app
?Valibot announcement post: https://www.builder.io/blog/introducing-valibot
Describe the solution you'd like to see
Add Valibot as an alternatvie to Zod.
Describe alternate solutions
Add Valibot once v1 is reached.
Additional information
No response
The text was updated successfully, but these errors were encountered: