All Projects → marcellobarile → nutrifacts.js

marcellobarile / nutrifacts.js

Licence: other
A library to calculate nutrition facts, smartly. No third party services or remote DBs involved.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to nutrifacts.js

smooth-app
The new Open Food Facts mobile application for Android and iOS, crafted with Flutter and Dart
Stars: ✭ 187 (+750%)
Mutual labels:  food, nutrition
recipes
Anthony's collection of cooking recipes
Stars: ✭ 22 (+0%)
Mutual labels:  food, cooking
nutri.gram
Nutrition is the main source of life and although it has been our secondary instinct to check for nutritional value in the food we eat, the effect any diet has on our body and health is consequential. From the fact which connotes the value of nutrition in our diet, springs the idea of nutri.gram. nutri.gram is a mobile application that scans the…
Stars: ✭ 21 (-4.55%)
Mutual labels:  food, health
openfoodfacts-laravel
Open Food Facts API wrapper for Laravel
Stars: ✭ 117 (+431.82%)
Mutual labels:  food, nutrition
Daily Dozen Ios
Keep track of the foods that Dr. Greger recommends in his NYT's best-selling book, How Not to Die with this iOS app
Stars: ✭ 109 (+395.45%)
Mutual labels:  food, health
recipes
Application for managing recipes, planning meals, building shopping lists and much much more!
Stars: ✭ 3,570 (+16127.27%)
Mutual labels:  food, cooking
go-health
❤️ Health check your applications and dependencies
Stars: ✭ 91 (+313.64%)
Mutual labels:  health
Flutter-Food-Onboarding-Screen
A beautiful food onboarding screen which can be used when building a food related flutter app for both android and IOS.
Stars: ✭ 21 (-4.55%)
Mutual labels:  food
rn-fitness-tracker
React Native module to interact with Google Fit and Apple HealthKit.
Stars: ✭ 58 (+163.64%)
Mutual labels:  health
gatus
⛑ Automated service health dashboard
Stars: ✭ 3,018 (+13618.18%)
Mutual labels:  health
TheReportOfTheWeek-API
API of The Report Of The Week Reviews
Stars: ✭ 20 (-9.09%)
Mutual labels:  food
environmental-exposure-ontology
Modular environmental exposures ontology
Stars: ✭ 20 (-9.09%)
Mutual labels:  health
exhale
A Pebble app for breathing, written in C.
Stars: ✭ 12 (-45.45%)
Mutual labels:  health
SampleFoodBlog
🔥 Android blog application, built with Firebase
Stars: ✭ 23 (+4.55%)
Mutual labels:  food
openfoodfacts-ruby
Open Food Facts API Wrapper
Stars: ✭ 27 (+22.73%)
Mutual labels:  food
ScoutAR
Augmented reality app displays nearby restaurant information in a live camera and map view.
Stars: ✭ 28 (+27.27%)
Mutual labels:  food
lifelights
Video games blended with home automation. Control your IoT devices based on in-game statuses!
Stars: ✭ 80 (+263.64%)
Mutual labels:  health
fooddist
An open-source food image embedding model
Stars: ✭ 26 (+18.18%)
Mutual labels:  food
PanFLUte
An open source spirometer for everyone.
Stars: ✭ 14 (-36.36%)
Mutual labels:  health
openeats
Recipe Management Site created in Django
Stars: ✭ 15 (-31.82%)
Mutual labels:  cooking

Build Status

Nutrifacts.js

A library to calculate nutrition facts, smartly. No third party services or remote DBs involved.

Nutrifacts.js is a library to extract and calculate nutrition facts, on several levels of detail; the library is capable of processing natural language strings and retrieving information using precise inputs (IDs or labels).

Quick example: https://repl.it/@MarcelloBarile/Nutrifactsjs


API

Returns the list of nutrients and properties from a given list of ingredients.

@param ingredients -- The list of ingredients. Supports NLP queries (recipeStr) or precise values (label & quantity).

getNutrientsInRecipe(ingredients: IInputIngredient[])

Returns the best matching food for a given textual query.

@param query -- The query to match.

getFoodByQuery(query: string, injectNutrients: boolean)

Returns a list of nutrients that matches the given query.

@param query -- The nutrients query to match.

getNutrientsByQuery(query: string)

Returns the food entity from a given ID.

@param id -- The food ID.

getFoodById(id: string)

Returns a list of foods that contains the given ingredients' IDs.

@param ingredientsIds -- The list of ingredients' IDs to match. @param operator -- The logic operator to be applied when matching the ingredients.

getFoodsByIngredients(ingredientsIds: number[], operator: LOGIC_OPERATOR)

Returns a list of foods that have properties which match the given query string.

@param query -- The properties query to match.

getFoodsByProperties(query: string)


Installation

$ npm install nutrifacts

or

$ yarn add nutrifacts

Development

See CONTRIBUTING.md


Todos

See TODOs.md


Changelog

See CHANGELOG.md


License

UNLICENSED

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].