Platform Architecture

Built for extensibility, designed for regulation

A multi-surface application with domain-driven architecture. The backend is production-quality with 24+ API routes, structured scheduling, and clinical safety gates.

User Application

Dashboard, chat, profile, and settings for end users.

4 pages

Admin Console

Operational views for users, jobs, and system metrics.

4 pages

API Surface

RESTful endpoints with consistent envelope responses.

24+ routes
Architecture

Domain-driven server layer

Each module is a focused domain service with clear boundaries and well-defined contracts.

Messaging Layer

Channel adapters for SMS (Twilio), iMessage, Telegram, and Discord. Typed routing with automatic retries, delivery tracking, and per-user channel preferences.

Multi-channel deliveryDelivery receiptsAutomatic retriesConsole fallback for local dev

Recommendation Engine

Goal-grounded recommendations with explicit evidence references. Every recommendation is policy-gated before delivery — blocked claims never reach users.

Evidence-backed suggestionsPolicy gate checksGoal alignment scoringBlocked state handling

Proactive Scheduler

Computes optimal daily time slots respecting quiet hours, cooldown windows, frequency caps, and consent status. Dispatcher picks up due jobs and routes through messaging.

Quiet hour enforcementCooldown windowsConsent-aware dispatchFrequency caps

Safety & Policy

STOP pattern detection, distress signal escalation (suicidal ideation, chest pain), and scope-of-practice filtering. No diagnosis claims, no prescription directives.

Distress detectionEscalation protocolsScope filteringSTOP compliance

Health Event Parser

Structured parsing of natural language into typed health events: meals, exercise, sleep, and mood. Feeds into daily rollups and trend analysis.

Natural language parsingTyped event modelsDaily rollup aggregationTrend computation

Data & Audit Layer

PostgreSQL via Prisma ORM with comprehensive audit logging. Every action includes actor, trace ID, and policy version metadata for regulatory traceability.

Full audit trailTrace ID propagationPolicy version trackingPrisma ORM

Ready to explore the platform?

Try the user app, review the admin console, or check our pricing for deployment options.