StackShareStackShare
Follow on
StackShare

Discover and share technology stacks from companies around the world.

Follow on

© 2025 StackShare. All rights reserved.

Product

  • Stacks
  • Tools
  • Feed

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  1. Stackups
  2. Business Tools
  3. UI Components
  4. Javascript UI Libraries
  5. Riot vs Svelte

Riot vs Svelte

OverviewDecisionsComparisonAlternatives

Overview

Riot
Riot
Stacks116
Followers100
Votes68
GitHub Stars14.9K
Forks966
Svelte
Svelte
Stacks1.7K
Followers1.6K
Votes502
GitHub Stars84.6K
Forks4.7K

Riot vs Svelte: What are the differences?

## Introduction
Riot and Svelte are both popular frontend JavaScript frameworks that aim to simplify web development. However, there are key differences between the two that set them apart.

1. **Compilation Process**: Riot uses a runtime compiler, which means that it compiles the code in the user's browser at runtime. On the other hand, Svelte uses a compiler that converts the code during the build process, outputting highly optimized vanilla JavaScript code.

2. **Reactivity**: In Riot, reactivity is not built-in and developers need to manage reactivity through manual DOM manipulation or additional libraries. In contrast, Svelte has reactive declarations that automatically update the DOM when the data changes, making it more efficient and developer-friendly.

3. **Bundle Size**: Riot is known for its small bundle size, making it ideal for projects where minimizing code footprint is crucial. Svelte, however, produces even smaller bundle sizes by eliminating the need for a virtual DOM at runtime and optimizing the generated code.

4. **Component Architecture**: Riot follows a component-based architecture where each component manages its state independently without a centralized store. Svelte, on the other hand, promotes a centralized app state management using stores, allowing for easier data sharing between components.

5. **Lifecycle Methods**: Riot provides specific lifecycle methods such as `onMounted` and `onUpdated` for handling component initialization and updates. Svelte, on the other hand, has a single `onMount` lifecycle method for both initialization and update logic, simplifying the component lifecycle process.

6. **Code Reusability**: While both Riot and Svelte support code reusability through components, Svelte's reusability is enhanced by its reactive nature, allowing components to easily share and respond to changes in data without manual intervention.

In Summary, Riot and Svelte differ in their compilation process, reactivity handling, bundle size optimization, component architecture, lifecycle methods, and code reusability strategies.

Share your Stack

Help developers discover the tools you use. Get visibility for your team's tech choices and contribute to the community's knowledge.

View Docs
CLI (Node.js)
or
Manual

Advice on Riot, Svelte

Máté
Máté

Senior developer at Self-employed

May 28, 2020

Decided

