Bonsai is a library that is used to build browser-based frontend applications in OCaml. It builds on top of the technology and lessons learned from Incr_dom ^incr_dom, an incremental frontend framework.
The main differences between Incr_dom and Bonsai are
Incr_dom expects users to program in the Incremental monad; in Bonsai, incrementality is added for you under the hood - read moreSimilarities between Incr_dom and Bonsai:
Vdom library and associated helper libraries (lib/vdom_input_widgets, lib/vdom_keyboard, etc..) to help developers construct the view of the app.Incr_dom apps!Reading Bonsai Concepts is the best place to get an overview of the library and to build a mental model for structuring Bonsai applications.
Examples of using Bonsai in a web browser can be found in web/examples.