What is Mithril?
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.
Mithril is a tool in the Javascript MVC Frameworks category of a tech stack.
Mithril is an open source tool with GitHub stars and GitHub forks. Here’s a link to Mithril's open source repository on GitHub
Who uses Mithril?
Companies
15 companies reportedly use Mithril in their tech stacks, including Galileo, Dial Once, and Open Science Framework.
Developers
65 developers on StackShare have stated that they use Mithril.
Mithril Integrations
Pros of Mithril
16
12
10
10
8
7
7
6
5
3
2
Mithril's Features
- Only 12kb gzipped, no dependencies
- Small API, small learning curve
- Safe-by-default templates
- Hierarchical MVC via components
- Virtual DOM diffing and compilable templates
- Intelligent auto-redrawing system
Mithril Alternatives & Comparisons
What are some alternatives to Mithril?
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.
Svelte
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.
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.
Vue.js
It is a library for building interactive web interfaces. It provides data-reactive components with a simple and flexible API.
Backbone.js
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.