A Javascript Framework for Building Brilliant Applications
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Create an Issues Submission Page Enhancement (#2271) Nov 28, 2018
api Fix event handler `this` value, simplify redraw handling (#2320) Dec 3, 2018
bundler Fix some linter issues, update ESLint (#2318) Nov 30, 2018
docs Show how to use each routing strategy in docs (#2332) Dec 6, 2018
examples Fix typo in examples/editor (#2350) Dec 30, 2018
module Officially drop IE9-10 support, pull out our hacks (#2296) Nov 27, 2018
ospec Officially drop IE9-10 support, pull out our hacks (#2296) Nov 27, 2018
performance [performance] use individual files rather than the build, revamp the … Jun 7, 2018
promise Merge branch 'next' Oct 25, 2018
querystring allow array data in m.request Jan 23, 2017
render Handle `[` fragment selector. Fixes #2349 (#2352) Jan 7, 2019
request Fix `m.request`/`m.jsonp` to not mutate arguments, simplify code (#2288) Nov 29, 2018
router "use strict" and other linty fixes Mar 3, 2017
stream Bundled output for commit f30cf0a [skip ci] Jan 17, 2019
test-utils Fix `m.request`/`m.jsonp` to not mutate arguments, simplify code (#2288) Nov 29, 2018
tests Remove `m.prop` + `m.withAttr` (#2317) Dec 1, 2018
.deploy.enc Set up repo for travis commits (#1210) Aug 4, 2016
.editorconfig clean up repo Jan 30, 2017
.eslintignore output mithril, stream and ospec esm versions on build - fixes #2112 (#… Nov 14, 2018
.eslintrc.js Revert eslintrc change, return Promise instead of using async/await Nov 29, 2017
.gitattributes Allow variadic arguments to `m.fragment` (#2328) Dec 6, 2018
.gitignore "use strict" and other linty fixes Mar 3, 2017
.npmignore Update package lockfile and danger/lint-staged Aug 25, 2017
.travis.yml Fix a couple missing files [skip ci] Dec 6, 2018
LICENSE docs: Adding license file. (#1583) Feb 1, 2017
README.md Bundled output for commit 39c20bd [skip ci] Jan 7, 2019
browser.js "use strict" and other linty fixes Mar 3, 2017
esm.js update stream export name (esm build) (#2330) Dec 4, 2018
hyperscript.js "use strict" and other linty fixes Mar 3, 2017
index.js Remove `m.prop` + `m.withAttr` (#2317) Dec 1, 2018
mithril.js Bundled output for commit 39c20bd [skip ci] Jan 7, 2019
mithril.min.js Bundled output for commit 39c20bd [skip ci] Jan 7, 2019
mithril.min.mjs Bundled output for commit 39c20bd [skip ci] Jan 7, 2019
mithril.mjs Bundled output for commit 39c20bd [skip ci] Jan 7, 2019
mount.js "use strict" and other linty fixes Mar 3, 2017
package-lock.json Bundled output for commit f09c84c [skip ci] Dec 6, 2018
package.json v2.0.0-rc.3 Dec 6, 2018
redraw.js "use strict" and other linty fixes Mar 3, 2017
render.js "use strict" and other linty fixes Mar 3, 2017
request.js "use strict" and other linty fixes Mar 3, 2017
route.js "use strict" and other linty fixes Mar 3, 2017
stream.js "use strict" and other linty fixes Mar 3, 2017

README.md

mithril.js NPM Version NPM License NPM Downloads

Build Status Gitter

What is Mithril?

A modern client-side Javascript framework for building Single Page Applications. It's small (8.88 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

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

npm

$ npm install mithril --save

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

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!

🎁