How aishwaryamensinkai/pantry-tracker works
Project type and purpose
• This is a full-stack web application built with Next.js (App Router) and React.
• Purpose: Manage pantry inventory in real time, suggest recipes based on available ingredients, display analytics, and export reports.
File structure
• Top-level “app” directory: Next.js App Router with subfolders for each route—“analysis”, “dashboard”, “generate-recipes”, and the root page.
• “app/components”: React UI components (modals, lists, charts, etc.).
• “app/firebase/config.js”: Firebase initialization for Auth, Firestore, Storage.
• “app/utils/exportPdf.js”: Utility to generate PDFs (html2canvas + jsPDF).
• Configuration files: next.config.mjs, tailwind.config.js, postcss.config.mjs, .eslintrc.json.
README
• Tech stack: Next.js, React, Firebase, OpenRouter (LLAMA AI), Material-UI, Tailwind, Framer Motion, Chart.js, TensorFlow.js, Axios, React Toastify, React Table, html2canvas/jsPDF.
• Key features: real-time tracking via Firestore, recipe suggestions via external AI API, inventory analytics, PDF export, notifications.