(Are you reading this at its source?)
The Chocolate Factory is a lightweight JavaScript DOM manipulation library, inspired both positively and negatively by jQuery, React.js, and others. Its goals are:
- Be extremely lightweight. Just import it and use it, no build system, no node_modules, nothing. This should be easy and convenient for use on places like GitHub Pages, where build systems are not available.
- Work directly with DOM objects where practical. This includes both the element objects and all ancillaries, such as event objects. Discrepancies should be unusual and well-justified.
- Leave power in the hands of the programmer. It's not Choc Factory's job to tell you how to write your code.
- Behave naturally and predictably whenever possible.
This repository also includes tools related to the Chocolate Factory, but using the library requires just one file, factory.js.
How to use the Chocolate Factory