TypeBox: A Runtime Type Builder for TypeScript
TypeBox is a runtime type builder for TypeScript that creates Json Schema objects that infer as TypeScript types. It offers a unified type that can be statically checked by TypeScript and runtime checked using standard Json Schema validation. TypeBox is designed to be a runtime type system based on industry standard specifications for use in distributed systems. It provides serializable and publishable types, a fully extensible type system, a high-performance runtime validation compiler, and detailed structured error reporting. Developers can use TypeBox to build complex schemas or integrate it into applications for high-performance runtime validation of data received over the wire. The library supports a wide range of Json types and provides an extended type set for common JavaScript constructs. With TypeBox, developers can ensure type safety and validate data at runtime, making it a valuable tool for building robust and reliable applications.