Mithril logo

Mithril

Client-side MVC framework - a tool to organize code in a way that is easy to think about and to maintain
68
67
+ 1
80

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 12.7K GitHub stars and 930 GitHub forks. Here’s a link to Mithril's open source repository on GitHub

Who uses Mithril?

Companies
14 companies reportedly use Mithril in their tech stacks, including Galileo, Dial Once, and Open Science Framework.

Developers
53 developers on StackShare have stated that they use Mithril.

Mithril Integrations

Pros of Mithril
16
Lightweight
10
Faster than React
10
Pure JavaScript
9
Virtual Dom
8
Robust
7
Unopinionated
7
Works with ES6
5
Very active development
4
Intelligent auto-redrawing system
3
Flux compatible
1
Small Learning Curve

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.
See all alternatives

Mithril's Followers
67 developers follow Mithril to keep up with related blogs and decisions.