Tracking macros gets tiring, and when we eventually all give up, we just start estimating in our heads. Macrobud estimates for you, giving more accurate figures so you actually hit your goals.
- Node.js (v18+)
- Python (3.10+)
No database install needed -- the app uses SQLite which is built into Python.
cd backend
pip install -r requirements.txtAdd your OpenAI API key to backend/.env:
OPENAI_API_KEY=sk-your-key-here
Start the server:
uvicorn main:app --reloadThe API runs at http://localhost:8000.
cd frontend
npm install
npm run devThe app runs at http://localhost:5173.
- Open
http://localhost:5173in your browser. - Type one or more foods into the input (e.g. "1 slice of rye bread, 2 eggs, a glass of milk").
- The app sends your input to OpenAI, which splits multi-food entries and estimates macros for each item.
- If anything is vague (e.g. "chicken breast" without a quantity), you'll get a prompt to clarify.
- Your running totals update as you add or remove items.
| Layer | Technology |
|---|---|
| Frontend | React + Vite |
| Backend | Python + FastAPI |
| Database | SQLite |
| AI | OpenAI gpt-4o-mini |