Svelte is everything a developer could ever want for flexible, scalable frontend development. I feel like React has reached a maturity level where there needs to be new syntactic sugar added (I'm looking at you, hooks!). I love how Svelte sets out to rebuild a new language to write interfaces in from the ground up.

311k views311k
Comments
Raj
Raj

Oct 10, 2020

Review

It purely depends on your app needs. Does it need to be scalable, do you have lots of features, OR it is a simple project with very simple needs - many of those parameters clarify which technologies will fit.

If you are looking for a quick solution, that reduces lot of development time, take a look at postgraphile (https://www.graphile.org/postgraphile/). You have to just define the schema and you get the entire graph-ql apis built for you and you can just focus on your frontend.

On frontend, React is good, but also need to remember that it is popular because it introduced one way data writes and in-built virtual dom + diffing to determine which dom to modify. Though personally I liked it, am recently more inclined to Svelte because its lightweightedness and absence of virtual dom and its simplicity compared to the huge ecosystem that React has surrounded itself with.

In all situations, frameworks keep changing over time. What is best today is not considered even good few years from now. What is important is to have the logic in a separate, clean manner void of too many framework related dependencies - that way you can switch one framework with another very easily.

3.76k views3.76k
Comments
Alex
Alex

Full-stack software engineer

Apr 25, 2020

Decided

Svelte 3 is exacly what I'm looking for that Vue is not made for.

It has a iterable dom just like angular but very low overhead.

This is going to be used with the application.

for old/ lite devices . ie.

  • android tv,
  • micro linux,
  • possibly text based web browser for ascci and/or linux framebuffer
  • android go devices
  • android One devices
125k views125k
Comments

Detailed Comparison

Riot
Riot
Svelte
Svelte

Riot brings custom tags to all browsers. Think React + Polymer but with enjoyable syntax and a small learning curve.

If you've ever built a JavaScript application, the chances are you've encountered – or at least heard of – frameworks like React, Angular, Vue and Ractive. Like Svelte, these tools all share a goal of making it easy to build slick interactive user interfaces. Rather than interpreting your application code at run time, your app is converted into ideal JavaScript at build time. That means you don't pay the performance cost of the framework's abstractions, or incur a penalty when your app first loads.

Absolutely the smallest possible amount of DOM updates and reflows.;One way data flow: updates and unmounts are propagated downwards from parent to children.;Expressions are pre-compiled and cached for high performance.;Lifecycle events for more control.
Write less code; No virtual DOM; Truly reactive
Statistics
GitHub Stars
14.9K
GitHub Stars
84.6K
GitHub Forks
966
GitHub Forks
4.7K
Stacks
116
Stacks
1.7K
Followers
100
Followers
1.6K
Votes
68
Votes
502
Pros & Cons
Pros
  • 13
    Light weight. Fast. Clear
  • 13
    Its just easy... no training wheels needed
  • 11
    Very simple, fast
  • 9
    Straightforward
  • 6
    Minimalistic
Cons
  • 1
    Smaller community
Pros
  • 59
    Performance
  • 41
    Reactivity
  • 36
    Components
  • 35
    Simplicity
  • 34
    Javascript compiler (do that browsers don't have to)
Cons
  • 3
    Event Listener Overload
  • 2
    Learning Curve
  • 2
    Complex
  • 2
    Little to no libraries
  • 2
    Hard to learn

What are some alternatives to Riot, Svelte?

jQuery

jQuery

jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML.

AngularJS

AngularJS

AngularJS lets you write client-side web applications as if you had a smarter browser. It lets you use good old HTML (or HAML, Jade and friends!) as your template language and lets you extend HTML’s syntax to express your application’s components clearly and succinctly. It automatically synchronizes data from your UI (view) with your JavaScript objects (model) through 2-way data binding.

React

React

Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.

Vue.js

Vue.js

It is a library for building interactive web interfaces. It provides data-reactive components with a simple and flexible API.

jQuery UI

jQuery UI

Whether you're building highly interactive web applications or you just need to add a date picker to a form control, jQuery UI is the perfect choice.

Flux

Flux

Flux is the application architecture that Facebook uses for building client-side web applications. It complements React's composable view components by utilizing a unidirectional data flow. It's more of a pattern rather than a formal framework, and you can start using Flux immediately without a lot of new code.

Famo.us

Famo.us

Famo.us is a free and open source JavaScript platform for building mobile apps and desktop experiences. What makes Famo.us unique is its JavaScript rendering engine and 3D physics engine that gives developers the power and tools to build native quality apps and animations using pure JavaScript.

Marko

Marko

Marko is a really fast and lightweight HTML-based templating engine that compiles templates to readable Node.js-compatible JavaScript modules, and it works on the server and in the browser. It supports streaming, async rendering and custom tags.

Kendo UI

Kendo UI

Fast, light, complete: 70+ jQuery-based UI widgets in one powerful toolset. AngularJS integration, Bootstrap support, mobile controls, offline data solution.

Preact

Preact

Preact is an attempt to recreate the core value proposition of React (or similar libraries like Mithril) using as little code as possible, with first-class support for ES2015. Currently the library is around 3kb (minified & gzipped).

Related Comparisons

Bootstrap
Materialize

Bootstrap vs Materialize

Laravel
Django

Django vs Laravel vs Node.js

Bootstrap
Foundation

Bootstrap vs Foundation vs Material UI

Node.js
Spring Boot

Node.js vs Spring-Boot

Liquibase
Flyway

Flyway vs Liquibase