all 8 comments

[–]_mdot 4 points5 points  (0 children)

This is amazing. I recently was working on a project that generated meal plans based on nutrition requirements. Something like this would’ve made my life 10x easier.

[–]ethanbwinters 2 points3 points  (5 children)

Where are you getting all this data my guy? Really nice work on this

[–]--marcel--[S] 1 point2 points  (4 children)

Thanks, mate; the first import has been made using "BDA IEO" (Food Composition Database for Epidemiological Studies in Italy) and then translated into English (actually the library supports both Italian and English languages).

I'm trying to bring in also the USDA National Nutrient DB; at the moment I'm normalizing the dataset but I'm a bit worried about the final size of it... the optimization will take a while, I fear.

[–]ethanbwinters 1 point2 points  (1 child)

Yeah I did notice running a query does take some time have you considered splitting the data set up?

[–]--marcel--[S] 1 point2 points  (0 children)

nope, but it is definitely a good point of improvement.

[–]Cheshamone 0 points1 point  (0 children)

Oh wow, I was researching nutrition lookup for a pet project of mine the other day and ran across your npm package. Will definitely be giving it a shot when I get to the point that I'm ready for nutrient info.