
TypeBox
Runtime type system for TypeScript that builds JSON Schema objects which infer as TypeScript types and validate data.
sinclairzx81.github.io/typebox/repositorydocs
TypeBox is a TypeScript library that builds JSON Schema objects in memory and infers the matching TypeScript type from each one. One definition can therefore be checked statically by TypeScript and at runtime with standard JSON Schema validation.
The package also includes a Script engine that converts TypeScript type definitions written as text into JSON Schema, and a compiler submodule that checks values against a compiled schema. The README names REST and RPC services as a place to validate data received over the wire.
Worth knowing
The 1.x line is ESM only. The 0.x line is kept under long-term support in a separate repository and supports both ESM and CommonJS.
Identity
- Status
- Active
- Maintainer
- Haydn Paterson2
- Maintained by
- Individual
- First release
- 20216
Rendering and deploy
- Install with
- npm3
Releases
Adoption
Sources
- 2026-11-16: links, Written in, GitHub stars
api.github.com/repos/sinclairzx81/typebox - 2026-11-16: Maintainer, License, License model
raw.githubusercontent.com/sinclairzx81/typebox/main/license - 2026-11-16: Categories, Install with, links
raw.githubusercontent.com/sinclairzx81/typebox/main/readme.md - 2026-11-16: Multilingual
github.com/sinclairzx81/typebox/blob/main/docs/docs/system/2_locale.html - 2026-11-16: Current major version, Last release
registry.npmjs.org/typebox - 2026-11-16: First release
api.github.com/repos/sinclairzx81/typebox/commits/0.17.7 - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/typebox - 2026-11-16: Contributors
api.github.com/repos/sinclairzx81/typebox/contributors - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/typebox