DocsPlaygroundBlogCommunityPackages
  • Playground
  • Blog
  • Community
  • Packages
  • X
  • Bluesky
  • GitHub
  • Forum
Language ManualAPISyntax LookupReact
v11v9.1 - v10.1v8.2 - v9.0v6.0 - v8.1
Overview
  • Introduction
  • Installation
  • Editor
Guides
  • Converting from JS
  • Dead Code Analysis in ReScript
  • Project Structure
Language Features
  • Overview
  • Let Binding
  • Type
  • Primitive Types
  • Tuple
  • Record
  • Object
  • Dictionary
  • Variant
  • Polymorphic Variant
  • Null, Undefined and Option
  • Array & List
  • Function
  • If-Else & Loops
  • Pipe
  • Pattern Matching / Destructuring
  • Mutation
  • JSX
  • Exception
  • Lazy Value
  • Promises
  • Async / Await
  • Tagged templates
  • Module
  • Import & Export
  • Attribute (Decorator)
  • Reserved Keywords
  • Equality and Comparison
JavaScript Interop
  • Interop Cheatsheet
  • Embed Raw JavaScript
  • Shared Data Types
  • External (Bind to Any JS Library)
  • Bind to JS Object
  • Bind to JS Function
  • Import from / Export to JS
  • Bind to Global JS Values
  • JSON
  • Inlining Constants
  • Use Illegal Identifier Names
  • Generate Converters & Helpers
  • Browser Support & Polyfills
  • Libraries & Publishing
  • TypeScript
Build System
  • Overview
  • Configuration
  • Configuration Schema
  • External Stdlib
  • Interop with JS Build Systems
  • Performance
  • Warning Numbers
Advanced Features
  • Extensible Variant
  • Scoped Polymorphic Types
  • Module Functions
  • Generalized Algebraic Data Types
Docs / Language Manual /
Edit

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:

  • Most JS data types, such as array and objects, map over cleanly to ReScript and vice-versa.

  • You also have access to the familiar Core API.

  • You can use a JavaScript library without needing to install dedicated binding libraries. Check the external page.

© 2025 The ReScript Project

About
  • Community
  • ReScript Association
Find us on