Standard Schema provides a common interface for JavaScript and TypeScript schema libraries to create user-defined type validators. It facilitates integration without additional runtime dependencies and supports runtime validation, static type inference, minimal implementation, API conflict avoidance, and improved developer experience. The specification is implemented via a TypeScript interface and used by libraries like Zod, Valibot, and ArkType. Tools and frameworks can easily adopt the Standard Schema specification to ensure type-safety.

8m read timeFrom standardschema.dev
Post cover image
Table of contents
Who designed it?The interfaceDesign goalsWhat schema libraries implement the spec?What tools / frameworks accept spec-compliant schemas?How can my schema library implement the spec?How do I accept Standard Schemas in my library?FAQ

Sort: