stencil VS turbo

Compare stencil vs turbo and see what are their differences.

stencil

A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, and traditional web developers from a single, framework-agnostic codebase. (by ionic-team)

turbo

The speed of a single-page web application without having to write any JavaScript (by hotwired)
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
stencil turbo
55 145
12,280 6,386
0.7% 1.2%
9.9 8.8
about 22 hours ago 8 days ago
TypeScript JavaScript
GNU General Public License v3.0 or later 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.

stencil

Posts with mentions or reviews of stencil. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-14.
  • Ajout de l'auto-complétion sur les Web Components avec Stencil
    5 projects | dev.to | 14 Mar 2024
  • Making Web Component properties behave closer to the platform
    9 projects | dev.to | 21 Jan 2024
    First a disclosure: I never actually used Stencil, only played with it a bit locally in a hello-world project while writing this post.
  • Plasmic.app – the visual builder for your tech stack
    9 projects | news.ycombinator.com | 19 Dec 2023
    This is my main concern too.

    I don't understand why tools like this "pick a winner" with a specific framework instead of rendering to Web Components with a framework wrapper, or using something like Stencil[1] that can render to any framework.

    [1] https://stenciljs.com/

  • Design Systems with Web Components
    5 projects | dev.to | 18 Dec 2023
    I was recently able to sit down with some of the core members of Ionic, who also created Stencil a toolchain for building Design Systems and Progressive Web Apps. We talked at great length how typically companies are approaching Ionic from a Design Team and need help building components. As a developer I wanted to talk about the Web Components that are used within the Design System first. There was a decent amount of surprise, so I thought I would break down what a Design System is and why it doesn't matter which end you start with, as long as you have both your Design and Development teams working together to build your Design System.
  • Nue: A React/Vue/Vite/Astro Alternative
    13 projects | news.ycombinator.com | 14 Sep 2023
  • If Web Components are so great, why am I not using them?
    12 projects | news.ycombinator.com | 2 Aug 2023
    Examples like this bug me. The React example is using a high level abstraction, the web component is directly using the API. A more accurate example would show how those React calls eventually boil down to document.createElement()

    I don’t think the Web Components API was meant to be used directly all the time. You can use a framework like StencilJS:

    https://stenciljs.com/

  • Use Stencil / the ionic framework with emberjs [video]
    3 projects | news.ycombinator.com | 29 Jul 2023
  • World Wide Web Wars
    2 projects | dev.to | 4 Jun 2023
    You might say that this is the same vicious cycle as JavaScript frameworks. That's wrong, because Web Components are interoperable by design. Choosing Stencil or Lit or any other library is a development convenience that has little to do with the interoperability of the resulting components.
  • Is there a plugin that abstracts registering web components with React?
    3 projects | /r/reactjs | 24 Mar 2023
    I guess my problem is more specific to my overall architecture. I have components that when are placed in the DOM, have props rendered on them by their parent elements. I'm using stencil to do this.
  • The benefits of Web Component Libraries
    4 projects | dev.to | 27 Feb 2023
    Web component browser APIs aren't that many, and not that hard to grasp (if you don't know about them, have a look at Google's Learn HTML section and MDN's Web Components guide); but creating a web component actually requires taking care of many small things. This is where web component libraries come in very handy, freeing us of having to think about some of those things by taking care of them for us. Most of the things I'll mention here are handled one way of another by other libraries (GitHub's Catalyst, Haunted, Hybrids, Salesforce's LWC, Slim.JS, Ionic's Stencil) but I'll focus on Google's Lit and Microsoft's FAST here as they probably are the most used web component libraries out there (ok, I lied, Lit definitely is, FAST not that much, far behind Lit and Stencil; but Lit and FAST have many things in common, starting with the fact that they are just native web components, contrary to Stencil that compiles to a web component). Both Lit and FAST leverage TypeScript decorators to simplify the code even further so I'll use that in examples, even though they can also be used in pure JS (decorators are coming to JS soon BTW). I'll also leave the most apparent yet most complex aspect for the end.

turbo

