Atlas is a voice-assisted AI meal planning app. Describe your dietary preferences and Atlas generates a full 7-day meal plan with breakfast, lunch, and dinner — plus an aggregated shopping list. Refine the plan by voice at any time.
Atlas was inspired by the desire to make meal planning effortless and accessible for everyone, including those with disabilities.
- Choose your serving size and tap Plan my week.
- Speak your dietary preferences, cuisine tastes, and any restrictions.
- Atlas generates a 7-day meal plan via Groq (GPT-OSS 120B) and displays it as a card grid.
- Switch to the Shopping List tab to see every ingredient aggregated and sorted by category.
- Tap Refine your plan and say what to change — Atlas updates the plan in place.
- Browse and reload past plans from your history.
- Framework: Next.js 14 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS
- LLM: Groq API (GPT-OSS 120B) via
groq-sdk - Database: MongoDB Atlas + Mongoose
- Deployment: Vercel
For a walkthrough of how the code fits together, see docs/ARCHITECTURE.md.
app/
layout.tsx # Root layout
page.tsx # Hero + voice widget + plan/shopping tabs
globals.css # Tailwind base
api/
health/route.ts # GET /api/health — DB diagnostics
plan/route.ts # POST /api/plan — generate plan; GET — list history
plan/[id]/route.ts # GET — fetch plan; POST — refine plan
components/
VoiceRecorder.tsx # Web Speech API client component
MealPlanGrid.tsx # 7-day meal plan card grid
ShoppingList.tsx # Aggregated ingredient list by category
PlanHistory.tsx # Browse and reload saved plans
lib/
mongodb.ts # Cached Mongoose connection
llm.ts # Groq client, prompts, JSON schema
aggregateIngredients.ts # Normalize + merge ingredients into shopping list
models/MealPlan.ts # Mongoose schema (meal_plans collection)
public/
ATLAS_final.png # Hero background
github.png # GitHub icon
- Node.js 18+
- A MongoDB Atlas cluster (any collection name — the app uses
meal_plans) - A Groq API key (console.groq.com)
-
Install dependencies:
npm install
-
Create
.env.localwith your credentials:MONGODB_URI=mongodb+srv://USER:PASSWORD@HOST/DATABASE?retryWrites=true&w=majority GROQ_API_KEY=gsk_... -
Start the dev server:
npm run dev
-
Open
http://localhost:3000in Chrome or Edge (Web Speech API required).
npm run build
npx vercel --prodThen add MONGODB_URI and GROQ_API_KEY in Settings > Environment Variables in the Vercel dashboard.
- Speech recognition requires Chrome or Edge (Web Speech API).
- Plan generation takes roughly 10–15 seconds depending on Groq latency.
- Plans are persisted in MongoDB and can be reloaded from the history panel.