# TypeBox

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


Source: https://findsoftware.frbit.cloud/typebox/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://sinclairzx81.github.io/typebox/
- repository: https://github.com/sinclairzx81/typebox
- docs: https://sinclairzx81.github.io/typebox/

### Identity

- status: active
- maintainer: Haydn Paterson
- maintainerType: individual
- parent: unknown
- firstRelease: 2021
- hqCountry: unknown

### Kind

- category: library
- hosting: unknown
- language: javascript
- runtime: unknown
- runtimeMin: unknown
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: multiple languages

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: npm

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 1
- latestReleaseDate: 2026-11-12

### Adoption

- githubStargazers: 7039
- packagistDownloads: not applicable
- npmWeeklyDownloads: 16559544
- contributors: 62
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 1
- dependentPackages: 1

### Sources

- urls: https://api.github.com/repos/sinclairzx81/typebox (read 2026-11-16)
- urls: https://api.github.com/repos/sinclairzx81/typebox (read 2026-11-16)
- maintainer: https://raw.githubusercontent.com/sinclairzx81/typebox/main/license (read 2026-11-16)
- language: https://api.github.com/repos/sinclairzx81/typebox (read 2026-11-16)
- category: https://raw.githubusercontent.com/sinclairzx81/typebox/main/readme.md (read 2026-11-16)
- installMethod: https://raw.githubusercontent.com/sinclairzx81/typebox/main/readme.md (read 2026-11-16)
- urls: https://raw.githubusercontent.com/sinclairzx81/typebox/main/readme.md (read 2026-11-16)
- i18n: https://github.com/sinclairzx81/typebox/blob/main/docs/docs/system/2_locale.html (read 2026-11-16)
- license: https://raw.githubusercontent.com/sinclairzx81/typebox/main/license (read 2026-11-16)
- licenseModel: https://raw.githubusercontent.com/sinclairzx81/typebox/main/license (read 2026-11-16)
- currentMajor: https://registry.npmjs.org/typebox (read 2026-11-16)
- firstRelease: https://api.github.com/repos/sinclairzx81/typebox/commits/0.17.7 (read 2026-11-16)
- latestReleaseDate: https://registry.npmjs.org/typebox (read 2026-11-16)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/typebox (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/sinclairzx81/typebox (read 2026-11-16)
- contributors: https://api.github.com/repos/sinclairzx81/typebox/contributors (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/typebox (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/typebox (read 2026-11-16)

## Notes

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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
