BuckleScript is mostly just OCaml, so they share the same standard library:
Note that BuckleScript is currently at OCaml v4.02.3. We will upgrade to a newer OCaml later on.
In addition, we provide a few extra modules:
- Belt: the BuckleScript standard library (beta). This standard library provides useful functions in addition to the OCaml standard library.
- Dom: contains DOM types. The DOM is very hard to bind to, so we've decided to only keep the types in the stdlib and let users bind to the subset of DOM they need downstream.
- Node: for node-specific APIs. Experimental; contribution welcome!
- Js: all the familiar JS APIs and modules are here! E.g. if you want to use the JS Array API over the OCaml Array API because you're more familiar with the former, go ahead.
The full index of modules is available at: https://bucklescript.github.io/bucklescript/api/