in the absence of an existing convention, I'm adding these three fields to Zod's package.json.
making this stuff auto-discoverable would resolve one of the biggest usability issues with today's agents/IDEs. a simple convention here will go a long way! ๐ค
29.07.2025 08:45 โ ๐ 26 ๐ 1 ๐ฌ 1 ๐ 0
sounds like you found an alternative but the answer is "not at all". MIT license, go ham :)
03.06.2025 18:46 โ ๐ 3 ๐ 0 ๐ฌ 1 ๐ 0
very nice ๐คฉ
28.05.2025 19:56 โ ๐ 4 ๐ 0 ๐ฌ 0 ๐ 0
Zod 4 stable will be released this Monday, May 19th!
15.05.2025 18:16 โ ๐ 105 ๐ 6 ๐ฌ 4 ๐ 2
hi Axel! big fan! the ? syntax definitely felt right...and when it unlocked recursive objects I knew it was the way.
though actually in Zod 4, z.object() adds the "?"to T.optional() but not to z.union(T, z.undefined()) as you're suggesting...a small change that makes things a little more sound
12.04.2025 07:57 โ ๐ 6 ๐ 0 ๐ฌ 1 ๐ 0
z.safeint() exists but it's just z.int() ๐ anything outside of safe range will throw. hadn't considered doubleint seriously. is that basically z.int128()? I'd represent that with a ZodBigInt subclass (similar to z.int64() and z.uint64 currently). but idk if it's widely used enough to merit addition?
12.04.2025 07:51 โ ๐ 3 ๐ 0 ๐ฌ 1 ๐ 0
yikes, thanks! last minute changes gone awry
10.04.2025 19:54 โ ๐ 2 ๐ 0 ๐ฌ 1 ๐ 0
thank you! this means a lot and is exactly the reaction I was hoping for :))))
10.04.2025 19:53 โ ๐ 2 ๐ 0 ๐ฌ 0 ๐ 0
huge thanks to @clerk.com for supporting my work on Zod 4! they've been an amazing partner through the much-longer-than-expected development process ๐ซถ
10.04.2025 15:23 โ ๐ 8 ๐ 0 ๐ฌ 0 ๐ 0
@zod/core | Zod Docs
the beta period will last 4-6 weeks so ecosystem tooling/library authors can implement day-one support. if that's you: this page is a good starting point. donโt hesitate to reach out for guidance!
v4.zod.dev/packages/core
10.04.2025 15:23 โ ๐ 6 ๐ 0 ๐ฌ 1 ๐ 0
Migration guide | Zod Docs
breakage was kept to an absolute minimum, but there are some relatively minor changes to the public API. i'd love for some brave pioneers to upgrade and report any breakage not described in the changelog:
v4.zod.dev/v4/changelog
10.04.2025 15:23 โ ๐ 9 ๐ 0 ๐ฌ 1 ๐ 0
Introducing Zod 4 beta | Zod Docs
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 ๐
10.04.2025 15:23 โ ๐ 304 ๐ 44 ๐ฌ 21 ๐ 14
if I may be so bold, I'd like to propose some much-needed nomenclature
25.02.2025 07:48 โ ๐ 114 ๐ 3 ๐ฌ 4 ๐ 1
thanks for letting me know! the docs (including this banner placement) are going to move out of the readme soon which should mitigate this. I'd be surprised if they enforce this for a solo developer though...something like CodeFund is more likely to ruffle feathers I think
24.02.2025 23:35 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
i'm trying out a new OSS funding experimentโa "featured" sponsor slot at the top of the Zod README
โ features are week-to-week (~140k impressions)
โ simple auction-based pricing (per-week or standing bids accepted)
โ artwork subject to approval
DM/email me if your company is interested! ๐ค
24.02.2025 00:55 โ ๐ 62 ๐ 7 ๐ฌ 4 ๐ 2
who suggested this and why weren't they fired immediately
08.02.2025 22:09 โ ๐ 71 ๐ 1 ๐ฌ 6 ๐ 1
I want chain-of-thought for ChatGPT Voice Mode but it just mutters to itself for 30 seconds before answering my question
08.02.2025 02:33 โ ๐ 28 ๐ 0 ๐ฌ 0 ๐ 0
star count for Standard Schemaโpretty successful launch, i'd say ๐คฉ
04.02.2025 20:53 โ ๐ 66 ๐ 1 ๐ฌ 2 ๐ 0
thanks Corbin! I really appreciate this ๐
29.01.2025 00:47 โ ๐ 2 ๐ 0 ๐ฌ 0 ๐ 0
i might still be misunderstanding something here though ๐
27.01.2025 19:12 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0
(deleted an earlier reply, I misunderstood the problem)
Zod does in fact try to avoid the Partial<> in z.record() wherever possible: github.com/colinhacks/z...
in this case it's behaving as intended. not much point in adding a question mark to an index signature since it's essentially implied.
27.01.2025 19:12 โ ๐ 2 ๐ 0 ๐ฌ 2 ๐ 0
send me the PR when its merged and I'll tweet it out!
27.01.2025 17:43 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0
Incredibly proud to be a part of an ecosystem as friendly and open as TypeScript's. Itโs been a joy working together with my "competitors" to make something that can hopefully benefit the whole ecosystem ๐คฉ
27.01.2025 16:24 โ ๐ 29 ๐ 0 ๐ฌ 2 ๐ 0
GitHub - standard-schema/standard-schema: A standard interface for TypeScript schema validation libraries
A standard interface for TypeScript schema validation libraries - standard-schema/standard-schema
If youโre a maintainer interested in implementing/integrating with the spec, refer to the README for some simple integration examples, an FAQ, and links to other integrations/PRs.
If youโre having trouble, DM me and Iโd be happy to help ๐ค
github.com/standard-sch...
27.01.2025 16:24 โ ๐ 8 ๐ 0 ๐ฌ 1 ๐ 0
A lot of frameworks and tools already accept Standard Schemas! Huge shoutout to the early adopters: tRPC, Tanstack Form, Tanstack Router, UploadThing and t3-env, OpenAuth, Renoun, and more
๐ @jayair.bsky.social @katt.dev @chorobin.bsky.social @jumr.dev @souporserious.com @awad.dev @unnoq.com
27.01.2025 16:24 โ ๐ 59 ๐ 3 ๐ฌ 4 ๐ 0
This makes it easier for frameworks and tools (like say, tRPC) to accept user-defined schemas, without needing separate adapters for each lib.
Integrate once, validate anywhere ๐ฆ
27.01.2025 16:24 โ ๐ 12 ๐ 0 ๐ฌ 1 ๐ 0
This is a condensed version of the Standard Schema spec that does a good job of conveying how it works.
Given a spec-compliant validator you can:โจโจ
a) validate data with it (duh)
b) retrieve validation errors in a standardized format
c) extract its inferred input & output types
27.01.2025 16:24 โ ๐ 12 ๐ 0 ๐ฌ 1 ๐ 0
Standard Schema is a specification (a TypeScript interface in fact) not a library.
It was designed collaboratively by myself (creator of Zod ๐), @fabianhiller.com (creator of Valibot), and @ssalbdivad.dev (creator of ArkType).
Itโs the final form of something I tweeted nearly two years ago.
27.01.2025 16:24 โ ๐ 27 ๐ 2 ๐ฌ 1 ๐ 0
High-quality tools for interacting with APIs. Trusted over 2,000,000 times each month to generate reliable API clients and SDKs.
https://heyapi.dev
Dad, husband, TypeScript developer.
Father of two, maintainer of RollupJS
A group of open source developers specialising in GraphQL and API platforms. Maintaining the most popular GraphQL libraries out there.
Working on genaiscript / LLM / GenAI . Formerly DeviceScript, JACDAC, MakeCode for micro:bit and others. Opinions are my own.
โข JavaScript, TypeScript, web development
โข Blog: https://2ality.com
My main account is on Mastodon (you can follow via RSS): https://fosstodon.org/@rauschma
Web dev, ADHD, he/him
blog.6nok.org
Software developer @Google. ๐น Occasional live streamer, ๐ฅ Potato video gamer, ๐ท Subpar photographer
professional ๐จ๐ผโ๐ป, amateur ๐น player
๐ณ https://fullsoak.dev โ๏ธ https://zzzz.dev
๐ธ๏ธ https://mrkha.ng
Helping folks build better websites
Remix/React Router @Shopify ๐ฟ
Philadelphia
Speaks: ๐ณ๐ฟ ๐ซ๐ท ๐ฆ. nominally bi with left gender. dni if you have dni in your bio. rust oss developer (watchexec, cargo watch, cargo binstall). budding electronics hobbyist. writes fanfic
https://passcod.name
https://mastodon.social/@passcod
Principal software engineer at Lokalise, Node.js stuff mostly
Simplifying things for fun and profit. Engineer at liveblocks.io. Also http://decoders.cc.
I writeโฆ
sometimes codeโฆ.
I'm that YouTuber who taught you how dishwashers work. Guess I'm tryin' out the whole Bluesky thing now.
he/him
https://www.youtube.com/technologyconnections
a generative design studio that works at the intersection of science, art, and technology. follow @nervousjessica.bsky.social + @nervousjesse.bsky.social for more frequent updates https://linktr.ee/nervous_system
Co-author/co-editor of ActivityPub (what connects together the fediverse, including Mastodon, etc). Executive Director of the Spritely Institute. Lisp/scheme enthusiast, chaos transfem, sketcher of tiny creature drawings.
https://dustycloud.org
maybe everything that dies someday comes back