# Mithril.js

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

Source: https://talira.ai/catalog/mithril-js-pxtbargp
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Framework
- Categories: [frameworks / web / frontend](https://talira.ai/categories/frameworks/web/frontend), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [MithrilJS](https://talira.ai/orgs/mithriljs.md)

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.

## Links

- Website: https://mithril.js.org/
- GitHub: https://github.com/MithrilJS/mithril.js
- Docs: https://mithril.js.org/api.html

## 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

## Trust

Overall: 0.53 out of 1.
Signals: maintenance 0.45, adoption 0.83, momentum 0.60, community 0.99, backing 0.30, extensibility 0.00.

- last commit 3 months ago
- latest release v2.3.8 12 months ago
- 14.5k GitHub stars
- 302 contributors
- accepts sponsorship (Open Collective)
- backed by MithrilJS

## Alternatives

- [Angular](https://talira.ai/catalog/angular-zmam85tz.md): The framework for building scalable web apps with confidence
- [Vue.js](https://talira.ai/catalog/vue-js-x09qxxh1.md): The Progressive JavaScript Framework
- [Next.js](https://talira.ai/catalog/next-js-2chrxyc7.md): The React framework for the web.
- [SvelteKit](https://talira.ai/catalog/sveltekit-hdpg7sg7.md): Web development, streamlined
- [Backbone.js](https://talira.ai/catalog/backbone-js-a76q7y9q.md): Models, collections, views and a router that give structure to JavaScript web apps

## Sources

[^1]: https://github.com/MithrilJS/mithril.js#readme (checked 28 Nov 2026)
[^2]: https://github.com/MithrilJS/mithril.js/blob/main/LICENSE (checked 28 Nov 2026)
