This project brings mruby to the browser. It uses [emscripten] (https://github.com/kripken/emscripten) to compile the mruby source code into JavaScript and runs in the browser.
Please refer to this tutorial for how to use webruby.
Currently this is still a toy project. Though several demos have been created, it hasn't been used in a production environment. Feel free to play with this, but please give it a complete evaluation before using it in your real-world project.
For Mac users: The latest version of emscripten uses python2
as the default python interpreter. If you are using a Mac and rely on the default python. Please add a link from python
to python2
before building:
$ sudo ln -s /usr/bin/python /usr/bin/python2
- Webruby tutorial - minimal example of webruby project, a full description is at here
- mruby - mruby irb powered by webruby.
- geometries - a WebGL example using webruby, mruby-js and three.js
This project is distributed under the MIT License. See LICENSE for further details.