Skip to content
Discussion options

You must be logged in to vote

honest take for plain js: the main zod win is z.infer giving u types, and without typescript thats gone. error handling, custom rules and nesting are close to joi, .safeParse() vs .validate(), .refine() vs any.custom(), .extend() vs .keys()

zod is smaller and faster (2kb core, zod 4 got quick) and newer libs speak it natively, but if joi already works id propably not rewrite anything. hope that helps

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TahaAyati-DevLab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants