How utkarsh3904/chefnova---ai-recipe-platform works
ChefNova is an authenticated recipe platform whose main loop is managing pantry ingredients, discovering pantry-matched suggestions, and generating or saving recipes. Users can also browse TheMealDB by category or cuisine, export recipes as PDFs, and access free or premium plans. The graph combines documented capabilities with sampled imports and calls; several route implementations and integrations were not sampled, so their documented links use the README as evidence rather than implying inspected source details.
Main entry points: recipe.actions.js Recipe actions · pantry.actions.js Pantry actions · checkUser.js User resolution · mealdb.actions.js MealDB browsing
Components 22
User experience
- Landing and pricing
app/page.jsx - Dashboard
app/(main)/dashboard/page.jsx
Pantry workflow
- Pantry manager
app/(main)/pantry/page.jsx - Add ingredients
components/AddToPantryModal.jsx - Pantry actions
actions/pantry.actions.js - Pantry suggestions
app/(main)/pantry/recipes/page.jsx
Recipe discovery
- MealDB browsing
actions/mealdb.actions.js - Category and cuisine
app/(main)/recipes/category/[category]/page.jsx - Recipe grid
components/RecipeGrid.jsx - Saved collection
app/(main)/recipes/page.jsx - Recipe actions
actions/recipe.actions.js - Recipe detail
app/(main)/recipe/page.jsx - PDF export
components/RecipePDF.jsx
Identity and plans
- Route protection
middleware.js - User resolution
lib/checkUser.js - Plan checkout
components/PricingSection.jsx
Data layer
- Mongo connection
lib/db.js - Domain models
lib/models.js
Other components
- Home cook
- TheMealDB
- Google Gemini
- Clerk
Connections 28
- Home cook → Landing and pricing: visits
app/page.jsx - Landing and pricing → Plan checkout: renders
app/page.jsx - Home cook → Dashboard: opens
- Dashboard → MealDB browsing: loads meals
app/(main)/dashboard/page.jsx - MealDB browsing → TheMealDB: fetches meals
README.md - Category and cuisine → MealDB browsing: loads selections
actions/mealdb.actions.js - Category and cuisine → Recipe grid: renders
app/(main)/recipes/category/[category]/page.jsx - Recipe grid → MealDB browsing: fetches meals
components/RecipeGrid.jsx - Pantry manager → Add ingredients: opens
components/AddToPantryModal.jsx - Add ingredients → Pantry actions: submits items
components/AddToPantryModal.jsx - Pantry manager → Pantry actions: manages pantry
app/(main)/pantry/page.jsx - Pantry manager → Pantry suggestions: opens suggestions
app/(main)/pantry/page.jsx - Pantry suggestions → Recipe actions: requests suggestions
app/(main)/pantry/recipes/page.jsx - Pantry actions → User resolution: resolves user
actions/pantry.actions.js - Recipe actions → User resolution: resolves user
actions/recipe.actions.js - User resolution → Clerk: checks session
lib/checkUser.js - Route protection → Clerk: protects routes
README.md - User resolution → Mongo connection: connects
lib/checkUser.js - Mongo connection → Domain models: initializes
lib/db.js - Pantry actions → Mongo connection: reads and writes
actions/pantry.actions.js - Recipe actions → Mongo connection: reads and writes
actions/recipe.actions.js - Recipe actions → Google Gemini: generates recipes
actions/recipe.actions.js - Pantry actions → Google Gemini: scans ingredients
README.md - Saved collection → Recipe actions: loads collection
app/(main)/recipes/page.jsx - Recipe detail → Recipe actions: requests recipe
app/(main)/recipe/page.jsx - Recipe detail → PDF export: renders PDF
app/(main)/recipe/page.jsx - Home cook → Plan checkout: chooses plan
README.md - Plan checkout → Clerk: starts checkout
README.md