FindSoftware

TypeBox

Runtime type system for TypeScript that builds JSON Schema objects which infer as TypeScript types and validate data.

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

Current major version
15
Last release
2026-11-125

Adoption

GitHub stars
7,0391
npm downloads a week
16,559,5447
Contributors
628
Dependent repositories
19
Dependent packages
19

Why these figures do not compare

Sources

  1. 2026-11-16: links, Written in, GitHub stars
    api.github.com/repos/sinclairzx81/typebox
  2. 2026-11-16: Maintainer, License, License model
    raw.githubusercontent.com/sinclairzx81/typebox/main/license
  3. 2026-11-16: Categories, Install with, links
    raw.githubusercontent.com/sinclairzx81/typebox/main/readme.md
  4. 2026-11-16: Multilingual
    github.com/sinclairzx81/typebox/blob/main/docs/docs/system/2_locale.html
  5. 2026-11-16: Current major version, Last release
    registry.npmjs.org/typebox
  6. 2026-11-16: First release
    api.github.com/repos/sinclairzx81/typebox/commits/0.17.7
  7. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/typebox
  8. 2026-11-16: Contributors
    api.github.com/repos/sinclairzx81/typebox/contributors
  9. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/typebox

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON