Back to Projects

CalorieCouch

Next.jsExpress.jsLangChainOpenAIPostgreSQLRedisDocker

Overview

CalorieCouch is an AI-powered nutrition coaching and tracking application designed to help users monitor their dietary intake and receive personalized nutritional guidance through a conversational AI interface.

Objectives

  • ▸ Provide conversational AI interface for nutrition coaching
  • ▸ Enable natural language food logging
  • ▸ Deliver personalized nutritional advice based on user's goals
  • ▸ Track daily nutrition goals with progress monitoring
  • ▸ Support voice interaction for hands-free use

Architecture

Full-stack application with Next.js 15 frontend, Express.js backend with WebSocket real-time communication, LangChain AI framework with OpenAI GPT-3.5-turbo, PostgreSQL database with Sequelize ORM, Redis caching layer, and Docker containerization.

Key Features

  • ▸ Real-time chat with AI nutrition coach using LangChain memory
  • ▸ Natural language food logging with NutritionIX API integration
  • ▸ Daily nutrition goal tracking with visual progress indicators
  • ▸ Speech-to-text and text-to-speech for hands-free operation
  • ▸ File upload support for nutritional analysis
  • ▸ WebSocket communication for instant message delivery
  • ▸ Google OAuth 2.0 authentication

Challenges

  • ▸ Implementing context-aware AI conversations with memory retention across sessions
  • ▸ Accurate nutritional data parsing from natural language descriptions
  • ▸ Real-time WebSocket communication with session persistence
  • ▸ Optimizing API costs through intelligent Redis caching

Outcomes

  • ▸ Successfully built a production-ready AI nutrition coaching platform
  • ▸ Achieved real-time conversational AI with context retention
  • ▸ Integrated multiple external APIs for comprehensive nutritional data