Is bonsai_web_ui_codemirror public?

Looking through the Bonsai source code, it doesn’t seem to be. I believe a lot of the examples are only buildable inside Jane Street. One that works for sure is bonsai/examples/open_source/rpc_chat at master · janestreet/bonsai · GitHub. I got it to run locally by copying the 3 folders into a new directory, making the following change: fix: allow open source rpc chat example to compile by askvortsov1 · Pull Request #32 · janestreet/bonsai · GitHub (not sure it’s actually necessary if building the entire repo, maybe the PR is unnecessary).

In the root directory of that new repo, I also added a blank dune file and basic dune-project and rpc_chat.opam so it would build.

If you’re interested in learning Bonsai, you might find Tutorial: Full-Stack Web Dev in OCaml w/ Dream, Bonsai, and GraphQL interesting. I’m also working on several guided Bonsai tutorials that I’m hoping to release soon; if you’re interested in pilot testing those, let me know!

1 Like