tohuwabohu-io / librefit

OpenSource calorie tracker using kotlin, quarkus, postgresql, SvelteKit and OpenAPI 3
https://libre.fit/
GNU General Public License v3.0
1 stars 0 forks source link

food library #48

Open tohuwabohu-io opened 11 months ago

tohuwabohu-io commented 11 months ago

Being able to define, search for and maybe share a pre-set of things I regularly eat would be convenient feature on top of adding raw calories.

This is just a brainstorm placeholder and not something I can go into blindly, it will require a lot of planning.

tohuwabohu-io commented 3 months ago

I think the JSON/JSONB column types of postgres could be utilized here. The structure could roughly contain 3 parts:

  1. Ingredients (which could link to other food items)
  2. Nutrional value (calories, micro- and macronutrients)
  3. A list of instructions

Maintenance of food items wouldn't be part of librefit itself, but maybe some external tool to avoid making stuff complicated with a different set of roles per user. librefit would access the data read-only.