talira

Mithril.js

Small client-side JavaScript framework for single-page apps, with routing and XHR built in

open sourceMITfree

Mithril.js is a client-side JavaScript framework for building single-page applications. It's small (under 9 KB gzipped) and fast, and provides routing and XHR utilities out of the box. It supports Firefox ESR and the last two versions of Firefox, Edge, Safari and Chrome without polyfills, and installs from npm or a CDN; TypeScript types come from DefinitelyTyped.

Problems it solves

  • build a single-page web app without a large framework
  • add client-side routing and HTTP requests without extra libraries
  • keep my frontend JavaScript bundle small

Features

  • virtual DOM components for single-page applications
  • built-in router
  • built-in XHR utilities
  • under 9 KB gzipped
  • no polyfills needed in supported browsers

Alternatives

The same job

These do what Mithril.js does.

  1. Angular The framework for building scalable web apps with confidence
  2. Vue.js The Progressive JavaScript Framework
  3. Next.js The React framework for the web.
  4. SvelteKit Web development, streamlined
  5. Backbone.js Models, collections, views and a router that give structure to JavaScript web apps

Compare Mithril.js with the top 3