Run Ruby in the browser using WebAssembly
See the codeRun.rb is a tool to run Ruby code inside the browser.
This project compiles Ruby to WebAssembly. Inside /src/emscripten you'll find (currently) Ruby 2.6.0 and the tooling required to compile Ruby to WASM.
This project was bootstrapped with Create React App, but then we ejected it for WebAssembly reasons.
<script src="https://runrb.io/ruby-2.6.1"> and ruby("yourcode") // => PromiseTo compile Ruby into WebAssembly, you'll need Docker installed.
In the project directory, you can run: make
To run the application locally, you'll need NodeJS and Yarn installed.
In the project directory, you can run:
yarn startRuns the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
yarn testWe sure could use some tests. 😉
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
1,082 followers · starred Nov 2021
535 followers · starred Jun 2021
1,421 followers · starred Feb 2019
256 followers · starred Jan 2019
Run Ruby in the browser using WebAssembly
See the codeRun.rb is a tool to run Ruby code inside the browser.
This project compiles Ruby to WebAssembly. Inside /src/emscripten you'll find (currently) Ruby 2.6.0 and the tooling required to compile Ruby to WASM.
This project was bootstrapped with Create React App, but then we ejected it for WebAssembly reasons.
<script src="https://runrb.io/ruby-2.6.1"> and ruby("yourcode") // => PromiseTo compile Ruby into WebAssembly, you'll need Docker installed.
In the project directory, you can run: make
To run the application locally, you'll need NodeJS and Yarn installed.
In the project directory, you can run:
yarn startRuns the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
yarn testWe sure could use some tests. 😉
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
1,082 followers · starred Nov 2021
535 followers · starred Jun 2021
1,421 followers · starred Feb 2019
256 followers · starred Jan 2019