{"id":17598941,"url":"https://github.com/aaronvb/rails_react_stdio","last_synced_at":"2025-04-30T06:47:40.857Z","repository":{"id":56890670,"uuid":"50827705","full_name":"aaronvb/rails_react_stdio","owner":"aaronvb","description":"Ruby on Rails wrapper for react-stdio.","archived":false,"fork":false,"pushed_at":"2016-02-03T02:16:25.000Z","size":13,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T13:41:28.721Z","etag":null,"topics":["rails","react","ruby","stdio"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/aaronvb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-02-01T09:07:33.000Z","updated_at":"2020-05-15T17:46:54.000Z","dependencies_parsed_at":"2022-08-20T16:00:29.228Z","dependency_job_id":null,"html_url":"https://github.com/aaronvb/rails_react_stdio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronvb%2Frails_react_stdio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronvb%2Frails_react_stdio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronvb%2Frails_react_stdio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronvb%2Frails_react_stdio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aaronvb","download_url":"https://codeload.github.com/aaronvb/rails_react_stdio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249471751,"owners_count":21278005,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["rails","react","ruby","stdio"],"created_at":"2024-10-22T10:08:22.085Z","updated_at":"2025-04-18T09:33:33.987Z","avatar_url":"https://github.com/aaronvb.png","language":"Ruby","readme":"[![Build Status](https://travis-ci.org/aaronvb/rails_react_stdio.svg?branch=master)](https://travis-ci.org/aaronvb/rails_react_stdio)\n[![Coverage Status](https://coveralls.io/repos/github/aaronvb/rails_react_stdio/badge.svg?branch=master)](https://coveralls.io/github/aaronvb/rails_react_stdio?branch=master)\n***\n# rails_react_stdio\n\nThis is a simple Ruby on Rails wrapper for [react-stdio](https://github.com/mjackson/react-stdio).\n\nIf you're not familiar with react-stdio, here's a snippet from their repo:\n\n\u003e react-stdio lets you render React components on the server, regardless of the backend technology you're using.\n\n## Requirements\n- [npm](https://www.npmjs.com/)\n- [react-stdio](https://github.com/mjackson/react-stdio)\n- [Ruby on Rails](http://rubyonrails.org/)\n\n## Installation\nAdd `rails_react_stdio` to your gemfile:\n\n```ruby\ngem 'rails_react_stdio', '~\u003e 0.1.0'\n```\n\nIf your path to react-stdio is not installed in the default location `/usr/local/bin/react-stdio`, add a configuration file to your initializers folder.\n\n```ruby\nRailsReactStdio.configure do |config|\n  config.react_stdio_path = '/your/path/to/react-stdio'\nend\n```\n\n## Usage\n\nUsing rails_react_stdio is very _simple_. You just need to provide a location to your component file, and any props you wish to pass to it as a hash.\n\n```ruby\npath_to_component = ::Rails.application.assets['components/HelloWorld'].filename\n\nRailsReactStdio::React.render(path_to_component, {message: \"aaron\"})\n\n\u003e \"\u003cp data-reactid=\\\".1on4o1jtdds\\\" data-react-checksum=\\\"359665029\\\"\u003eHello, aaron\u003c/p\u003e\"\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronvb%2Frails_react_stdio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaronvb%2Frails_react_stdio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronvb%2Frails_react_stdio/lists"}