Backbone.js VS Preact

Compare Backbone.js vs Preact and see what are their differences.

Backbone.js

Give your JS App some Backbone with Models, Views, Collections, and Events (by jashkenas)

Preact

⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM. (by preactjs)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
Backbone.js Preact
22 111
28,084 36,041
- 0.6%
7.8 9.3
about 2 months ago 5 days ago
JavaScript JavaScript
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.

Backbone.js

Posts with mentions or reviews of Backbone.js. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-17.
  • Ask HN: What are some of the most elegant codebases in your favorite language?
    37 projects | news.ycombinator.com | 17 Jun 2023
  • React is 10 years old
    3 projects | news.ycombinator.com | 30 May 2023
    Got it thanks for the context.

    I've read the web app and it seems to me it is just https://backbonejs.org/ re-written in Typescript and allows JSX.

    I'm very certain Typescript and JSX will have improved the DX for Backbone like apps, but it doesn't address all of the other issues that teams had with Backbone.

    e.g. Cyclical event propagation, state stored in the DOM (i.e. appendChild is error prone in large code bases), etc.

  • Just Simply – Stop saying how simple things are in our docs
    3 projects | news.ycombinator.com | 30 Apr 2023
  • The Emperor's New Library
    5 projects | dev.to | 13 Feb 2023
    What we see, a decade ago, are that many of the "popular" libraries, frameworks, and methods, not surprisingly, have gone by the wayside, a lot that have remained in current code as difficult-to-removemodernize legacy cruft (Bower, Gulp, Grunt, Backbone, Angular 1, ...), and then we have the small minority that are still here. Some that remain have had their utility lessened/questioned by platform and language improvements (jQuery, lodash, ...), but very, very few exist that are the same now as they were then. Another fun historical reference: issue #118 of "JavaScript Weekly" (February 22, 2013) includes a first link out to asm.js.
  • How To Choose The Right Framework For Your Next Node.js App.
    8 projects | dev.to | 23 Sep 2022
    Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface. site Backbone.js *Backbone.js gives structure to web applications by providing models with key-value binding and custom events…*backbonejs.org
  • Ajax requests fail after upgrading to Cordova 5.0 + [email protected]
    1 project | /r/codehunter | 13 Sep 2022
    The ajax request is made via a call to Backbone.sync() of Backbone.js, which ultimately calls jquery's $.ajax(). I haven't changed anything about how the call is made... just upgraded cordova.
  • Rate my build? Web dev GF recomends it.
    1 project | /r/pcmasterrace | 18 Jul 2022
    my gf said it was the best. she uses backbone.js she good dev
  • Top 5 JavaScript Frameworks for Frontend in 2022
    4 projects | dev.to | 14 Jun 2022
    Backbone.js
  • Why do we need a Single Page Application? [closed]
    3 projects | /r/codehunter | 15 Mar 2022
    A lot of SPA frameworks and libraries also were developed. We can find out some of its on the internet. They are AngularJs, Reactjs, BackboneJs, DurandalJs,.. and a lot of third party components to make the Javascript coding more easy like RequireJs, Amplifyjs, BreezeJs...
  • Angular: A shift in paradigm
    3 projects | dev.to | 13 Mar 2022
    As the internet became faster, and more reliable, and as browsers unified into “evergreen” releases, developers accepted JSON to be the only shape of data needed to travel on wires. A few years back I posted a question of which was a better framework: serving fully processed HTML scripts over Ajax, or only JSON that would be populated on client-side. See, back then, populating JSON was hand crafted, before Knockout, before Backbone, and few other players I don’t recall. The thing you could use back then was Mustache-like, which -by the way- still is a favorite of mine when venturing outside of SPA zone.

Preact

Posts with mentions or reviews of Preact. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-23.
  • Preact vs React: A Comparative Guide
    2 projects | dev.to | 23 Apr 2024
    In this post, we get to know more about Preact, one of this year's trending libraries. And we'll compare it to React to see which one suits better for our projects.
  • Episode 24/13: Native Signals, Details on Angular/Wiz, Alan Agius on the Angular CLI
    11 projects | dev.to | 5 Apr 2024
    Similarly to Promises/A+, this effort focuses on aligning the JavaScript ecosystem. If this alignment is successful, then a standard could emerge, based on that experience. Several framework authors are collaborating here on a common model which could back their reactivity core. The current draft is based on design input from the authors/maintainers of Angular, Bubble, Ember, FAST, MobX, Preact, Qwik, RxJS, Solid, Starbeam, Svelte, Vue, Wiz, and more…
  • Proposal: Signals as a Built-In Primitive of JavaScript
    9 projects | news.ycombinator.com | 31 Mar 2024
    Those who want to develop a library that can be used by any other reactive framework. I often see SignalLike type that tries to subtype it.

    https://github.com/preactjs/preact/blob/757746a915d186a90954...

  • Preact: Lightweight React Alternative
    1 project | dev.to | 27 Jan 2024
    The official Preact documentation.
  • How I built a cross-framework frontend library
    3 projects | dev.to | 17 Jan 2024
    At the very bottom of the image, there are 3 blocks that I chose to call application components. If you are building a cross-framework library, these can be built with whatever tools you want! Only catch is, all the tools you use to build it, will be needed by everyone consuming it. So choose wisely, and be mindful of how many kilobytes of third party code you will need in order to ship. In Schedule-X, I chose to use Preact. You will probably be fine with most lightweight virtual DOM libraries, and just like with frameworks there are a few to pick from.
  • React Jam just started, making a game in 13 days with React
    5 projects | news.ycombinator.com | 26 Dec 2023
    >> React is not traditionally used for making games, but that's part of the fun and the challenge. R

    > MS Flight Simulator cockpits are built with MSFS Avionics Framework which is React-like and MIT licensed:

    https://github.com/microsoft/msfs-avionics-mirror/tree/main/...

    preactjs may or may not be faster: https://preactjs.com/

    Million.js is faster than preact, and lists a number of references under Acknowledgements: https://github.com/aidenybai/million#acknowledgments

    https://million.dev/docs :

    > We use a novel approach to the virtual DOM called the block virtual DOM. You can read more on what the block virtual DOM is with Virtual DOM: Back in Block and how we make it happen in React with Behind the block().*

    React API reference > Components > Profiler:

  • Have You Built with Preact?
    1 project | news.ycombinator.com | 11 Dec 2023
  • Quando um framework é melhor que a manipulação nativa do DOM
    2 projects | dev.to | 9 Dec 2023
  • HTML Data Attributes: One of the Original State Management Libraries
    5 projects | dev.to | 29 Nov 2023
    DEV is a Rails monolith, which uses Preact in the front-end using islands architecture. The reason why I mention all this is that it's not a full-stack JavaScript application, and there is no state management library like Redux or Zustand in use. The data store, for the most part on the front end, is all data attributes.
  • Show HN: Cami.js – A No Build, Web Component Based Reactive Framework
    6 projects | news.ycombinator.com | 4 Nov 2023

What are some alternatives?

When comparing Backbone.js and Preact you can also consider the following projects:

Vue.js - This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core

react-18 - Workgroup for React 18 release.

Next.js - The React Framework

Alpine.js - A rugged, minimal framework for composing JavaScript behavior in your markup.

Svelte - Cybernetically enhanced web apps

solid - A declarative, efficient, and flexible JavaScript library for building user interfaces.

Stimulus - A modest JavaScript framework for the HTML you already have [Moved to: https://github.com/hotwired/stimulus]

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

React - The library for web and native user interfaces.

spine - Lightweight MVC library for building JavaScript applications