Jane Street Open-Sources Bonsai OCaml UI Library
08 Aug 2026
Jane Street, the quantitative trading firm known for its heavy use of OCaml, has open-sourced Bonsai, the UI library that powers nearly all of its internal web applications. Built entirely in OCaml, Bonsai is now available for outside developers to inspect, use, and build on.
What Bonsai is
Bonsai is described as a library for building incremental, composable state machines, used to create performant, reactive web applications. Its components are implemented as purely functional state machines, and the framework relies on incrementalization — meaning values aren't recomputed until necessary, which the report frames as a potential efficiency benefit for state-heavy apps.
The library ships with several built-in tools:
- A templating language
- Support for component-specific stylesheets
- A system for whole-app automated testing
Jane Street also offers two flavors of the library: Bonsai_web, for building interactive browser-based UIs, and Bonsai_term, for interactive terminal-based UIs — giving teams flexibility across product surfaces.
Because Bonsai is written in OCaml, teams can use the same language and types across both backend and frontend code, which the report notes could reduce integration overhead for organizations already standardized on OCaml.
Why founders should care
For most early-stage founders, Bonsai is unlikely to be a near-term consideration — but for teams already building in OCaml, it could be worth a look. The report suggests a few things worth weighing:
- Reduced context-switching: Teams using OCaml on the backend may benefit from applying the same language and type system to the frontend, likely simplifying some integration work.
- Performance potential, unverified: The incremental computation model may offer performance advantages for applications with complex, frequently changing state, though the report notes no independent benchmarks exist yet.
- Battle-tested, but not guaranteed to fit: Bonsai has reportedly been used to build almost all of Jane Street's internal web apps, which could suggest a degree of production readiness. However, internal use at one company does not guarantee it will suit other organizations' needs.
- Tooling and community are open questions: Because Bonsai has been primarily an internal tool, external documentation, community support, and contribution norms are unclear from what's been shared so far.
Risks and open questions
The library's biggest adoption hurdle may simply be OCaml itself — a language less commonly used than JavaScript-based frontend stacks, which could limit its appeal to teams unfamiliar with it. Since Bonsai has mostly lived inside Jane Street, external tooling and community support may also be thinner than what founders would find with more mainstream frameworks like React or Elm.
Several details remain unclear from available information: there's no indication of when Bonsai was first built or when the open-source release happened, no data on adoption outside Jane Street, no performance benchmarks against competing frameworks, and no specifics on licensing terms or contribution guidelines. The size and maturity of any community forming around the project is also unknown at this stage.
Bottom line
Bonsai represents a rare, production-grown UI framework emerging from a company known for rigorous engineering practices. For OCaml-native teams, it could be a meaningful addition to the toolkit — particularly for those wanting unified language and types across their stack. For everyone else, it's likely more of a curiosity than a near-term option, given the current lack of clarity around community support, benchmarks, and long-term maintenance commitments.