Skip to content
Javascript back-end for OCamlc
OCaml JavaScript
Find file
Failed to load latest commit information.
bin handle args with spaces
build ocamljs in setup
examples build planet example
src Merge branch 'master' of
test printf fixes
tools oops obsolete gears_init.js
.exclude make dist
.gitignore don't ignore primitives.js and support.js
LICENSE copyrights
Makefile make dist
README.markdown readme
TODO todos
configure bumped versions



Ocamljs is a system for compiling OCaml to Javascript. It includes a Javascript back-end for the OCaml compiler, as well as several support libraries, such as bindings to the browser DOM. Ocamljs also works with orpc for RPC over HTTP, and froc for functional reactive browser programming. The full OCaml language and much of the OCaml standard library is supported. There is special support for the object system so Javascript objects may be called from OCaml and vice-versa.

You can download ocamljs at

See Introduction and Installation.

For a quick start:

  1. Unpack OCaml source adjacent to the ocamljs tree
  2. ./configure
  3. make
  4. make install
  5. make examples

Ocamljs is written by Jake Donham, with contributions from

  • Dave Benjamin (jQuery binding and examples)
  • Haoyang Wang
  • Mike Wells
  • Stepan Zastupov
Something went wrong with that request. Please try again.