Live data from Hacker News

Show HN: OpenNutrition – A free, public nutrition database

opennutrition.app

1–10 of 160 posts

Show HN: OpenNutrition – A free, public nutrition database

#1
Hi HN!

Today I’m excited to launch OpenNutrition: a free, ODbL-licenced nutrition database of everyday generic, branded, and restaurant foods, a search engine that can browse the web to import new foods, and a companion app that bundles the database and search as a free macro tracking app.

Consistently logging the foods you eat has been shown to support long-term health outcomes (1)(2), but doing so easily depends on having a large, accurate, and up-to-date nutrition database. Free, public databases are often out-of-date, hard to navigate, and missing critical coverage (like branded restaurant foods). User-generated databases can be unreliable or closed-source. Commercial databases come with ongoing, often per-seat licensing costs, and usage restrictions that limit innovation.

As an amateur powerlifter and long-term weight loss maintainer, helping others pursue their health goals is something I care about deeply. After exiting my previous startup last year, I wanted to investigate the possibility of using LLMs to create the database and infrastructure required to make a great food logging app that was cost engineered for free and accessible distribution, as I believe that the availability of these tools is a public good. That led to creating the dataset I’m releasing today; nutritional data is public record, and its organization and dissemination should be, too.

What’s in the database?

- 5,287 common everyday foods, 3,836 prepared and generic restaurant foods, and 4,182 distinct menu items from ~50 popular US restaurant chains; foods have standardized naming, consistent numeric serving sizes, estimated micronutrient profiles, descriptions, and citations/groundings to USDA, AUSNUT, FRIDA, CNF, etc, when possible.

- 313,442 of the most popular US branded grocery products with standardized naming, parsed serving sizes, and additive/allergen data, grounded in branded USDA data; the most popular 1% have estimated micronutrient data, with the goal of full coverage.

Even the largest commercial databases can be frustrating to work with when searching for foods or customizations without existing coverage. To solve this, I created a real-time version of the same approach used to build the core database that can browse the web to learn about new foods or food customizations if needed (e.g., a highly customized Starbucks order). There is a limited demo on the web, and in-app you can log foods with text search, via barcode scan, or by image, all of which can search the web to import foods for you if needed. Foods discovered via these searches are fed back into the database, and I plan to publish updated versions as coverage expands.

- Search & Explore: https://www.opennutrition.app/search

- Methodology/About: https://www.opennutrition.app/about

- Get the iOS App: https://apps.apple.com/us/app/opennutrition-macro-tracker/id...

- Download the dataset: https://www.opennutrition.app/download

OpenNutrition’s iOS app offers free essential logging and a limited number of agentic searches, plus expenditure tracking and ongoing diet recommendations like best-in-class paid apps. A paid tier ($49/year) unlocks additional searches and features (data backup, prioritized micronutrient coverage for logged foods), and helps fund further development and broader library coverage.

I’d love to hear your feedback, questions, and suggestions—whether it’s about the database itself, a really great/bad search result, or the app.

1. Burke et al., 2011, https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3268700/

2. Patel et al., 2019, https://mhealth.jmir.org/2019/2/e12209/

Show HN: OpenNutrition – A free, public nutrition database
opennutrition.app

Re: Show HN: OpenNutrition – A free, public nutrition database

#2
I have been looking for something like this! I really like the interface. I wish I could click on the picture to enlarge it, so I can confirm that what I am looking for is what I am looking at. For example, we use 3-4 types of lentils and I am not sure if "brown lentil" in the database is the same brown lentil I have at home. I also really liked that I was able to search for "masoor" and the results showed red lentils; often I don't know the English name for something so it's hard to search.

Also, there is an error on this page for me: https://www.opennutrition.app/search?search=Goya

Re: Show HN: OpenNutrition – A free, public nutrition database

#3
Congrats on the launch! Looks slick and reactive. Now I wish there was an app to analyse my meals from pictures and estimate the calories/macros, I guess it exists somewhere but I doubt the accuracy, honestly the only thing I really want from so-called AIs.

Re: Show HN: OpenNutrition – A free, public nutrition database

