RecipeAI

AI Recipe Generator · TypeScript / React 19 / Next.js 16.2.5 (App Router) · Tailwind CSS v4

RecipeAI is an AI-powered recipe generator built as a Next.js App Router SPA. It generates recipes via the Groq LLM (with a predefined dataset fallback), persists saved recipes in browser localStorage, and loads recipe imagery from the Unsplash CDN.

Generated 4 Jun 2026 · 57 files · 8 components · 5 flows

File Architecture

The full source tree as a layered graph — every file with its role, imports, exports and reverse dependencies.

System Design

Runtime topology across the five zones — client, edge, application, data and external services.

Flow Graph

The five most significant application flows, step by step — startup, auth, write, read and error recovery.

Technology

ComponentTechnologyVersionSource of Detection
FrameworkNext.js (App Router)16.2.5package.json
UI libraryReact / React DOM19.2.4package.json
LanguageTypeScript^5package.json, tsconfig.json
StylingTailwind CSS^4package.json, postcss.config.mjs
UI primitivesRadix UI / shadcn^1.4.3 / ^4.7.0package.json, components.json
AnimationFramer Motion^12.38.0package.json
Iconslucide-react^1.14.0package.json
Forms / validationreact-hook-form + Zod + @hookform/resolvers^7.75.0 / ^4.4.3 / ^5.2.2package.json, src/lib/validations.ts
Class utilitiesclsx + tailwind-merge + class-variance-authority^2.1.1 / ^3.5.0 / ^0.7.1package.json, src/lib/utils.ts
AI providerGroq Chat Completions (OpenAI-compatible)llama-3.1-8b-instantsrc/app/api/generate-recipe/route.ts
Image sourceUnsplash (next/image remote)*[unresolved]*next.config.ts
PersistenceBrowser localStoragen/asrc/lib/recipe-storage.ts
LintESLint + eslint-config-next^9 / 16.2.5eslint.config.mjs