Skip to content

API

Melange exposes three libraries:

  • A standard library, which mostly replicates that of OCaml for compatibility: the Stdlib library
  • Bindings to several browser and Node JavaScript APIs in the Js library
  • Data structures and collection types in the Belt library

Using one or the other will depend on your application requirements, how much integration you need with existing JavaScript libraries, or other specific characteristics of your project. In any case, the three of them can be used in the same project without issues.