Docs / Language Manual / Libraries

Libraries

The main source of libraries is the Reason Package Index (Redex), which keeps a curated list of available packages, and is both searchable and browsable. It also has a section for unpublished packages, which usually means they're unfinished or experimental but might still serve your need.

Packages that have not been picked up by redex yet might be found by searching NPM or GitHub. Libraries that have already been wrapped with BuckleScript are customarily prefixed with bs-, e.g. bs-director. Here's a search for all of the BS related libraries on NPM.

If you can't find what you're looking for: sometimes you don't need a wrapper to use a JS library. Most JS data types, such as array and objects, map over cleanly to Reason and vice-versa. You also have access to the familiar JS API. Be sure to also check the "Interop" and "Converting from JS" sections here!