An AI-Powered Nutrition Intelligence Operating System built on Cognitive Planning, Multi-Agent Reasoning, Hybrid RAG, and Reflection Loops.
Explore a complete walkthrough of the ForkFit platform, showing live integration, signups, and session management.
Click the image above to watch the walkthrough on YouTube.
Here is a quick look at ForkFit's responsive dashboard, real-time logging, and sub-second token verification.
ForkFit goes beyond static planners by orchestrating continuous reasoning, learning, and personalization across three interdependent intelligence loops:
Responsible for decision making and plan creation.
- Cognitive Planner: Decomposes user requests into execution sub-tasks.
- Consensus Layer: Aligns multi-agent viewpoints and ranks suggestions.
- Judge Layer: Assures quality, safety, and goal validation before outputting, triggering replanning if validation fails.
Responsible for grounding the system with factual constraints.
- Hybrid RAG Engine: Fuses semantic retrieval, metadata-filtered matches, and meal histories.
- pgvector Search: Matches vector embeddings for ingredients, memory recall, and recipes using
vector(1536)and HNSW indexes. - Knowledge Graph (Memgraph): Traverses nutrient interactions, allergy maps, and ingredient substitutions.
Responsible for adapting the platform based on real-world outcomes.
- Reflection Engine: Analyzes adherence, successes, and failures to distill preference updates.
- Agent Memories: Saves extracted rules and personalization parameters back to database memory slots.
ForkFit executes a specialized suite of agents in parallel to plan, verify, and present recommendations:
- 🛡️ Safety Agent: Audits allergies, health issues, and medical restrictions.
- 🥗 Nutrition Agent: Computes daily/weekly targets (macros, micro-nutrients, calories).
- 💰 Budget Agent: Optimizes grocery purchases and weekly spending bounds.
- 🌍 Culture Agent: Integrates regional cuisines and religious dietary alignments.
- 🍳 Recipe Agent: Recommends recipes, cooking steps, and variations.
- 📅 Calendar Agent: Schedules meal timelines, balancing workout schedules and sleep routines.
- 🛒 Shopping Agent: Builds efficient shopping checklists and plans pantry utilization.
- 📊 Analytics Agent: Tracks adherence, health logs, and weight trends.
- 🎨 Visualization Agent: Directs Chart, Mermaid, Canvas, and Dashboard generators to render custom visuals for the user.
ForkFit organizes data into 8 sequential domain systems serving as the system's database substrate:
- Identity, Access Control & RBAC: Session refreshes, user accounts, social signins, and granular permissions.
- Profiles, Preferences, & Health Safety: User goals, biometrics, workout journals, and allergy profiles.
- Recipes, Ingredients, & Cooking: Cost metrics, culinary tags, parental recipe branching, and consumption logs.
- Meal Planning & Shopping Lists: Plan items, pantry inventories, and grocery checklists.
- Chat & Feedbacks: Conversation sessions and feedback metrics to fuel reflection.
- AI Orchestration & Memory: Agent execution step metrics, tracing outputs, and memory items.
- pgvector RAG Search: Dense vector index attachments for recipes, ingredients, and long-term memory.
- Asynchronous Processing & Audit: Background workers, notification histories, and security logs.
- Frontend: Next.js (Web App & Developer API Docs), Expo (Mobile App)
- Backend & API Gateways: Rust (Axum, SQLx)
- Orchestration: LangGraph
- LLMs: OpenAI GPT-4, Gemma4, Qwen text embeddings
- Primary Databases: PostgreSQL & Redis
- Vector Engine: pgvector (with HNSW index support)
- Observability: LangSmith & OpenTelemetry
- Deployment: Docker & Kubernetes
ForkFit/
├── client/ # Monorepo client package (using Turbo & Bun)
│ ├── web/ # Frontend Next.js web application UI
│ └── docs/ # Developer documentation & API portal (Next.js + Fumadocs)
└── server/ # Backend core engine [(Api)(Rust + Actix/Axum + SQLx) + (Intelligence)(Python + gRPC + LangGraph)]All detailed technical references, environment configurations, and API descriptions are hosted in the local docs server:
- Navigate to the docs workspace:
cd client/docs - Install dependencies and start the dev server:
bun install bun run dev
- Open http://localhost:3001 to view the Docs portal.
This project is licensed under the MIT License. See LICENSE for details.
