Advertisement ยท 728 ร— 90

Posts by Colin McDonnell ๐Ÿ’Ž Zod

thank you!!

3 months ago 1 0 1 0

yaaasssss

3 months ago 2 0 0 0

no but they could probably benefit from it!

3 months ago 1 0 0 0
Preview
Standard JSON Schema A standardized JSON Schema representation that preserves inferred type information

Visit the website to see the fulltext spec, FAQs, integration examples, and more standardschema.dev/json-schema

If you implement or integrate with the spec, don't forget to submit a PR adding yourself to the website โœŒ๏ธ

3 months ago 9 0 1 0
Post image

The following schema libraries have implemented day-one support for the spec ๐Ÿ‘‡

Note the minimum versions (these we're all released in the last few weeks)

3 months ago 10 0 1 0

This takes the onus off the end user to properly convert their schemas correctly to the format expected by some consuming library, eliminating a swath of potential footguns & unnecessary DX complexity

3 months ago 8 0 1 0
Post image

It puts control in the hands of the *consuming library*. Given a spec-compliant entity, they can:

โ€ข extract a JSON representation of either its input or output type
โ€ข control the *draft version* of the produced JSON Schema
โ€ข pass library-specific config

3 months ago 6 0 1 0
Post image

This is the first ecosystem-wide standard representation that unifies runtime and static type information

Essentially "JSON Schema with inferred types" โ€” which unlocks totally new APIs for frameworks & AI tools

3 months ago 7 0 1 0
Post image

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

3 months ago 68 6 2 4
Advertisement

wish I'd thought of this 3 days ago ๐Ÿซ 

3 months ago 1 0 0 0

thanks Ryan!!

3 months ago 1 0 0 0

right!?!?

4 months ago 0 0 0 0

thanks josh! really looking forward to having you play with it!

4 months ago 1 0 0 0
Preview
Pullfrog The ultimate agentic GitHub bot. Powered by your favorite coding agents.

check out the website for a more detailed explanation, and to join the waitlist. we'll be letting people in over the next few weeks! pullfrog.com

4 months ago 18 1 1 0
Post image

Pullfrog is the "agent x GitHub" integration I wish existed

๐Ÿธ can plan, review, and implement PRs (and more)
๐Ÿธ GitHub-first (no new UI)
๐Ÿธ agent-agnostic (bring your own agent / API key)
๐Ÿธ runs in GitHub Actions
๐Ÿธ configurable: custom per-trigger prompts, automations, etc

4 months ago 13 0 1 0

we're taking a stab at a problem we're familiar with: improving the DX of iterating on code (with AI) inside of GitHub.

having closed 6000 issues and PRs on Zod/ArkType over the last 5 yearsโ€”we have thoughts.

4 months ago 9 0 1 0
Post image

sounds fake but I'm starting a company with my nemesis David E. ArkType

and our first hire is @andarist.bsky.social

and our first product is now in beta :)

4 months ago 78 5 6 4

as you said, "decode" and "parse" are essentially synonymous. encoding is the new thing here, and it's the inverse of parse. but in anycase, this isn't something I just came up with: see io-ts and Effect Schema.

7 months ago 2 0 1 0
Advertisement
Preview
Third Party Modules | Deno A hosting service for Deno scripts.

starting with Zod 4, Zod is published to JSR but not deno.land/x

7 months ago 3 0 0 0
Preview
Introducing Zod Codecs

for a more detailed technical breakdown of codecs, read the associated blog post ๐Ÿ‘ colinhacks.com/essays/intro...

7 months ago 7 0 1 0

including...

โœ… stringToNumber
โœ… stringToInt
โœ… stringToBigInt
โœ… numberToBigInt
โœ… isoDatetimeToDate
โœ… epochSecondsToDate
โœ… epochMillisToDate
โœ… jsonCodec
โœ… utf8ToBytes
โœ… bytesToUtf8
โœ… base64ToBytes
โœ… base64urlToBytes
โœ… hexToBytes
โœ… stringToURL
โœ… uriComponent

7 months ago 4 0 2 0
Preview
Codecs | Zod Bidirectional transformations with encode and decode

instead of providing first-party APIs for commonly-needed codecs, Zod is taking a page from shadcn

fully-tested versions of 16 commonly-needed codecs are available on the new Codecs page. you're encouraged to copy/paste/customize them as needed ๐Ÿ‘
zod.dev/codecs

7 months ago 5 1 1 0
Post image

Codecs is useful when mapping data between two different domains. for instance, when converting data in your Node.js backend from a rich JavaScript representation (Dates, BigInts, Maps, Sets, etc) into a JSON-serializable format (ISO datetimes, arrays, etc)

7 months ago 1 1 1 0
Post image

these methods are intended for use cases involving data *conversion*, not *validation* (though they do that too). so if you pass in an input of an unexpected type, you'll get a TypeScript error.

7 months ago 2 0 1 0
Post image

"how does .decode() differ from .parse()?"

good question! they're identical at runtime, but their type signatures differ in an important way.

unlike .parse()โ€”which accepts `unknown` inputโ€”decode and encode expect strongly-typed inputs

7 months ago 4 1 1 0
Post image

It is coupled with the addition of new methods (available on all Zod schemas)

.decode() โ€” "forward" parsing
.encode() โ€” "reverse" parsing

7 months ago 7 0 1 0
Advertisement
Post image

Introducing Zod 4.1 and its flagship feature: codecs.

z.codec() is a new API for defining *bi-directional transformations* in Zod

7 months ago 104 17 7 1
Post image

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! ๐Ÿค˜

8 months ago 30 1 1 0

sounds like you found an alternative but the answer is "not at all". MIT license, go ham :)

10 months ago 3 0 1 0

very nice ๐Ÿคฉ

10 months ago 4 0 0 0