/ Guarded AI Fitness Coach

Pulse

A Next.js/Supabase training platform with workout logging, biometrics, PR tracking, training analytics, user-data export, and a guarded AI coach named ECHO-P1.

Pulse guarded AI coaching interface

Problem

An AI coaching feature cannot just generate text. It needs user context, data boundaries, validation, safety handling, rate limits, observability, and product workflows around the response.

System

Next.js app with Supabase-backed auth/data flows, workout and analytics surfaces, AI chat route with request validation, prompt-injection detection, moderation, sensitive-topic handling, semantic fitness intent routing, privacy mode, user-data tools, output validation, token/cost logging, and AI interaction records.

Evidence

Prompt-injection checksPrivacy modeToken/cost logs

Stack

Next.js, TypeScript, Supabase, OpenAI API, Zod, Upstash Redis, Sentry, Vitest, Playwright, Vercel.