Ammo is a light-weight general-purpose utility belt for building front-end applications. It offers declarative constructs and functionality for DOM and data manipulation, template rendering, UI state management, event buffering, promises, polling. This library can replace heavy-in-size libraries like jQuery, as it offers similar functionality without the size/initialization overhead.
Ammo is built on top of the ESMAScript 2015 standard. The library is ~40KB in size and about ~1200 lines of code.
- Just a browser, supporting ES6.
- Download or Clone the Repository.
- Copy ammo/dist/ammo.js to your project's js folder.
- Use the lib's API
- Ammo is transpile-compatible. You can transpile it to ES5 by using babel and other js transpilers.
This repo contains a demo application which demonstrates several ammo methods, including ammo.app (app building construct), ammo.template (html lists compilator), ammo.sequence (promise implementation), ammo.selectAll (DOM manipulation API). The app's assets reside in ./assets.
- npm
- Run
npm install
to install the project dependencies. - Run the app using
npm run server
. - App becomes available at:
http://localhost:3000
.