Need advice about which tool to choose?Ask the StackShare community!
Backbone.js vs Mithril: What are the differences?
Backbone.js: Give your JS App some Backbone with Models, Views, Collections, and Events. Backbone supplies structure to JavaScript-heavy applications by providing models 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 application over a RESTful JSON interface; Mithril: Client-side MVC framework - a tool to organize code in a way that is easy to think about and to maintain. Mithril is around 12kb gzipped thanks to its small, focused, API. It provides a templating engine with a virtual DOM diff implementation for performant rendering, utilities for high-level modelling via functional composition, as well as support for routing and componentization.
Backbone.js and Mithril can be categorized as "Javascript MVC Frameworks" tools.
"Javascript structure" is the top reason why over 136 developers like Backbone.js, while over 16 developers mention "Lightweight" as the leading cause for choosing Mithril.
Backbone.js and Mithril are both open source tools. Backbone.js with 27.5K GitHub stars and 5.72K forks on GitHub appears to be more popular than Mithril with 11.3K GitHub stars and 859 GitHub forks.
Uber Technologies, Pinterest, and LinkedIn are some of the popular companies that use Backbone.js, whereas Mithril is used by Dial Once, Cloud Vlts, Inc., and SpartanGeek. Backbone.js has a broader approval, being mentioned in 1066 company stacks & 213 developers stacks; compared to Mithril, which is listed in 5 company stacks and 5 developer stacks.
Pros of Backbone.js
- Javascript structure135
- Models101
- Simple98
- Restful76
- Easy api59
- Flexible46
- Open source45
- Fast to pick up44
- Events34
- JSON25
- OOP8
- Lightweight2
- Collections1
- Easy customizable1
Pros of Mithril
- Lightweight16
- Faster than React12
- Pure JavaScript10
- Virtual Dom10
- Robust8
- Unopinionated7
- Works with ES67
- Very active development6
- Intelligent auto-redrawing system5
- Flux compatible3
- Small Learning Curve2
Sign up to add or upvote prosMake informed product decisions
Cons of Backbone.js
- Requires underscore.js1
Cons of Mithril
- Virtual Dom1