Stimulus VS Turbolinks

Compare Stimulus vs Turbolinks and see what are their differences.

Stimulus

A modest JavaScript framework for the HTML you already have (by hotwired)

Turbolinks

Turbolinks makes navigating your web application faster (by turbolinks)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
Stimulus Turbolinks
111 27
12,429 12,722
0.5% -
6.8 0.9
about 8 hours ago over 2 years ago
TypeScript TypeScript
MIT License 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.

Stimulus

Posts with mentions or reviews of Stimulus. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-27.
  • Turbo Streaming Modals in Ruby on Rails
    4 projects | dev.to | 27 Mar 2024
    I also recommend checking out the docs for Stimulus and Turbo to familiarise yourself with all their features and the APIs used in this series.
  • Google: Angular and Wiz Are Merging
    3 projects | news.ycombinator.com | 21 Mar 2024
    Any tips on preparing to work with Wiz as an incoming intern. I heard its identical to Stimulus: https://stimulus.hotwired.dev/
  • How to integrate Component Architecture into Symfony?
    2 projects | dev.to | 15 Mar 2024
    use Stimulus
  • Build Drag and Drop with Rails Hotwire
    4 projects | dev.to | 10 Sep 2023
    With Stimulus, you've got a powerful tool to take your app's interactivity up a notch. For even more awesome features and Stimulus wizardry, check out the Stimulus Documentation.
  • Supercharge your Stimulus controllers with Custom APIs
    2 projects | dev.to | 27 Jul 2023
    The next version of Stimulus makes it easier to access parts of the private API thanks to my pull request.
  • Why are you still using jQuery?
    2 projects | /r/webdev | 14 Jul 2023
    I like Stimulus, it was a bit pushed by Symfony with their ux thing.
  • What's your favorite micro frontend framework?
    2 projects | /r/webdev | 23 Jun 2023
    Sure, something like https://github.com/hotwired/stimulus
  • Dusting off my rails knowledge, need some tips / guidance on rails 7 and production
    10 projects | /r/rails | 7 Apr 2023
    source "https://rubygems.org" git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby "3.1.0" # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" gem "rails", "~> 7.0.4", ">= 7.0.4.2" # The original asset pipeline for Rails [https://github.com/rails/sprockets-rails] gem "sprockets-rails" # Use sqlite3 as the database for Active Record gem "sqlite3", "~> 1.4" # Use the Puma web server [https://github.com/puma/puma] gem "puma", "~> 5.0" # Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails] gem "importmap-rails" # Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev] gem "turbo-rails" # Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev] gem "stimulus-rails" # Build JSON APIs with ease [https://github.com/rails/jbuilder] gem "jbuilder" gem "mongoid" gem "mongoid-grid_fs" gem 'bootstrap', '~> 5.2.2' #sourced from https://github.com/twbs/bootstrap-rubygem gem 'rack-cors' # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ] # Reduces boot times through caching; required in config/boot.rb gem "bootsnap", require: false
  • Configure Stimulus with esbuild and Babel — Rails & Javascript
    7 projects | dev.to | 26 Feb 2023
    Stimulus: A modest JavaScript framework for the HTML you already have.
  • Laravel Ecommerce Tutorial: Part 4, Managing Product Categories
    3 projects | dev.to | 22 Jan 2023
    This will create the obliterate controller in resources/js/controllers/obliterate_controller.js . If you have no idea what a stimulus controller is, checkout the stimulus homepage, it should have everything you need to know. Also checkout the hotwired stack's homepage

Turbolinks

