ruby.wasm also enables JavaScript to call Ruby libraries.

In 2022, ruby.wasm emerged and has advanced in the realm of Ruby in browser. Examples include loading Ruby scripts from files, automatic conversion of JavaScript native types, and Promise operations. On the other hand, there has been no progress in executing Ruby scripts from JavaScript. Currently, only minimal eval functionality is available. By implementing features equivalent to Ruby in browser—such as loading scripts from files, automatic conversion of native types, and method calls—we can expand Ruby's use cases. For example, it could enable executing Ruby libraries from JavaScript running in browsers or Node.js servers.

  • Shigeru Nakajima
    Shigeru Nakajima

    I am a software engineer at Luxiar Inc. and my hobby is to run Ruby in browser. at Ruby Kaigi 2023, 2024 and 2025, I talked about Ruby in browser using ruby.wasm. Now I am interested in calling Ruby libraries from JavaScript.