Tosijs-schema is a super lightweight schema-first LLM-native JSON schema library
npmjs.com
npmjs.com
This is actually discussed in the linked article (READ ME file).
most of the claims you're making against zod is inaccurate. the readme feels like false claims by ai.
This all seems pretty uninformed.
Will you support Standard Schema (https://standardschema.dev)? How does this compare to typebox (https://github.com/sinclairzx81/typebox)?
How did we end up in a world where 97 items is considered large?
> This provides O(1) performance
Wouldn’t 1% of N still imply O(N) performance?
That said, JSON is “language neutral” but also super convenient for JavaScript developers and typically more convenient for most people than XML.
We want a format for LLMs or for people?
Why would we need to concert XML, which already supports schemas and is well understood by LLMs, back to JSON schema?
When you provide a JSONSchemea, the result from the LLM is validated in the code between before passing on to the next step. Yes the LLM is reading it too, but non LLM parts of the system use the schema as well
This is arguably much more important for tools and subagents, but also these things are being trained with JSONSchema for tool calling and structured output