Skip to content
Back to projects
MehZu AI architecture: Life data (Journal & mood, Habits, Prayer & Quran, Workouts, Goals) → Convex (Context assembly, AI memories) → AI layer (Provider resolver) → Experience (Companion chat, Daily briefing, Insights)01 — Context-grounded AILife dataConvexAI layerExperienceJournal & moodHabitsPrayer & QuranWorkoutsGoalsContext assemblyowner-checked, boundedAI memoriesimportance thresholdProvider resolver4 providers, one pathCompanion chatDaily briefingInsights

Case study 01

MehZu AI

An AI-native personal life-management system

2025 — Now Creator: product, design & engineeringIn active development
  • React 19
  • TypeScript
  • Convex
  • Convex Auth
  • Tailwind CSS v4
  • shadcn/ui
  • Framer Motion
  • LLM providers

Overview

Journaling, mood, habits, prayer, workouts and goals in one place, with an AI companion that reads that context before it answers, so its advice is specific to you rather than generic.

The Problem

Self-improvement data usually lives in separate apps: a journal in one, a habit tracker in another, prayer and workouts somewhere else. None of them share context.

So an “AI coach” built on top of any one of them sees only a small part of the person, and it falls back on generic advice.

The Approach

MehZu puts the main areas of daily life into one data model that the user owns, then builds the AI on top of it. Before it responds, the companion assembles a bounded, user-scoped summary of recent journal entries, moods, habits, prayers, workouts and goals, and it keeps a small memory of facts worth remembering.

The interface is deliberately calm. There are no badges or streak pressure designed to pull you back. The aim is a tool you return to because it helps.

Architecture

  • ClientReact 19 + TypeScript SPA with lazy-loaded routes, shadcn/ui on Tailwind CSS v4, Framer Motion and React Router v7.
  • BackendConvex queries, mutations and actions over 13 tables: users, preferences, journal entries, habits and logs, prayer and Quran logs, workout sessions and sets, goals, conversations, messages and AI memories.
  • AuthConvex Auth with email one-time passcodes and a protected-route pattern that returns users to the page they asked for.
  • AIA provider resolver picks the configured LLM (Groq, OpenRouter, Gemini or OpenAI), so chat and the daily briefing share one code path and switching models is a configuration change.
  • ContextA central context builder gathers recent user data with ownership checks and bounded result sets, then hands a structured context to the prompt.

Engineering Decisions

Provider-agnostic from day one

Provider selection lives in one module with no Convex imports, so every AI feature reuses it. The briefing gives reasoning models a larger token budget, because they spend hidden tokens before returning JSON.

Insights only from real data

The insights module only reports on data the user has actually logged. It doesn’t invent trends to fill an empty dashboard.

Memory with a threshold

Facts pulled from conversations carry an importance score, and only those above a minimum score are used as context. The parsing helpers are pure functions, so they can be tested without an API key.

Docs as part of the product

Product vision, requirements, UX system, database and AI architecture, decision log and launch checklist all live in the repository, alongside the code.

My Contribution

  • Product definition, requirements and roadmap
  • Design system and every screen: onboarding, dashboard, journal, habits, prayer, workouts, goals, insights, chat, profile and settings
  • Convex schema, queries, mutations and actions
  • AI layer: provider resolution, context assembly, memory extraction and daily briefing

Where It Stands

Built

  • Authentication and onboarding
  • Journal with history and detail views
  • Habits, prayer & Quran, workouts (sessions and sets) and goals
  • AI chat with saved conversations and a memory layer
  • Daily briefing and data-based insights

Next

  • Working through the production launch checklist
  • Deeper long-term memory and more proactive suggestions

Next case study

MedRef