
chat_sessions, chat_messages)X-Conversation-Idsrc/components/chat/Conversation.tsx in handleSendMessageserver/index.js in app.post("/api/chat", ...)src/components/AppSidebar.tsxsrc/components/Dashboard.tsxSelectedConversationContext)use-auto-resize-textarea) for reusable UX logicDashboard orchestrates NewChat vs Conversation vs VoiceChatchat_sessions).env in server/ contains SUPABASE_URL, SUPABASE_SERVICE_ROLE_KEY, and GEMINI_API_KEY..env file in the server directory with the following variables:server/lib/embedding-service.js)server/lib/vector-db.js)server/lib/therapist-rag.js)therapeutic_approach: CBT, DBT, and other therapy methodstherapeutic_technique: Active listening, validation, etc.mental_health_condition: Anxiety, depression support strategiescrisis_management: Safety protocols and resource guidanceprofessional_ethics: Boundary setting and scope limitationsPOST /api/chat - Main chat endpoint with RAG integrationGET /api/health - Health check endpointPosted Oct 30, 2025
Developed Astra, an AI-powered chat app using React, TypeScript, an.
0
0
Aug 15, 2025 - Sep 15, 2025