barterscore
A library for calculating the barter value of food and essential goods offline.
What does it do?
Calculations account for an item's energy and nutrition, transport burden, storage life, preparation cost, packaging durability, and other factors. When comparing the quantities of two items in an exchange, indivisible items are adjusted to whole units, and the resulting surplus or shortfall percentage is reported. You can review the supplied item and audit data locally, and use the engine by opening a local HTML file in a browser or in CommonJS and ES Module environments.
Key features
- Calculate value using food nutrition and items' physical properties
- Calculate the quantity and value differences between two items in an exchange
- Adjust indivisible item quantities to whole units and report surplus or shortfall percentages
- Review item-level audit data offline
- Run from a local HTML file or in CommonJS and ES Module environments
- Use offline without internet access or a local server