Hacker GitHub

← All repos

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

Mentions per year 18 mentions · busiest year 2024 (6)
20082026
  1. …Will you support Standard Schema ( https://standardschema.dev )? How does this compare to typebox ( https://github.com/sinclairzx81/typebox )?
  2. …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
  3. How does it compare to TypeBox? https://github.com/sinclairzx81/typebox#syntax
  4. …and the new "overwrite" in Zod 4 was just what I wanted. TypeBox does have a transform ( https://github.com/sinclairzx81/typebox?tab=readme-ov-file#t... ) but you can't transform and then apply more validations and then maybe another…
    comment by hdjrudni · 2025-05-20 · in Zod 4
  5. 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
  6. TypeBox[1] also supports bi-directional transforms. [1]: https://github.com/sinclairzx81/typebox
  7. TypeBox[1] differentiates between optional and undefined. [1]: https://github.com/sinclairzx81/typebox
  8. …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
  9. …. 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
  10. …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
  11. …[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
  12. …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…
  13. …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/
  14. 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
  15. …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.
  16. 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
  17. …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...