Streaming structured output for TypeScript
schema-stream
Typed, schema-shaped JSON snapshots while the response is still arriving.
bun add schema-stream zod{
"checks": [
{
"label": "",
"state": ""
}
],
"metrics": {
"score": null
},
"summary": "",
"title": ""
}Why it exists
Use the fields that are ready. Keep streaming the rest.
01
Accept arbitrary text and UTF-8 chunk boundaries from provider streams.
02
Materialize typed snapshots according to an explicit emission policy.
03
React once when nested keys or values complete, without rescanning the tree.
Integrations
One parser boundary. The SDK stays your choice.
Progressive dashboard
See every policy shape the same response.
