{"id":41245085,"url":"https://github.com/woxtu/rbscript","last_synced_at":"2026-01-23T01:26:07.328Z","repository":{"id":57702089,"uuid":"498067287","full_name":"woxtu/rbscript","owner":"woxtu","description":"Run Ruby in your HTML","archived":false,"fork":false,"pushed_at":"2022-06-07T12:24:47.000Z","size":46,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-20T05:06:03.727Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/woxtu.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}},"created_at":"2022-05-30T19:08:49.000Z","updated_at":"2022-06-07T15:31:51.000Z","dependencies_parsed_at":"2022-09-26T21:11:02.876Z","dependency_job_id":null,"html_url":"https://github.com/woxtu/rbscript","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/woxtu/rbscript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woxtu%2Frbscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woxtu%2Frbscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woxtu%2Frbscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woxtu%2Frbscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/woxtu","download_url":"https://codeload.github.com/woxtu/rbscript/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woxtu%2Frbscript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28677353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T01:00:35.747Z","status":"ssl_error","status_checked_at":"2026-01-23T01:00:19.529Z","response_time":144,"last_error":"SSL_read: 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":["ruby"],"created_at":"2026-01-23T01:26:06.662Z","updated_at":"2026-01-23T01:26:07.321Z","avatar_url":"https://github.com/woxtu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RbScript\n\n[![npm](https://img.shields.io/npm/v/rbscript.svg?style=flat-square)](https://www.npmjs.com/package/rbscript)\n\nRun Ruby in your HTML.\n\n```html\n\u003cscript type=\"text/ruby\"\u003e\n  puts 'Hello, world!'\n\u003c/script\u003e\n```\n\nThis library is built using [ruby.wasm](https://github.com/ruby/ruby.wasm), and greatly inspired by [PyScript](https://pyscript.net/).\n\n## Installation\n\nImport the RbScript file to your HTML:\n\n```html\n\u003cscript defer src=\"https://cdn.jsdelivr.net/npm/rbscript/dist/rbscript.umd.js\"\u003e\u003c/script\u003e\n```\n\n## Feature\n\n### Ruby code execution\n\nYou can execute Ruby codes written in the `\u003cscript\u003e` tag with `text/ruby` type.\n\n```html\n\u003cscript type=\"text/ruby\" src=\"./greeting.rb\"\u003e\u003c/script\u003e\n```\n\n```html\n\u003cscript type=\"text/ruby\"\u003e\n  puts 'Hi!'\n\u003c/script\u003e\n```\n\n### Event handling\n\nYou can specify callback functions using data attributes whose name starts with `rb-`.\n\n```html\n\u003cbutton data-rb-onclick=\"greeting\"\u003eHi!\u003c/button\u003e\n\n\u003cscript type=\"text/ruby\"\u003e\n  def greeting(event)\n    puts 'Hi!'\n  end\n\u003c/script\u003e\n```\n\n## License\n\nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoxtu%2Frbscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwoxtu%2Frbscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoxtu%2Frbscript/lists"}