Posts with mentions or reviews of turbo. 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.
    4 projects | dev.to | 27 Mar 2024
    In the above snippet, this refers to StreamElement, which is the custom element underpinning . The templateContent getter is defined by this element.
  • Htmx vs. React: A Complete Comparison – Semaphore
    2 projects | news.ycombinator.com | 22 Feb 2024
  • What is JSDoc and why you may not need typescript for your next project?
    8 projects | dev.to | 22 Jan 2024
    Turbo 8 remove typescript without using JSDOC
  • Coming to grips with JS: a Rubyist's deep dive
    16 projects | dev.to | 29 Dec 2023
    Experiment using Turbo to drive front-end behavior: "Turbo 7.2.0 (currently in beta) allows you to define your own Stream actions which can be any JS code you want. By combining a custom Stream action or two with web components, you can essentially drive reactive frontend behavior from the backend stupidly easily. Loooove it! 😍 […] For a turnkey example, you could check out https://github.com/hopsoft/turbo_ready " —Jared White on The Spicy Web Discord
  • Improving a web component, one step at a time
    4 projects | dev.to | 16 Dec 2023
    This handles disconnection (as could be done by any destructive change to the DOM, like navigating with Turbo or htmx, I'm not even talking about using the element in a JavaScript-heavy web app) but not reconnection though, and we've exited early from the connectedCallback to avoid initializing the element twice, so this change actually broke our component in these situations where it's moved around, or stashed and then reinserted. To fix that, we need to always call addSparkles in connectedCallback, so move all the rest into an if, that's actually as simple as that… except that when the user prefers reduced motion, sparkles are never removed, so they keep piling in each time the element is connected again. One way to handle that, without introducing our housekeeping of individual timers, is to just remove all sparkles on disconnection. Either that or conditionally add them in connectedCallback if either we're initializing the element (including attaching the shadow DOM) or the user doesn't prefer reduced motion. The difference between both approaches is in whether we want the small animation when the sparkles appear (and appearing at new random locations). I went with the latter.
  • Mastering Rails Web Navigation with link_to and button_to Helpers - Part 2
    4 projects | dev.to | 22 Oct 2023
    If you think you have seen enough Rails magic, you are mistaken my friend. Rails have a new trick up its sleeve: Hotwire. And with the magical Turbo tool that comes with it, you can create modern, interactive web applications with minimal, or sometimes no JavaScript at all, providing users with an incredibly smooth experience.
  • Why you should choose HTMX for your next project
    2 projects | dev.to | 19 Oct 2023
    There is also Turbo and the frameworks who adopt them, Ruby on Rails, PHP Symphony and possibly others that solves the same issue in the same manner as HTMX. And the choice for HTMX is only a personal taste in this, but you should definitely learn about this, this is as cool as HTMX!
  • JavaScript First, Then TypeScript
    5 projects | dev.to | 15 Oct 2023
    Most controversially, the Turbo framework dropped TypeScript support altogether after assessing that strong typing was the culprit behind poor developer experience.
  • RailsWorld 2023: Hotwire Edition
    3 projects | dev.to | 8 Oct 2023
    You can find a demo video and more information here: https://github.com/hotwired/turbo/pull/1019

What are some alternatives?

When comparing stencil and turbo you can also consider the following projects:

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

Svelte - Cybernetically enhanced web apps

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

vite-ssg - Static site generation for Vue 3 on Vite

Turbolinks - Turbolinks makes navigating your web application faster

css-modules - Documentation about css-modules

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

inertia - Inertia.js lets you quickly build modern single-page React, Vue and Svelte apps using classic server-side routing and controllers.

catalyst - Catalyst is a set of patterns and techniques for developing components within a complex application.

shoelace-css - A collection of professionally designed, every day UI components built on Web standards. SHOELACE IS BECOMING WEB AWESOME. WE ARE LIVE ON KICKSTARTER! 👇👇👇

morphdom - Fast and lightweight DOM diffing/patching (no virtual DOM needed)

importmap-rails - Use ESM with importmap to manage modern JavaScript in Rails without transpiling or bundling.