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.
- Angular The framework for building scalable web apps with confidence
- Vue.js The Progressive JavaScript Framework
- Next.js The React framework for the web.
- SvelteKit Web development, streamlined
- Backbone.js Models, collections, views and a router that give structure to JavaScript web apps
