markdoc-rails VS execjs

Compare markdoc-rails vs execjs and see what are their differences.

markdoc-rails

Example of rendering markdown using Markdoc with Ruby on Rails (by cjavilla-stripe)

execjs

Run JavaScript code from Ruby (by rails)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
markdoc-rails execjs
1 4
0 514
- 0.6%
0.0 6.5
almost 2 years ago 2 months ago
Ruby 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.

markdoc-rails

Posts with mentions or reviews of markdoc-rails. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-07-13.
  • Rendering markdown with Markdoc in Rails
    7 projects | dev.to | 13 Jul 2022
    You can look at the source on GitHub if you’re interested in how I build the index route, as I’m most excited to show you the show route where the Markdoc magic happens.

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 2022-07-13.
  • What is the best way to deploy a rails eCommerce app
    1 project | /r/rails | 4 Feb 2023
    So it happened again. "ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime." Should we be installing this as a gem? I would have thought that this would be in your build pack. It's a standard Rails 7.0.4, Ruby 3.2.0 app, with only three added gems over the defaults: "haml-rails", 'bootstrap', 'acts-as-taggable-on' #20 1.847 rails aborted! 20 1.847 ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/execjs-2.8.1/lib/execjs/runtimes.rb:58:in `autodetect' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/execjs-2.8.1/lib/execjs.rb:5:in `' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/execjs-2.8.1/lib/execjs.rb:4:in `' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/autoprefixer-rails-10.4.7.0/lib/autoprefixer-rails/processor.rb:4:in `' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/autoprefixer-rails-10.4.7.0/lib/autoprefixer-rails.rb:39:in `require_relative' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/autoprefixer-rails-10.4.7.0/lib/autoprefixer-rails.rb:39:in `' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/bootstrap-5.2.3/lib/bootstrap/engine.rb:3:in `' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/bootstrap-5.2.3/lib/bootstrap.rb:61:in `register_rails_engine' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/bootstrap-5.2.3/lib/bootstrap.rb:11:in `load!' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/bootstrap-5.2.3/lib/bootstrap.rb:75:in `' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' 20 1.848 /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/runtime.rb:60:in `block (2 levels) in require' 20 1.848 /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/runtime.rb:55:in `each' 20 1.848 /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/runtime.rb:55:in `block in require' 20 1.848 /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/runtime.rb:44:in `each' 20 1.848 /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/runtime.rb:44:in `require' 20 1.848 /usr/local/bundle/gems/bundler-2.4.1/lib/bundler.rb:195:in `require' 20 1.848 /app/config/application.rb:7:in `' 20 1.848 /app/Rakefile:4:in `require_relative' 20 1.848 /app/Rakefile:4:in `' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4.2/lib/rails/commands/rake/rake_command.rb:20:in `block in perform' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4.2/lib/rails/commands/rake/rake_command.rb:18:in `perform' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4.2/lib/rails/command.rb:51:in `invoke' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4.2/lib/rails/commands.rb:18:in `' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' 20 1.848 /app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require' 20 1.848 bin/rails:5:in `' 20 1.848 (See full trace by running task with --trace) Error failed to fetch an image or build from source: error building: executor failed running [/bin/bash -o pipefail -c ${BUILD_COMMAND}]: exit code: 1
  • Error when deploying Rails application to Fly.io
    1 project | /r/rails | 27 Nov 2022
    [stage-3 7/7] RUN bin/rails fly:build: 20 1.849 rails aborted! 20 1.849 ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.
  • Rendering markdown with Markdoc in Rails
    7 projects | dev.to | 13 Jul 2022
    Eventually, we’ll want to call this JavaScript from a Rails controller using ExecJS or MiniRacer or some similar tool. None of the Ruby-to-JavaScript gems I found were sophisticated enough to know how to load npm modules with common.js or ES module syntax, so my solution is to just build the JavaScript with a watcher and have that run as part of bin/dev.
  • centos7 nodejs-6.xx yum install fail
    2 projects | /r/ositotech_chiken | 7 Feb 2022
    「Error: The application encountered the following error: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)」

What are some alternatives?

When comparing markdoc-rails and execjs you can also consider the following projects:

markdoc - A powerful, flexible, Markdown-based authoring framework.

mini_racer - Minimal embedded v8

node-build

eleventy 🕚⚡️ - A simpler site generator. Transforms a directory of templates (of varying types) into HTML.

Bridgetown - A next-generation progressive site generator & fullstack framework, powered by Ruby

lit - Lit is a simple library for building fast, lightweight web components.