A visual guide to our technical architecture and data flow
Teen types message in mobile app and sends to Buddy
AI analyzes message for crisis keywords (self-harm, suicide, etc.)
Google Gemini generates empathetic, age-appropriate response
Store conversation, update user profile, track patterns
If crisis detected, email guardian with details and resources
User receives Buddy's response in real-time
React Native, Expo, TanStack Query
Node.js, Next.js API Routes
PostgreSQL (Neon)