The Nutrition Planner is a local development app. It requires a Python backend server to load food data from the SQLite database. Right now, you may be seeing "Loading foods…" because the server isn't running.
Open a terminal and run:
Then visit http://localhost:9020 in your browser. The app will load instantly with all 600+ foods.
To use this on your website (burnmarkproductions.com), you'll need to:
/api/...) to absolute URLs pointing to your deployed server
Your food database (food.db) contains:
✓ For now, run the server locally using Solution 1 above.
Adding new foods is a batch process. Here's the complete workflow:
Create a new seed list file (or edit an existing one):
Or edit enrich.py to add a CLI flag for your new list:
The enrichment engine automatically fetches nutrient data from USDA FoodData Central:
What happens:
Convert the updated database to a static JSON file:
This generates foods.json with all 600+ foods.
Push to GitHub and the app auto-updates:
Your static site (GitHub Pages, Vercel, etc.) will serve the new foods.json automatically.
For items like cocktails, local pizza, or custom recipes without USDA entries:
data_source='recipe_calculated'. See enrich.py for examples.
See WORKFLOW.md in the health/food folder for detailed step-by-step instructions and troubleshooting.
✓ The key: Enrich locally, export to JSON, commit to GitHub, deploy anywhere!
Click + next to any food
to add it to your meal