Food Base imports MacroFactor food logs into Obsidian notes
Food Base turns MacroFactor CSV exports into Markdown notes that Obsidian Bases can query by nutrient.
The hard part Food Base takes on sits in the data itself: a food log exported from the MacroFactor app can list the same food, in the same unit, with different nutrition values. Food Base, a module in the switchupcb/food repository on GitHub maintained by SwitchUpCB under the MIT license, parses MacroFactor-*.csv files and writes each food as a Markdown note normalized to a single serving inside an Obsidian vault. The project surfaced on Hacker News on November 28; that date records when the repository was spotted, not when it was first published.
When two entries disagree, the Sync Macrofactor Log.md command tags the note with needs_review: true and stores the exact difference in review_reason. The vault owner settles the conflict through frontmatter properties: reviewed keeps both versions, set_as_final_version locks in the current values and duplicate_of merges the note into another one. Each food carries one of four audit states (unreviewed, allowed, banned and override); banning an ingredient linked in YAML carries the block to every food that contains it, and lifting the ban restores the earlier status.
According to the README, the Starter Kit that SwitchUpCB offers separately ships .base views with formulas for 56 nutrients, scaled to whatever serving size you choose. Setup requires Obsidian 1.9 or later and the Templater plugin. Support covers MacroFactor only: the README invites PRs for Cronometer and MyFitnessPal adapters, which the repository does not yet include.