Platform Architecture
HIPAA-ready architecture built for mental health practices
Technology Stack
Frontend
- Next.js 16 (React framework)
- Tailwind CSS 4 (styling)
- MDX (interactive lessons)
Backend
- PostgreSQL (primary database)
- Redis (caching + sessions)
- Drizzle ORM
AI/ML
- DistilBERT (distress classifier)
- FastAPI (ML service)
- Claude API (AI coach)
System Architecture
HIPAA-Ready Architecture
The platform is built to HIPAA standards. For workloads involving real PHI, each practice runs on a dedicated instance with a signed BAA; the shared education instance is designed for de-identified use.
Security Measures
- End-to-end encryption for patient data
- Encrypted database storage (AES-256)
- Secure session management (Lucia auth)
- NPI verification for provider authentication
- Role-based access control (RBAC)
- Audit logging for all PHI access
Privacy Controls
- Patient consent tracking and management
- Data retention policies (configurable)
- Secure data deletion workflows
- PHI access logs and monitoring
- Provider-patient data segregation
- Incident response protocols
AI/ML Systems
MAIA Distress Classifier
Real-time classification of supported reflections, check-ins, coach messages, and forum submissions to identify possible distress.
AI Wellness Coach (Claude)
Context-aware therapeutic guidance using RAG (Retrieval-Augmented Generation) with course content and patient progress.
Data Flow & Processing
Patient Interaction
Patient completes lesson, quiz, journal entry, or uses AI coach
Data Capture & Storage
Encrypted data stored in PostgreSQL with audit logging
AI Analysis (if applicable)
Distress classifier analyzes text for safety concerns
Provider Notification
Mild or crisis-level results enter the secure queue and immediately email every active linked provider
Analytics Aggregation
De-identified data aggregated for completion rates, quiz scores, engagement metrics
Questions About the Architecture?
Schedule a technical deep dive with our team
Schedule Technical Demo