Js_of_ocaml

Js_of_ocaml is a compiler from OCaml bytecode programs to JavaScript. It makes it possible to run pure OCaml programs in JavaScript environments like browsers and Node.js. A companion compiler, wasm_of_ocaml, targets WebAssembly.

Manual

API reference

See the API overview for the full list of modules, or jump to the main libraries: Js_of_ocaml.Js, Js_of_ocaml.Dom_html, Js_of_ocaml_lwt.Lwt_js_events, Js_of_ocaml_tyxml.Tyxml_js.