For npm users
For those familiar with npm, esy allows to work with Reason/OCaml projects within the familiar npm-like workflow:
Declare dependencies in
Install and build with
Share your work with other developers by publishing on npm registry and/or GitHub.
Access packages published on opam (a package registry for OCaml) via
@opamnpm scope (for example
lwtlibrary from opam).
For opam users
For those who familiar with opam, esy provides a
powerful alternative (to the
opam tool, opam packages are still accessible
Manages OCaml compilers and dependencies on a per project basis.
Sandboxes project environment by exposing only those packages which are defined as dependencies.
Fast parallel builds which are agressively cached (even across different projects).
Keeps the ability to use packages published on opam repository.
Project metadata is managed inside
Clean environment builds for reproducibility.
Global build cache automatically shared across all projects — initializing new projects is often cheap.
File system sandboxing to prevent builds from mutating locations they don't own.
Solves environment variable pain. Native toolchains rely heavily on environment variables, and
esymakes them behave predictably, and usually even gets them out of your way entirely.
Allows symlink workflows for local development (by enforcing out-of-source builds). This allows you to work on several projects locally, make changes to one project and the projects that depend on it will automatically know they need to rebuild themselves.
Run commands in project environment quickly