Skip to content
A JavaScript Framework for Building Brilliant Applications
JavaScript HTML
Branch: next
Clone or download
Latest commit 98d6553 Aug 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update issue templates (#2485) Jul 24, 2019
api Fix link + docs (#2476) Jul 16, 2019
bundler Fix lint issues, run `npm audit fix` Jul 12, 2019
docs Preparing for release Aug 18, 2019
examples Update migration, fix various minor issues Jul 24, 2019
module Officially drop IE9-10 support, pull out our hacks (#2296) Nov 27, 2018
ospec ospec@4.0.1 Aug 18, 2019
pathname Fix #2443 (#2451) Jul 3, 2019
performance Deservicify core (#2458) Jul 7, 2019
promise Merge branch 'next' Oct 25, 2018
querystring Take 2 Jul 28, 2019
render Unbreak `m.trust` (#2516) Aug 17, 2019
request Deservicify core (#2458) Jul 7, 2019
scripts Fix a docs generation bug [skip ci] Aug 18, 2019
stream Update migration, fix various minor issues Jul 24, 2019
test-utils Fix #1881 + related ospec bug (#2492) Jul 26, 2019
tests Partially recast the router API to be a lot more intuitive. (#2469) Jul 12, 2019
.deploy.enc Maybe *this* time, everything should magically work... May 29, 2019
.editorconfig Refactor scripts (#2465) Jul 27, 2019
.eslintignore Refactor the scripts to work as advertised Aug 18, 2019
.eslintrc.js Revert eslintrc change, return Promise instead of using async/await Nov 29, 2017
.gitattributes Drop ESM support (#2366) May 29, 2019
.gitignore Refactor the scripts to work as advertised Aug 18, 2019
.npmignore Fix `m.version` to not depend on `package.json` (#2464) Jul 9, 2019
.travis.yml Refactor scripts (#2465) Jul 27, 2019
LICENSE docs: Adding license file. (#1583) Feb 1, 2017
README.md v2.0.4 Aug 18, 2019
browser.js "use strict" and other linty fixes Mar 3, 2017
hyperscript.js "use strict" and other linty fixes Mar 3, 2017
index.js Drop `m.version` (#2466) Jul 10, 2019
mithril.js v2.0.4 Aug 18, 2019
mithril.min.js v2.0.4 Aug 18, 2019
mount-redraw.js Deservicify core (#2458) Jul 7, 2019
mount.js Deservicify core (#2458) Jul 7, 2019
package-lock.json Fix a docs generation bug [skip ci] Aug 18, 2019
package.json Fix a docs generation bug [skip ci] Aug 18, 2019
redraw.js Deservicify core (#2458) Jul 7, 2019
render.js "use strict" and other linty fixes Mar 3, 2017
request.js Deservicify core (#2458) Jul 7, 2019
route.js Deservicify core (#2458) Jul 7, 2019
stream.js "use strict" and other linty fixes Mar 3, 2017

README.md

mithril.js npm Version npm License npm Downloads Donate at OpenCollective

Build Status Gitter

What is Mithril?

A modern client-side Javascript framework for building Single Page Applications. It's small (9.79 KB gzipped), fast and provides routing and XHR utilities out of the box.

Mithril is used by companies like Vimeo and Nike, and open source platforms like Lichess 👍.

Mithril supports IE11, Firefox ESR, and the last two versions of Firefox, Edge, Safari, and Chrome. No polyfills required. 👌

Installation

CDN

<!-- Development: whichever you prefer -->
<script src="https://unpkg.com/mithril/mithril.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mithril/mithril.js"></script>

<!-- Production: whichever you prefer -->
<script src="https://unpkg.com/mithril/mithril.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mithril/mithril.min.js"></script>

npm

npm install mithril --save

The "Getting started" guide is a good place to start learning how to use mithril.

TypeScript type definitions are available from DefinitelyTyped. They can be installed with:

$ npm install @types/mithril --save-dev

Documentation

Documentation lives on mithril.js.org.

You may be interested in the API Docs, a Simple Application, or perhaps some Examples.

Getting Help

Mithril has an active & welcoming community on Gitter, or feel free to ask questions on Stack Overflow using the mithril.js tag.

Contributing

There's a Contributing FAQ on the mithril site that hopefully helps, but if not definitely hop into the Gitter Room and ask away!


Thanks for reading!

🎁

You can’t perform that action at this time.