Schema Stream
Streaming partial JSON parser with type safety
schema-stream
is a foundational streaming JSON parser that enables immediate data access through structured stubs. Built on Zod schema validation, it provides type-safe parsing and progressive data access for JSON streams.
Key Features
- 🔄 Stream JSON data with immediate access to partial results
- 🔑 Path completion tracking for complex objects
- 📝 Default value support via schema or explicit defaults
- 🌳 Deep nested object and array support
- ⚡ Zero dependencies except Zod
- 🔍 TypeScript types inferred from schema
Integration with Island AI
schema-stream
is designed as a foundational package that other tools build upon:
-
zod-stream
: Adds validation and OpenAI integration -
instructor
: High-level extraction