Build a nutrition logger over a local copy of a public food database, with micronutrients as the point rather than an extra. Import USDA FoodData Central — the Foundation Foods and SR Legacy sets, which are public domain — into SQLite, and optionally the Open Food Facts export for packaged products with barcodes. Normalise nutrients to a common unit per 100 g at import, because mixing per-serving and per-100 g rows is the bug that quietly makes every total wrong. Logging is: search, pick a food, enter an amount in grams or a listed portion, done. Keep a recents list and a favourites list, since real eating is repetitive and search is the slow part. The daily view shows energy and macros at the top, then every micronutrient with a bar against a reference intake you configured — age, sex, and whichever reference set you choose, stored in a file so the assumptions are visible. Nutrients with no data in the source rows are shown as "no data", never as zero. That distinction matters: a food with an unmeasured vitamin is not a food with none of it, and conflating them makes a log actively misleading. Recipes are foods composed of foods, with a yield weight so a portion of a bake is computed rather than guessed. Add a weekly report of the nutrients that came in furthest under their reference, with the three foods you ate most that are best placed to fix each. Do not build barcode scanning against a scraped database, and do not attempt to enter packaged foods by hand at scale — use Open Food Facts, contribute back the products you add, and accept that coverage varies by country.