Durandal vs Mithril: What are the differences?
What is Durandal? Single Page Apps Done Right. Durandal is a cross-device, cross-platform client framework written in JS and designed to make Single Page Applications (SPAs) easy to create and maintain.
What is 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.
Some of the features offered by Durandal are:
- Clean MV* Architecture
- JS & HTML Modularity
- Simple App Lifecycle
On the other hand, Mithril provides the following key features:
- Only 12kb gzipped, no dependencies
- Small API, small learning curve
- Safe-by-default templates
"Easy to learn" is the top reason why over 2 developers like Durandal, while over 15 developers mention "Lightweight" as the leading cause for choosing Mithril.
Durandal and Mithril are both open source tools. Mithril with 11.3K GitHub stars and 863 forks on GitHub appears to be more popular than Durandal with 1.78K GitHub stars and 391 GitHub forks.