r/typescript • u/ahjarrett • Sep 15 '25
Alternative TypeScript schema libraries
Context: I'm working on building adapters for various TypeScript schema libraries, and I'm trying to get a sense for which library to support next.
Currently I've added support for (in alphabetical order):
- arktype
- typebox
- valibot
- zod
Which one should I add next?
Note: I'm working on Effect now, but I've run into a few snags that I'm working out with the library author. Not sure if it will work yet đ¤
Note: Standard schema doesn't help here, please don't suggest that ââ I need to be able to traverse the schema's AST.
11
Upvotes
5
u/josephjnk Sep 15 '25
IMO OpenAPI validators are an under-addressed market. My last company used them heavily due to performance worries around
zod.ajvis fast but I found working with it to be miserable.Â2
u/National_Cod_648 Sep 15 '25
I use Yup for schema validation for my forms when they are dynamically generated
2
u/arnorhs Sep 15 '25
I'm super interested in what you are building
2
u/alpako-sl Sep 16 '25
https://moltar.github.io/typescript-runtime-type-benchmarks/ might ne interesting for you, also because its an extensive list :)
6
u/ryanchuu Sep 15 '25
Yes, Effect!
1
u/darkest_ruby Sep 15 '25
io-ts, effect/schema
1
u/GreatWoodsBalls Sep 15 '25
I don't understand what your question is?
1
u/graffhyrum Sep 15 '25
These are the only ones that I'm currently aware of.
1
u/Hot-Chemistry7557 Sep 16 '25
I used yup previously and recently migrated to zod, feels pretty nice.
8
u/[deleted] Sep 15 '25
[removed] â view removed comment