Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/skryukov/runruby.dev

A basic playground built with ruby.wasm
https://github.com/skryukov/runruby.dev

Last synced: 1 day ago
JSON representation

A basic playground built with ruby.wasm

Awesome Lists containing this project

README

        

# RunRuby.dev

[RunRuby.dev](https://runruby.dev) brings Ruby programming into your browser, streamlining the process of writing and running Ruby code. Here's what sets it apart:

- **Simple Editing**: Easily create, rename, and manage text files and directories directly in your browser.
- **Gist integration**: Save your work to a GitHub Gist and share it with others.
- **Bundler Support**: Add a `Gemfile` to your project and click "Bundle Install". The absence of native networking in WASI is not a problem.
- **Networking**: For networking, try using `Faraday` with the `Faraday::Adapter::JS` adapter to make web requests from Ruby.wasm.
- **Quick start**: Access gems or gists quickly with `runruby.dev/{gem_name}` and `runruby.dev/gist/{id}` URLs.
- **Gems Caching**: Take advantage of the browser's cache to prevent re-downloading gems, enhancing efficiency.

Built on top of [ruby.wasm](https://github.com/ruby/ruby.wasm) 💕.

Made in Evil Martians, product consulting for developer tools.

## Development

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://pr.new/skryukov/runruby.dev)

To run project locally:

1. Install Node.js by [`asdf`](https://github.com/asdf-vm/asdf) or manually:

```sh
asdf install
```

1. Install dependencies:

```sh
npm install
```

1. Run local server:

```sh
npm run dev -- --host 0.0.0.0
```

open https://local.runruby.dev:5173/