567-labs/instructor-js
TypeScript library for extracting structured data from LLMs using schema validation with Zod.

Velocity · 7d
+0.9
★ / day
Trend
→steady
star history
Instructor is a TypeScript library that enables structured extraction from large language models by combining OpenAI’s function calling API with Zod for schema validation. It provides type-safe extraction of structured data from model outputs, allowing developers to define schemas and receive strongly-typed responses. The library emphasizes simplicity, transparency, and control in working with LLMs for data extraction tasks.