therubyracer VS execjs

Compare therubyracer vs execjs and see what are their differences.

therubyracer

Embed the V8 Javascript Interpreter into Ruby [Moved to: https://github.com/rubyjs/therubyracer] (by cowboyd)

execjs

Run JavaScript code from Ruby (by sstephenson)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
therubyracer execjs
1 6
1,665 1,173
- -
0.0 0.0
over 2 years ago about 8 years ago
C++ Ruby
- MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

therubyracer

Posts with mentions or reviews of therubyracer. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-02-02.
  • ExecJS and could not find a JavaScript runtime
    6 projects | /r/codehunter | 2 Feb 2022
    I'm trying to use the Mongoid / Devise Rails 3.1 template (Mongoid and Devise), and I keep getting an error stating ExecJS cannot find a JavaScript runtime. Fair enough when I didn't have any installed, but I've tried installing Node.js, Mustang and the Ruby Racer, but nothing is working.

execjs

Posts with mentions or reviews of execjs. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-01.
  • How do I install this?
    3 projects | /r/Ubuntu | 1 Apr 2023
    ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. /home/jackson/.rvm/gems/ruby-2.1.1/gems/execjs-2.0.2/lib/execjs/runtimes.rb:51:in autodetect' /home/jackson/.rvm/gems/ruby-2.1.1/gems/execjs-2.0.2/lib/execjs.rb:5:in' /home/jackson/.rvm/gems/ruby-2.1.1/gems/execjs-2.0.2/lib/execjs.rb:4:in ' /home/jackson/.rvm/gems/ruby-2.1.1/gems/uglifier-2.5.0/lib/uglifier.rb:3:inrequire' /home/jackson/.rvm/gems/ruby-2.1.1/gems/uglifier-2.5.0/lib/uglifier.rb:3:in ' /home/jackson/transitmix/Rakefile:3:in' /home/jackson/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:22:in eval' /home/jackson/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:22:in
  • File to import not found or unreadable: select2
    3 projects | /r/rails | 4 May 2022
    source 'https://rubygems.org' ruby '2.7.5' gem 'activeadmin', '2.9.0' gem 'activeadmin_quill_editor' gem 'active_reporting' gem 'activeadmin-searchable_select' gem 'active_admin_import' gem 'api_guard' gem 'apipie-rails' gem 'azure-storage-blob', require: false gem 'bcrypt' gem 'blind_index' gem 'browser' gem 'coffee-rails' gem 'dalli' gem 'devise' gem 'emoji_flag' gem 'forecast_io' gem 'flag_shih_tzu' gem 'groupdate' gem 'i18n-active_record', github: 'svenfuchs/i18n-active_record', require: 'i18n/active_record' gem 'twilio-ruby' gem 'feedjira' gem 'httparty', '0.18.1' gem 'jquery-rails' gem 'jwt' gem 'lockbox' gem 'pg' gem 'puma' gem 'rails', '6.1.4.1' gem 'rack-cors' gem 'rack-timeout' gem 'redis' gem 'rollbar' gem 'rqrcode' gem 'rubyzip' gem 'ruby-openai' gem 'sidekiq' gem 'sinatra', require: nil # if you require 'sinatra' you get the DSL extended to Object gem 'slack-notifier' gem 'slim' # slim and Sinatra are for the Sidekiq web ui gem 'will_paginate' group :assets do gem 'sass-rails', '~> 5.0' # See https://github.com/sstephenson/execjs#readme for more supported runtimes # gem 'therubyracer', platforms: :ruby gem 'mini_racer', github: 'sqreen/mini_racer', branch: 'use-libv8-node' gem 'uglifier', '>= 1.0.3' end group :development do gem 'dotenv-rails', groups: :test gem 'launchy' gem 'listen' gem 'pry' gem 'rubocop' gem 'spring' end group :test do gem 'capybara' gem 'database_cleaner', '2.0.1' gem 'factory_bot_rails' gem 'ffaker' gem 'rspec-rails', '4.0.0.rc1' end
  • Rails: Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
    2 projects | /r/codehunter | 23 Apr 2022
    I'm using Rails 3.1.1 on Ruby 1.8.7 and get presented with a 'Ruby (Rack) application could not be started error' from PhusionPassenger. It states that it 'Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)'. Searching for this on Dreamhost's wiki has suggested a solution to install 'therubyracer' gem.
  • Rails - Could not find a JavaScript runtime?
    1 project | /r/codehunter | 16 Mar 2022
    I created a new Rails project using rails 3.1.0.rc4 on my local machine but when I try to start the server I get:Could not find a JavaScript runtime. See here for a list of available runtimes. (ExecJS::RuntimeUnavailable)
  • ExecJS and could not find a JavaScript runtime
    6 projects | /r/codehunter | 2 Feb 2022
    I could not find a JavaScript runtime. See sstephenson/ExecJS (GitHub) for a list of available runtimes (ExecJS::RuntimeUnavailable).
  • rails error: `autodetect': Could not find a JavaScript runtime.
    1 project | dev.to | 16 Jan 2021
    `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.

What are some alternatives?

When comparing therubyracer and execjs you can also consider the following projects:

rails3-mongoid-devise - An example Rails 3.2 app with Mongoid for data, Devise for authentication.

redtube - Redtube API Wrapper written in Elixir

mongoid - Ruby ODM framework for MongoDB

select2-rails - Integrate Select2 javascript library with Rails asset pipeline

devise - Flexible authentication solution for Rails with Warden. [Moved to: https://github.com/heartcombo/devise]

mustang - (proof-of-concept) Awesome V8 JavaScript engine embedded into Ruby's shiny body.

Zendex - An Elixir wrapper for the Zendesk API.

airbax - Exception tracking from Elixir to Airbrake

transitmix - For those who want to remix more than the streets.

rubygems - Library packaging and distribution for Ruby.