Getting Started
Installation
Basic Usage
Validation and Error Handling
schema-stream
focuses solely on streaming JSON parsing with type stubs - it intentionally does not perform full Zod schema validation during parsing. This design choice enables:
- Faster parsing without validation overhead
- Immediate access to partial data
- Flexibility for downstream validation
For full schema validation and error handling, consider using:
zod-stream
: Adds validation, OpenAI integration, and structured error handlinginstructor
: Complete solution for validated LLM extraction
Example of schema-stream
being used by zod-stream
: