/espresso.js

A minimal javascript library for crafting user interfaces

Primary LanguageJavaScriptMIT LicenseMIT

Espresso.js

Espresso.js is a tiny MVC framework inspired by Backbone and React with a focus on simplicity and speed.

We've aimed to bring the ideas of unidirectional data flow of Flux to a simple, Backbone-style library.

Features

  • tiny, less than 500 lines and 3kb gzipped
  • zero dependencies
  • performance and memory focused
  • does not aim to support anything below IE10, but may work on older browsers using a shim

Documentation

Backbone style docs can be found here

Getting Started

If you're using Browserify or Node/CommonJS, simply install the package:

$ sudo npm install --save espresso.js

Alternatively grab the standalone version that you can import with a <script> tag or checkout the GitHub Repo.

Now dive in and check out the To-Do Example app.

Testing

$ mocha

Building

If you need to use this module outside a CommonJS environment, you can build a standalone UMD module as follows:

npm install -g uglify-js
npm install -g browserify

$ browserify espresso.js --standalone Espresso | uglifyjs > espresso.min.js