TypeScript-first schema validation with static type inference. By @colinhacks Docs https://xitter.cf/t.co/W6H0OevG8K Discord https://xitter.cf/t.co/Vuy7uIhXYe

Typesafety, USA
Joined November 2022
in the latest version of Zod Zod adds support for ✨Standard JSON Schema ✨ xitter.cf/colinhacks/status/2000…
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,152
New business model idea, 1 cent per download? 🥲
6
783
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
67
3,700
272,807
The first beta version of Zod 4 is now available! xitter.cf/colinhacks/status/1910…
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,786
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
242
37
1,638
148,032
omg @OpenAI is using @zodtypes
1
1
44
3,906
Zod turns 3 today! That's like 50 in JavaScript-years! Here's the original announcement post: colinhacks.com/essays/zod
13
7
4
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 like this
This Post is from a suspended account. Learn more
1
7
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
1
30
one `z.string()` to rule them all
1
1
32
i only have one question
6
13
2
134