Posts with mentions or reviews of Turbolinks. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-21.
  • A Comprehensive Guide to Rails Internationalization
    4 projects | dev.to | 21 Oct 2022
    // app/javascript/src/helpers/price.js // Turbolinks are enabled by default in Rails, // we need to process our script on every page load // https://github.com/turbolinks/turbolinks#full-list-of-events document.addEventListener("turbolinks:ready", () => { // Get language from html tag const lang = document.documentElement.lang; // Find all span tags with data-localize="price" const pricesOnPage = document.querySelectorAll("[data-localize=\"price\"]"); if (pricesOnPage.length > 0) { // Iterate all price span tags [...pricesOnPage].forEach(priceOnPage => { // Modify text in span tag according to current language priceOnPage.textContent = priceOnPage.textContent.toLocaleString( lang, { style: "currency", currency: "USD" } ); }) } });
  • How is this website so fast?
    4 projects | /r/webdev | 16 Aug 2022
    Because it feels fast, it actually is not. It is using Turbolinks. https://github.com/turbolinks/turbolinks And Laravel Wrapper for Turbolinks: https://github.com/frenzyapp/turbolinks
  • An SPA Alternative
    4 projects | news.ycombinator.com | 19 Jul 2022
    https://github.com/turbolinks/turbolinks

    It provides a smooth UX by fetching next page's HTML in background, then replace the DOM by compareing the diff in HTML. So you won't see a blank page while navigating between pages.

  • Get Started with Hotwire in Your Ruby on Rails App
    4 projects | dev.to | 13 Jul 2022
    If you have used Turbolinks in the past, you will feel right at home with Turbo Drive. At its core, some JS code intercepts JavaScript events on your application, loads HTML asynchronously, and replaces parts of your HTML markup.
  • A Look at Rails Hotwire: Turbo Drive
    4 projects | dev.to | 18 Apr 2022
    When the Turbolinks technology first came out in Rails 4, some people did not understand what it was really about. I happened to get it right away only because I personally implemented my own version of Turbo Drive for one of my client projects before Turbolinks was released (around 2012), so I really appreciated Turbolinks when it was released. With the latest updates in Rails 7, the Turbolinks technology has been renamed to Turbo Drive (now part of Hotwire) since it not only accelerates hyperlinks anymore, but also form submissions too.
  • Migrating From Turbolinks To Turbo
    4 projects | dev.to | 1 Feb 2022
    Turbolinks, a great tool to make navigating your web application faster, is no longer under active development. It has been superseded by a new framework called Turbo, which is part of the Hotwire umbrella.
  • Unable to build and deploy Rails 6.0.4.1 app on heroku - Throws gyp verb cli error
    7 projects | /r/Heroku | 17 Dec 2021
    source 'https://rubygems.org' git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby '2.7.3' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '~> 6.0.3', '>= 6.0.3.7' gem 'mongoid', git: 'https://github.com/mongodb/mongoid.git' # Use Puma as the app server gem 'puma', '~> 4.1' # Use SCSS for stylesheets gem 'sass-rails', '>= 6' # Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker gem 'webpacker', '~> 4.0' # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks gem 'turbolinks', '~> 5' # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder gem 'jbuilder', '~> 2.7' # Use Redis adapter to run Action Cable in production # gem 'redis', '~> 4.0' # Use Active Model has_secure_password # Use Active Storage variant # gem 'image_processing', '~> 1.2' gem 'axlsx' gem 'caxlsx_rails' #Bootstrap for UI gem 'bootstrap', '~> 5.1.0' gem 'bootstrap-timepicker-rails', '~> 0.1.3' gem 'bootstrap-select-rails', '~> 1.6', '>= 1.6.3' #JQuery Rails gem 'jquery-rails' gem 'rails_12factor', group: :production # Reduces boot times through caching; required in config/boot.rb gem 'bootsnap', '>= 1.4.2', require: false group :development, :test do # Call 'byebug' anywhere in the code to stop execution and get a debugger console gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] end group :development do # Access an interactive console on exception pages or by calling 'console' anywhere in the code. gem 'web-console', '>= 3.3.0' gem 'listen', '~> 3.2' gem 'pry' # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring gem 'spring' gem 'spring-watcher-listen', '~> 2.0.0' end group :test do # Adds support for Capybara system testing and selenium driver gem 'capybara', '>= 2.15' gem 'selenium-webdriver' # Easy installation and use of web drivers to run system tests with browsers gem 'webdrivers' gem 'cucumber-rails', require: false gem 'database_cleaner' end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] #HTTParty for RESTful API calls gem 'httparty' #Paperclip for storing files gem 'paperclip' gem "mongoid-paperclip", :require => "mongoid_paperclip" gem "letter_opener", :group => :development r
  • How to Build a Low-Tech Website?
    4 projects | news.ycombinator.com | 2 Nov 2021
  • Doing the Impossible — Building a Persistent Audio Player in Ruby on Rails
    2 projects | dev.to | 5 Sep 2021
    We’ll use Ruby on Rails and Turbo to accomplish this, but we could use Turbo’s predecessor, Turbolinks to achieve the same result, and Rails is only incidental to the finished project. We could just as easily use Turbo with any other "multi-page" framework and deliver the same experience.
  • I've learned a little bit of python. Now what?
    3 projects | /r/Python | 15 Aug 2021
    Check out StimulusJs and Turbolinks their whole purpose is to add only a tiny bit of js to a server side rendered website, to give a feel similar to that of client-side rendered web pages.

What are some alternatives?

When comparing Stimulus and Turbolinks you can also consider the following projects:

htmx - </> htmx - high power tools for HTML

InstantClick - InstantClick makes following links in your website instant.

turbo-rails - Use Turbo in your Ruby on Rails app

vite - Next generation frontend tooling. It's fast!

turbo - The speed of a single-page web application without having to write any JavaScript

hotwire-rails - Use Hotwire in your Ruby on Rails app

lighthouse - Automated auditing, performance metrics, and best practices for the web.

Slide and swipe - :zap: A sliding swipe menu that works with touchSwipe library.

Slideout - A touch slideout navigation menu for your mobile web apps.

django-unicorn - The magical reactive component framework for Django ✨