{"id":20663518,"url":"https://github.com/desktop-cgi/wasm-ruby","last_synced_at":"2026-04-17T20:31:49.150Z","repository":{"id":178599902,"uuid":"662070981","full_name":"desktop-cgi/wasm-ruby","owner":"desktop-cgi","description":"wasm-ruby files for ruby versions","archived":false,"fork":false,"pushed_at":"2023-12-25T12:02:15.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T08:59:43.296Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/desktop-cgi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-04T09:42:29.000Z","updated_at":"2023-07-04T11:25:28.000Z","dependencies_parsed_at":"2023-12-25T12:46:50.876Z","dependency_job_id":"22edb5ec-d338-4afd-86e0-4207904dfba0","html_url":"https://github.com/desktop-cgi/wasm-ruby","commit_stats":null,"previous_names":["desktop-cgi/wasm-ruby"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/desktop-cgi/wasm-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/desktop-cgi%2Fwasm-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/desktop-cgi%2Fwasm-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/desktop-cgi%2Fwasm-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/desktop-cgi%2Fwasm-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/desktop-cgi","download_url":"https://codeload.github.com/desktop-cgi/wasm-ruby/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/desktop-cgi%2Fwasm-ruby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31944972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T19:18:30.703Z","updated_at":"2026-04-17T20:31:49.132Z","avatar_url":"https://github.com/desktop-cgi.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wasm-ruby\nwasm-ruby files for ruby versions\n\nWebAssembly port of CRuby by Emscripten with a thin JavaScript wrapper to run ruby scripts in node.js\n\n\n#### WebAssembly port of CRuby with WASI.\n\n\n##### USAGE: \n\n```\nimport fs from \"fs/promises\";\nimport { DefaultRubyVM } from \"@ruby/wasm-wasi/dist/node.cjs.js\";\n\nconst main = async () =\u003e {\n  const binary = await fs.readFile(\n    //  Tips: Replace the binary with debug info if you want symbolicated stack trace.\n    //  (only nightly release for now)\n    //  \"./node_modules/ruby-head-wasm-wasi/dist/ruby.debug+stdlib.wasm\"\n    \"./node_modules/ruby-head-wasm-wasi/dist/ruby.wasm\"\n  );\n  const module = await WebAssembly.compile(binary);\n  const { vm } = await DefaultRubyVM(module);\n\n  vm.eval(`\n    luckiness = [\"Lucky\", \"Unlucky\"].sample\n    puts \"You are #{luckiness}\"\n  `);\n};\n\nmain();\n```\n\n[Other RUBY WASI WASM Usage demos](https://github.com/desktop-cgi/wasm-ruby/demos/demos.node.head.wasi.wasm.js)\n\n\n[https://www.npmjs.com/package/ruby-head-wasm-wasi](https://www.npmjs.com/package/ruby-head-wasm-wasi)\n\n[https://www.npmjs.com/package/ruby-head-wasm-emscripten](https://www.npmjs.com/package/ruby-head-wasm-emscripten)\n\n[https://www.npmjs.com/package/ruby-wasm-emscripten](https://www.npmjs.com/package/ruby-wasm-emscripten): Note: The emscripten demos for the port of ruby.wasm currently has issues and throws an error. \n\n\n### BUILD REPO SCRIPTS:\n\n[https://github.com/ruby/ruby.wasm](https://github.com/ruby/ruby.wasm)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesktop-cgi%2Fwasm-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdesktop-cgi%2Fwasm-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesktop-cgi%2Fwasm-ruby/lists"}