Docs / Language Manual / Libraries & Publishing
Edit

You are currently looking at the v11.0 docs, which are still a work in progress. If you miss anything, you may find it in the older v10.0 docs here.

Libraries & Publishing

ReScript libraries are just like JavaScript libraries: published & hosted on NPM. You can reuse your npm, yarn and package.json-related tools to manage them!

Tips & Tricks

Publish

We recommend you to check in your compiled JavaScript output, for its various benefits. If not, then at least consider publishing the JavaScript output by un-ignoring them in your npmignore. This way, your published ReScript package comes with plain JavaScript files that JS users can consume. If your project's good, JS users might not even realize that they've installed a library written in ReScript!

In case your library is only consumed by JS users, you may want to check out our external stdlib configuration as well.

Find Libraries

Search rescript-related packages on NPM, or use our Package Index.

If you can't find what you're looking for, remember that you don't need a wrapper to use a JS library: