Skip to content
A JavaScript Framework for Building Brilliant Applications
JavaScript Other
Branch: next
Clone or download
porsager and isiahmeadows Flems in docs (#2348) [skip ci]
* Initial addition of flems - fixes #526

* Fix leftover ```js code blocks

* Add DOCTYPE

* Fix edge & IE11

* Don't show console

* Change orientation on mobile

* Use mithril@next for playground link

* Improve loading and structure

* Fix header alignment in IE

* Don't rotate logo

* Fix conflicts

* Allow `js` tags

* Fix code block query

* Fix Routing section and flems

* Fix firefox

* Improve flems styling

* Improve copy

* Fix data -> body in m.request sample

* Add flems in docs usage description
Latest commit d257025 Oct 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update CoC Sep 28, 2019
api Add streams to releases again, include minified bundle, drop in… (#2539) Oct 3, 2019
docs Flems in docs (#2348) [skip ci] Oct 14, 2019
examples Add streams to releases again, include minified bundle, drop in… (#2539) Oct 3, 2019
ospec Add streams to releases again, include minified bundle, drop in… (#2539) Oct 3, 2019
pathname Add streams to releases again, include minified bundle, drop in… (#2539) Oct 3, 2019
performance Add streams to releases again, include minified bundle, drop in… (#2539) Oct 3, 2019
promise Add streams to releases again, include minified bundle, drop in… (#2539) Oct 3, 2019
querystring Add streams to releases again, include minified bundle, drop in… (#2539) Oct 3, 2019
render Add streams to releases again, include minified bundle, drop in… (#2539) Oct 3, 2019
request Add streams to releases again, include minified bundle, drop in… (#2539) Oct 3, 2019
scripts Flems in docs (#2348) [skip ci] Oct 14, 2019
stream Add streams to releases again, include minified bundle, drop in… (#2539) Oct 3, 2019
test-utils Add streams to releases again, include minified bundle, drop in… (#2539) Oct 3, 2019
tests Add streams to releases again, include minified bundle, drop in… (#2539) Oct 3, 2019
util Add streams to releases again, include minified bundle, drop in… (#2539) Oct 3, 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 Add streams to releases again, include minified bundle, drop in… (#2539) Oct 3, 2019
.travis.yml Add streams to releases again, include minified bundle, drop in… (#2539) Oct 3, 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 Add `m.censor`, adjust `m.route.Link` to use it (#2538) Sep 30, 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 Add streams to releases again, include minified bundle, drop in… (#2539) Oct 3, 2019
package.json Add streams to releases again, include minified bundle, drop in… (#2539) Oct 3, 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.