sinclairzx81/typebox

JSON Schema Type Builder with Static Type Resolution for TypeScript

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 23 minutes ago
Added to GitGenius on September 9th, 2026
Created on April 6th, 2017
Open Issues & Pull Requests: 0 (+0)
GitHub issues: Enabled
Number of forks: 213
Total Stargazers: 6,960 (+0)
Total Subscribers: 16 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.0 hours
Mean response time: 3.0 days
90th percentile: 3.9 days
Tracked items: 322

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 9% of issues opened in the past year have been closed. Three people close 86% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 0
New in 7 days: 1
Closed in 7 days: 6
Avg open age: N/A days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 1
Closed in 7 days: 6
Comments in 7 days: 6
Events in 7 days: 28

Top labels

  • review (19)
  • future (13)
  • design (9)
  • consideration (7)
  • todo (5)
  • suggestion (4)
  • discussion (3)
  • next (3)

Detailed Description

TypeBox is a JSON Schema type builder that creates in-memory JSON Schema objects with static type resolution for TypeScript.

TypeBox solves the problem of maintaining consistency between runtime validation and static type checking by unifying them into a single system. It generates JSON Schema objects that TypeScript can statically analyze while remaining compatible with standard JSON Schema validators. The library allows schemas to compose in the same way TypeScript types do, enabling developers to build complex schematics incrementally and integrate them into REST and RPC services for validating data received over the wire.

TypeBox suits projects where you need both compile-time type safety and runtime validation without maintaining separate type definitions and schemas. It works well for services that receive and validate external data, where schema drift between the type system and validation logic creates bugs. The tool is particularly valuable when you want to avoid duplicating type information across TypeScript interfaces and JSON Schema definitions. Anyone building REST APIs, RPC services, or other systems that validate incoming data should consider it, especially if they currently maintain types and schemas separately.

The project shows consistent maintenance with regular updates addressing bug fixes and feature additions. Development includes active engagement with reported issues and pull requests, indicating responsiveness to user feedback. The codebase demonstrates a focus on correctness and compatibility with JSON Schema standards, with updates ensuring alignment between generated schemas and TypeScript's type checking behavior.