opal-jquery
opal-d3
opal-jquery | opal-d3 | |
---|---|---|
5 | 2 | |
189 | 21 | |
0.0% | - | |
4.7 | 3.1 | |
4 months ago | 8 months ago | |
Ruby | Ruby | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
opal-jquery
-
Open Source Adventures: Episode 59: What Opal Ruby is not
It's possible to build a framework on top of Opal Ruby, like notably Hypestack, which uses uses Opal and React. There are also some wrappers like opal-jquery, and I even created opal-d3 once upon a time, but I don't actively maintain it anymore.
-
Opal 1.5.0 released - compile Ruby to JS and run it in a browser
You can use opal-jquery, which is a wrapping layer over jQuery and in its API it combines the best worlds of jQuery and Ruby.
-
Using Opal Ruby with Rails 7
Next, let's refactor the code to utilize Opal jQuery in Ruby instead of plain Opal. This simplifies the code in app/assets/javascript/application.js.rb quite a bit:
-
Opal 1.3 released
Opal itself is a low-level thing, not depending on Rails whatsoever. We provide an official Gem for integration with Rails that integrates everything nicely and allows you to have .rb files in your JavaScript assets directory. Unlike Rails, Opal is not opinionated, to interface with web browser APIs properly you need to either use a library that wraps DOM directly, use a similar one that wraps jQuery or use Hyperstack, a fully-fledged Rails-integrated framework based on React that also allows you to share your models between frontend and backend. It's also possible to not use any of those and interface JavaScript APIs directly using an API that looks like this: $$[:document][:location].replace("https://opalrb.com/") or simply embed JavaScript with a backtick notation: `document.location.replace(#{@url})`.
opal-d3
-
Open Source Adventures: Episode 59: What Opal Ruby is not
It's possible to build a framework on top of Opal Ruby, like notably Hypestack, which uses uses Opal and React. There are also some wrappers like opal-jquery, and I even created opal-d3 once upon a time, but I don't actively maintain it anymore.
-
Open Source Adventures: Episode 28: Introduction to D3
D3 is a JavaScript framework for data visualization. I've used it a bit a while back, even created Opal Ruby bindings, but that was many versions ago.
What are some alternatives?
Opal - Ruby ♥︎ JavaScript
d3-dsv - A parser and formatter for delimiter-separated values, such as CSV and TSV.
ajax-datatables-rails - A wrapper around DataTable's ajax methods that allow synchronization with server-side pagination in a Rails app
d3-collection - Handy data structures for elements keyed by string.
opal-devtools - A Browser extension providing tools for developing with Opal Ruby in the browser.
d3-interpolate - Interpolate numbers, colors, strings, arrays, objects, whatever!
opal-browser - Browser support for Opal.
d3-random - Generate random numbers from various distributions.
snabberb - A simple component view framework for Ruby Opal based on Snabbdom
d3-geo - Geographic projections, spherical shapes and spherical trigonometry.
opal-js_wrap-three - Three.JS for frontend Ruby (Opal) with almost 0 bindings
d3-selection - Transform the DOM by selecting elements and joining to data.