Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including fb-bs-platform with all npm packages installed. Try it out:

fb-bs-platform lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("fb-bs-platform/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

fb-bs-platform v4.0.6010

bucklescript compiler, ocaml standard libary by bucklescript and its required runtime support

BuckleScript: A JavaScript backend for OCaml focused on smooth integration and clean generated code.

NPM Build Status Coverage Status


Please see the documentation site.




  • Thanks to the OCaml team, obviously, without such a beautiful yet practical language, this backend would not exist
  • Thanks to ninja-build, BuckleScript also comes with a blazing fast build tool on top of it, ninja is a truly well engineered scalable build tool
  • Thanks to Bloomberg! This project began at Bloomberg and was published in 2016; without the support of Bloomberg, it would not have happened. Now that the project has grown and developed its own community, it has moved to its own GitHub organization.



The ocaml directory contains the official OCaml compiler (version 4.02.3). Refer to its copyright and license notices for information about its licensing.

The ninja-build directory contains the official ninja-build (version 1.7.2). Refer to its copyright and license notices for information about its licensing.

BuckleScript builds on parts of js_of_ocaml:

BuckleScript builds on parts of OCaml:

These modules were adapted from ocaml/bytecomp/ for JavaScript specific optimization purposes.

jscomp/core/ is adapted from ocaml/driver/ It is not actively used but demonstrates that it is easy to assemble a whole compiler using the OCaml compiler libraries. It also shows how to add more compilation flags to a JS backend.

jscomp/stdlib is copied from ocaml/stdlib. It is compiled to JavaScript and included with BuckleScript.

jscomp/test is based on ocaml/testsuite.

BuckleScript unittest builds on parts of OUnit

  • jscomp/ounit is adapted from ounit, the unit test utilities are only used for dev purpose, they are not required for distribution
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free