System Design
The monorepo contains a NestJS API, an Expo/React Native app, and Next.js web surfaces. PostgreSQL stores users, pets, reminders, subscriptions, and health records. The API handles auth, persistence, subscriptions, scheduling, AI context, and tool execution. AI retrieves pet-specific data before answering. Cron jobs drive reminders, with caching and indexing on frequent records.