sinclairzx81/typebox
View on GitHub ↗ ★ 7,022 TypeScript
JSON Schema Type Builder with Static Type Resolution for TypeScript
18 mentions on Hacker News by 15 people: 1 story, 17 comments · first 2020-03-13 · latest 2025-11-23
20082026
-
…Will you support Standard Schema ( https://standardschema.dev )? How does this compare to typebox ( https://github.com/sinclairzx81/typebox )?
comment by taveras · 2025-11-23 · in Tosijs-schema is a super lightweight schema-first LLM-native JSON schema library -
…that validator. This way you write it once, it's synced and there's no need for a compiler plugin. https://github.com/sinclairzx81/typebox?tab=readme-ov-file#u...
comment by simlevesque · 2025-11-03 · in Why we migrated from Python to Node.js -
How does it compare to TypeBox? https://github.com/sinclairzx81/typebox#syntax
comment by tmcanada · 2025-08-04 · in A parser for TypeScript types, written in TypeScript types -
If you were willing to bring additional zod tooling or move to something like TypeBox ( https://github.com/sinclairzx81/typebox ), the json schema would be a direct derivation of the tools' input schemas in code.
comment by filearts · 2024-11-25 · in Model Context Protocol -
TypeBox[1] also supports bi-directional transforms. [1]: https://github.com/sinclairzx81/typebox
comment by aleclarsoniv · 2024-10-10 · in Zod: TypeScript-first schema validation with static type inference -
TypeBox[1] differentiates between optional and undefined. [1]: https://github.com/sinclairzx81/typebox
comment by aleclarsoniv · 2024-10-10 · in Zod: TypeScript-first schema validation with static type inference -
…from TypeScript definitions, which I'm currently using in an RPC library I'm working on. [1]: https://github.com/sinclairzx81/typebox [2]: https://github.com/sinclairzx81/typebox-codegen
comment by aleclarsoniv · 2024-10-10 · in Zod: TypeScript-first schema validation with static type inference -
…. Currently experimenting with programmatic generation of json schemas via https://github.com/sinclairzx81/typebox . Trying to maximize reuse of schema components. Was wondering if JSON BinPack is a good serialization format to sign
comment by saxomoose · 2024-10-03 · in Ask HN: What are you working on (September 2024)? -
…used approach in the Typescript community best: 1. Create your Schema using https://zod.dev or https://github.com/sinclairzx81/typebox or one of the other many libs. 2. Generate your types from the schema. It's very simple to create…
comment by WuxiFingerHold · 2024-02-10 · in How I write HTTP services in Go after 13 years -
…[1]: https://github.com/colinhacks/zod [2]: https://github.com/ianstormtaylor/superstruct [3]: https://github.com/sinclairzx81/typebox
comment by chriskrycho · 2023-11-03 · in Where DRY Applies -
…is adding docs, optimizing runtime perf, and publishing benchmarks (using similar techniques to https://github.com/sinclairzx81/typebox , so should land somewhere between 50-100x faster than non-optimized validators like Zod). Do you think…
comment by ssalbdivad · 2023-03-16 · in ArkType: TypeScript's 1:1 validator, optimized from editor to runtime -
…like that TypeBox uses JSON Schema underneath, so migrating to another library should be easy. [0] https://github.com/sinclairzx81/typebox [1] https://ajv.js.org/
comment by hebrox · 2022-07-28 · in Ultra-minimal JSON schemas with TypeScript inference -
There's libraries that let you define a schema programmatically, and then infer the types. https://github.com/sinclairzx81/typebox
comment by jestar_jokin · 2021-11-14 · in YAML: It's Time to Move On -
…Check out typebox. It lets you define a schema in memory and immediately have access to the types https://github.com/sinclairzx81/typebox Combined with ajv you can even have more advanced custom validation with custom error messages.
comment by johtso · 2021-08-08 · in Testing in production: using JSON Schema for 3rd party API response validation -
Using something like TypeBox [1] can help with that. [1] https://github.com/sinclairzx81/typebox
comment by hebrox · 2021-07-22 · in TypeScript 4.4 Beta -
…is useful when using Fastify [2], so that request validation can happen with less boilerplate. [1] https://github.com/sinclairzx81/typebox [2] https://www.fastify.io/docs/latest/Validation-and-Serializat...
comment by franky47 · 2020-03-13 · in Designing the perfect TypeScript schema validation library