# sinclairzx81/typebox

JSON Schema Type Builder with Static Type Resolution for TypeScript

Repository: https://github.com/sinclairzx81/typebox
Canonical: https://ross.abutalabs.com/products/typebox
Homepage: https://sinclairzx81.github.io/typebox/
Language: TypeScript
License: NOASSERTION
License Family: other
Topics: typescript, jsonschema
Last push: 2026-08-26T09:48:31+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 3436, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6929, forks 212 (observed 2026-08-28T04:09:51.461978+00:00)

## What it is
TypeBox is a TypeScript library for building JSON Schema objects that also infer as static TypeScript types. It provides a unified runtime and compile-time type system for validating data in REST and RPC services.

## Use cases
- build  schemas in typescript
- validate request payloads at runtime
- infer typescript types from schemas
- validate data received over the wire in rpc services
- define shared schemas for api contracts

## When to choose
- you need JSON Schema validation with matching static TypeScript types
- you want a single schema definition usable at runtime and compile time
- you are building REST or RPC services that validate incoming data

## When to avoid
- you only need compile-time types with no runtime validation
- your project does not use TypeScript or JSON Schema

## Facets
- artifact type: library
- maturity: stable
- function: serialization, type-system, developer-tools
- domain: developer-tools, apis, web-development
- platform: cross-platform
- tags: -schema, runtime-validation, static-types, schema-builder, nodejs, typescript

## Member repositories
- sinclairzx81/typebox (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:51.461978+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:41:16.318957+00:00, confidence not recorded.
  - readme: https://github.com/sinclairzx81/typebox (fetched 2026-08-28T04:09:51.461978+00:00, sha 864c175bd83c)
  - homepage: https://sinclairzx81.github.io/typebox/ (fetched 2026-08-29T08:37:24.194401+00:00, sha 9dd574ec8232)
- Data as of 2026-08-30T08:39:29.467469+00:00.
