Skip to content
pelonpelon edited this page Sep 6, 2015 · 66 revisions

Here you will find a list of projects and code snippets created by Mithril users. Feel free to contribute.


Tools

Starter Kits

Templating

  • MSX - React-based preprocessor that allows Mithril templates to be written with HTML syntax (e.g. <div></div> instead of m("div"))

  • msx-reader - another MSX reader for JavaScript, powered by sweet.js

  • mithrilify Browserify transform for converting Mithril view templates

  • mithril.sugarTags Sugar'd tags for use with Mithril views, much nicer and succinct compared to normal view definitions with the same benefits

  • mithril-n - pure DOM nodes in Mithril templates

Routing

Animation

Custom Events

  • Mithril-touch - handle touch and mouse events evenly with Mithril. Supports tap, dbltap, taphold (longpress), swipeleft, swiperight, swipeup, swipedown.

  • eventsMixin - eventsMixin for Mithril for pain-free cross-component communication. Uses browser DOM events. Registered events are automatically removed on unload of component controller.

Testing

  • mithril-query A virtual Dom querying library to make traversal of templates easier for testing.

Isomorphism

Databases

Mithril Postrest - Help you authenticating in a PostgREST server

I18N

  • Mithril-translate - i18n for your Mithril applications

  • translate.js - i18n translations with support for placeholders and multiple plural forms

Storage

  • Mithril-storage - A storage library for your Mithril applications (cookies, localStorage, sessionStorage, in-memory).

Miscellaneous

  • mithril.bindings Succinct bi-directional bindings with pub/sub and the ability to create custom bindings.

  • bidi.js by Barney Carroll Component with bi-directional bindings. Can be used as extension to Mithril view language by patching m() bidi example Uses the modulator extension.

  • m.firebase - use firebase in conjunction with Mithril.

  • Mithril.Elements - composable custom element types for Mithril

  • Modulator - an alternative to m.component with a focus on precise controller identity, without mandating unique DOM elements per component

  • Superflux, an opinionated model layer for Mithril based on Flux

  • Mithril Solr - A Front-end Interface to Solr

  • Mithril Pagination - A Pagination component

Pro Tips

Forks

Uncategorized

Clone this wiki locally