Ruby Oc

OpenComponents for Ruby
Alternatives To Ruby Oc
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
4 years ago2epl-1.0Clojure
A minimal web API rendering SMILES molecules
Oc Client Node12
2 years ago2JavaScript
The OpenComponents Node client
Ruby Oc5317 years ago5November 10, 20152mitRuby
OpenComponents for Ruby
Node Views3
9 years ago1JavaScript
Views registry and rendering for node.js
Alternatives To Ruby Oc
Select To Compare

Alternative Project Comparisons


Build Status Coverage Status Code Climate Gem Version Dependency Status

OpenComponents for Ruby


This gem is still under heavy development and the API is likely to change at any time.

Getting Started

Add the gem to your Gemfile and run bundle install:

gem 'opencomponents', '~> 0.4.0'

By default, the gem will attempt to use a component registry located at http://localhost:3030. If you want to use a different registry, you can configure OpenComponents to use it with:

OpenComponents.configure { |config| config.registry = '' }

Getting Rendered Components

To request an OpenComponent with its rendered HTML, you can create and load a new RenderedComponent object.

component ='my-awesome-component')

Optionally, you can also specify parameters, the component version, and additional HTTP headers to request:

component =
  params: {name: 'Kate'},
  version: '1.0.2',
  headers: {accept_language: 'emoji'}

Getting Unrendered Components

If you'd like to perform the component rendering yourself, you can request an unrendered component from a registry using a UnrenderedComponent object.

component ='my-awesome-component')

You can use the same optional params, version, and headers arguments as RenderedComponents.

Note: UnrenderedComponents will only fetch component data for you - they do not provide an interface for rendering them. At the moment, it's up to you to determine the best way to render the template.


Individual integrations for rendering components in Rails and Sinatra are available.


Would be rad. Open a PR or Issue if you have an idea for improvements.


Copyright 2015 OpenTable. See LICENSE for details.

Popular Rendering Projects
Popular Registry Projects
Popular Graphics Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.