Introducing the Bindoj library, a datatype-centric generative programming libr...
summary
Bindoj claims to be a datatype-centric generative programming toolkit for OCaml that represents type descriptions as values and emits working artifacts. It encodes type-description as OCaml values and produces OCaml type defs, TypeScript types (flat-tagged ADTs), JSON codecs, JSON Schema and generates OCaml, TypeScript, JSON codecs and OpenAPI 3.0. It also provides an API directory -> server bridge and typed client generator; the project is alpha but used in a production deployment soon and is adding session types and more target languages.
AI-written summary · about
chapters (8)
- 0:00Bindoj library intro
- 2:05High-level overview
- 3:56Type description examples
- 7:12API directory & RPC
- 11:30Use cases & languages
- 12:58Concrete project scenario
- 14:46Design choices & plans
- 16:39Current status & next steps
related talks
08mfp-bindgen: Full-stack plugins made easy
14mIncremental Bidirectional Typing via Order Maintenance
24mReliable I/O with the TypeScript Compiler API
23mStructured diagnostics for the OCaml compiler
24mCode Generation via Meta-programming in Dependently Typed Proof Assistants
48mDo you know these Libraries?
32mThe "Perfect" Tooling Library
32mTooling Like It's 2025
