TypeScript-first schema validation with static type inference. By @colinhacks Docs zod.dev Discord discord.gg/abmau8VR

Typesafety, USA
in the latest version of Zod Zod adds support for ✨Standard JSON Schema ✨
Introducing ✨ Standard JSON Schema ✨ It's a sister spec to Standard Schema that provides a common interface for any entity that can be converted to JSON Schema
10
1,138
👀
New business model idea, 1 cent per download? 🥲
6
777
Zod 4 is now in beta! 💎 7x faster object parsing 💎 20x reduction in tsc instantiations 💎 57% smaller core bundle size 💎 metadata via .meta() 💎 z.toJSONSchema() 💎 z.templateLiteral() 💎 z.stringbool() 💎 z.int32(), z.float32(), etc 💎 z.file() 💎 new logo 😇
133
361
3,701
272,766
The first beta version of Zod 4 is now available!
Zod 4 is now in beta! 💎 7x faster object parsing 💎 20x reduction in tsc instantiations 💎 57% smaller core bundle size 💎 metadata via .meta() 💎 z.toJSONSchema() 💎 z.templateLiteral() 💎 z.stringbool() 💎 z.int32(), z.float32(), etc 💎 z.file() 💎 new logo 😇
1
54
1,785
BIG DAY. Introducing Standard Schema 1.0! It's a specification for a "common interface" to be implemented by all TypeScript schema libraries, written collaboratively by the the creators of Zod (👋), Valibot, and ArkType to promote interoperability. standardschema.dev/
41
243
1,640
147,974
didn't know this was happening.... OpenAI is using Zod for its Structured Outputs API 🫶
by very popular demand, structured outputs in the API: openai.com/index/introducing…
19
44
842
113,236
omg @OpenAI is using @zodtypes
1
1
44
3,905
facts
1
1
37
10,264
Zod turns 3 today! That's like 50 in JavaScript-years! Here's the original announcement post: colinhacks.com/essays/zod
13
7
195
14,584
I'd heard the "parse, don't validate" mantra before but just recently tracked down @lexi_lambda's original post and it finally clicked. Honestly a relief have such a concrete explanation of why using tools like @zodtypes and @pydantic "feels" so right. lexi-lambda.github.io/blog/2…
2
1
10
2,159
👀
I shipped a library! zod-fetch gives you a TINY wrapper to help you make any fetch function type and runtime-safe. If you've ever been intimidated by trying to hack together fetch and Zod, this library should be perfect.
12
4,183
We built schema based forms using @HookForm + @zodtypes + form components we created + custom components can be added. We can manually compose forms, or generate from JSON and it really saves so much time (and so many calls to useState)
1
6
1,664
Zod's `.catch(default)` method is SOOO good. Thanks @colinhacks
3
5
139
35,981
Did you know TypeScript doesn't provide runtime type safety? @zodtypes is here to save you. Plus it works great with Convex!
Validating user input for serverless functions is important even with end to end typescript. Use zod with Convex to get type safety and regular safety. buff.ly/3Hv2Rx1
1
7
2,030
I don't want to brag but I just got even cooler
Zod 3.20 is here! This is a big one. 🟢 `z.coerce` 🟢 `.pipe()` 🟢 `.catch()` 🟢 `z.symbol()` 🟢 `z.number().finite()` 🟢 `z.string().datetime()` github.com/colinhacks/zod/re…
8
107
Playing with @zodtypes to validate some API results in my #reactnative app, what a delight! 😍 I love the simplicity of the @zodtypes API. No more excuse to protect your frontend app from bad data format 🔒
1
6
30
one `z.string()` to rule them all
1
32
i only have one question
6
13
134