{"repo":"sinclairzx81/typebox","free":true,"listed":false,"github":"https://github.com/sinclairzx81/typebox","clone":"git clone https://github.com/sinclairzx81/typebox.git","description":"JSON Schema Type Builder with Static Type Resolution for TypeScript","language":"TypeScript","stars":6915,"topics":["typescript","jsonschema"],"license":null,"category":"dev-tools","readme_excerpt":"TypeBox JSON Schema Type Builder with Static Type Resolution for TypeScript Install Usage Overview Documentation TypeBox is a runtime type system that creates in-memory JSON Schema objects that infer as TypeScript types. The schematics produced by this library are designed to match the static type checking rules of the TypeScript compiler. TypeBox offers a unified type that can be statically checked by TypeScript and runtime checked using standard JSON Schema validation. This library is designed to allow JSON Schema to compose similar to how types compose within TypeScript's type system. It can be used as a simple tool to build up complex schematics or integrated into REST and RPC services to help validate data received over the wire. License: MIT Contents - Type - Script - Schema - Versions - Contribute Type Documentation Example TypeBox types are JSON Schema fragments that compose into more complex types. The library offers a set of types used to construct JSON Schema compliant schematics as well as a set of extended types used to model constructs native to the JavaScript language. The schematics produced by TypeBox can be passed directly to any JSON Schema compliant validator. Example The following creates a User type and infers with Static. Script Documentation Example 1 Example 2 TypeBox includes a micro TypeScript engine that can transform TypeScript definitions to JSON Schema. The engine is fully type-safe and supports many programmable constructs including Conditional","default_branch":null,"files":null,"tree":[],"storefront":"/r/sinclairzx81","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sinclairzx81/typebox/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}