ruby.wasm

approved

by geeknees

Run ruby code in your notes using WebAssembly.

8 stars487 downloadsUpdated 2mo agoMIT

Obsidian RubyWasm Plugin

This is a ruby.wasm plugin for Obsidian (https://obsidian.md).

The plugin downloads the selected Ruby WebAssembly runtime from jsDelivr the first time you run a command so the shipped main.js stays small enough for Obsidian Sync.

Ruby versions

You can choose the runtime version in Settings -> Community plugins -> ruby.wasm.

Currently supported:

  • Ruby HEAD
  • Ruby 4.0
  • Ruby 3.4
  • Ruby 3.3
  • Ruby 3.2

Features

  • Run the selected Ruby code from the editor
  • Run the whole current Ruby code block when nothing is selected
  • Show stdout, stderr, return value, and errors separately
  • Add a Run button under rendered ruby code blocks for a lightweight REPL flow
  • Choose the Ruby runtime version from plugin settings

How to use

Select a code block

Execute command

Get Results

API Documentation

See https://github.com/obsidianmd/obsidian-api

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.