News for hackers. Stuff that matters.
Re:Zod: TypeScript-first schema validation with static type ... by bjacobso on Wednesday October 09, 2024 @02:17PM (#41791000)
zod is great, but I have been moving to @effect/schema and think it deserves a mention here. @effect/schema is the evolution of io-ts, which originally inspired zod.

It supports decoding as well as encoding, and fits natively into the rest of the effect ecosystem.

https://effect.website/docs/guides/schema/introduction

It does come with the cost of importing effect, so might not be the best in certain scenarios. However, there are smaller options than zod if that is a concern.

Re:Zod: TypeScript-first schema validation with static type ... by obeavs on Wednesday October 09, 2024 @03:00PM (#41791434)
Yep. Effect is so cool. The ability encode AND decode is tomorrow's standard.

With all the work they're doing on durable workflows, hard to imagine that 2025 is anyone else's year.