#4
The search is broken on safari, every time it refreshes you lose the focus on the text input, which means you have to click on the search bar after every single character you type. The filters are broken, type "chocolate", chose the M&M's brand, none of the labels return a result despite showing (xxx)

> I wanted to investigate the possibility of using LLMs

ah, yeah, I guess it makes sense then...

Re: Show HN: OpenNutrition – A free, public nutrition database

#5

I have been looking for something like this! I really like the interface. I wish I could click on the picture to enlarge it, so I can confirm that what I am looking for is what I am looking at. For example, we use 3-4 types of lentils and I am not sure if "brown lentil" in the database is the same brown lentil I have at home. I also really liked that I was able to search for "masoor" and the results showed red lentil…

> I wish I could click on the picture to enlarge it, so I can confirm that what I am looking for is what I am looking at.

You want to enlarge an ai generated image to know if it matches what you have at home ?

Re: Show HN: OpenNutrition – A free, public nutrition database

#6

I have been looking for something like this! I really like the interface. I wish I could click on the picture to enlarge it, so I can confirm that what I am looking for is what I am looking at. For example, we use 3-4 types of lentils and I am not sure if "brown lentil" in the database is the same brown lentil I have at home. I also really liked that I was able to search for "masoor" and the results showed red lentil…

Thank you so much for checking out the project and the bug report. The dataset includes alternate names for each of the non-branded grocery products and those are indexed into the Go-based prefix & full-word search engine that I wrote to answer queries. Sometimes they can be a bit over-prioritized in the search experience, but, I'd still rather have them :)

Re: Show HN: OpenNutrition – A free, public nutrition database

#7
post #5

I have been looking for something like this! I really like the interface. I wish I could click on the picture to enlarge it, so I can confirm that what I am looking for is what I am looking at. For example, we use 3-4 types of lentils and I am not sure if "brown lentil" in the database is the same brown lentil I have at home. I also really liked that I was able to search for "masoor" and the results showed red lentil…

> I wish I could click on the picture to enlarge it, so I can confirm that what I am looking for is what I am looking at. You want to enlarge an ai generated image to know if it matches what you have at home ?

I guess I missed where they mentioned their images are AI generated. I assumed they were being pulled from some database.

Re: Show HN: OpenNutrition – A free, public nutrition database

#8
Pretty slick website. I also love how you using AI to generate all the food icons. It's so, so much nicer than just visually comparing text.

When I first found Cronometer and started using it daily, I did what every developer does and looked at what kind of data exists out there if I wanted to build my own app. The free data from the FDA was pretty bad/limited with massive holes and it would have taken a lot of effort to clean up.

Of course, Cronometer's best data comes from https://www.ncc.umn.edu/food-and-nutrient-database/.

Maybe you can sample your data and validate it against NCC's data via Cronometer to see if your LLM approach has legs when it comes to micronutrients and amino acids. And note that you have AIgen data that NCC's hand-measured database doesn't even have reliably, like choline, which seems like a red flag.

Re: Show HN: OpenNutrition – A free, public nutrition database

#9
post #4

The search is broken on safari, every time it refreshes you lose the focus on the text input, which means you have to click on the search bar after every single character you type. The filters are broken, type "chocolate", chose the M&M's brand, none of the labels return a result despite showing (xxx) > I wanted to investigate the possibility of using LLMs ah, yeah, I guess it makes sense then...

Ah that is an embarrassing bug. Mobile safari does not do that. Thank you for the report, looking to see why that is now.

Edit: Should be patched in Desktop Safari now.

Re: Show HN: OpenNutrition – A free, public nutrition database

#10
As this seems US focused, I'll share an alternative that works really well with European products (and a lot of US ones too, apparently): https://yuka.io/en/

Really easy to use (just scan the barcode and you get easily digested data about the product) has every product imaginable, also analyzes cosmetics and best of all, all the basic functionality is free.

Not affiliated, been using it for years at this point and now it's an essential partner when going shopping. That they let people decide their own premium pricing per year is just icing on the cake.

Post reply on HN