Bost.js is a library that makes working with browsers easier: everything from DOM manipulation to web components, event handling, animations, routing, multi-threading and AJAX requests. It was developed for Mathigon.org, an award-winning mathematics education project.
- AJAX utilities
- Advanced animations and transitions
- Audio and Speech Recognition utilities
- Browser load and resize events, Cookies and Local Storage, Keyboard events
- Colour utilities, gradients and interpolation
- Draggable elements
- DOM Element Utilities: classes, dimensions, scrolling, styling, DOM manipulation, events, animations, cursors, SVG and Canvas tools
- Events: click, slide, scroll, hover, intersection, pointer and mouse events
- Router for single-page sites
- Template and expression parsing
- Multi-threading using WebWorkers
- Custom webcomponents wrapper
First, install boost.js from NPM using
npm install @mathigon/boost --save
Boost.js uses ES6 imports. While some browsers and platforms now support this feature, we recommend using a transpiler such as Babel or Rollup. Make sure that you configure your compiler to correctly resolve these imports. For Rollup, we recommend using the rollup-plugin-node-resolve plugin.
Now, simply import all functions and classes you need, using
import { $, CustomElement, Browser } from '@mathigon/boost'
We welcome community contributions: please file any bugs you find or send us pull requests with improvements. You can find out more on Mathigon.io.
Before submitting a pull request, you will need to sign the Mathigon Individual Contributor License Agreement.
Copyright © Mathigon (dev@mathigon.org)
Released under the MIT license