How techstack-ujjwal/synapse works
Synapse AI is a multilingual patient-intake and clinician-support application. Patients enter symptoms and conversation details, can submit prior reports, and receive a triage summary and patient token; clinicians use a dashboard and patient review screens to manage consultations and review reports. The frontend and FastAPI backend are distinct runtime layers, with SQLite and optional AI services in the backend. Source excerpts show the main page’s speech and report-display dependencies and backend schema imports; several API connections are inferred from the product structure and are marked unverified.
Main entry points: [locale]/page.tsx Intake Workflow · main.py API and Workflows · doctor-dashboard/page.tsx Clinician Dashboard · [patient_id]/page.tsx Patient Review
Components 14
Patient Intake
- Intake Workflow
app/[locale]/page.tsx - Browser Speech
lib/speech.ts - Parameter Cards
components/ui/parameter-card.tsx - Report Comparison
components/ui/report-comparison.tsx
Clinical Review
- Clinician Login
app/[locale]/doctor-login/page.tsx - Clinician Dashboard
app/[locale]/doctor-dashboard/page.tsx - Patient Review
app/[locale]/doctor-dashboard/review/[patient_id]/page.tsx
Backend Services
- API and Workflows
backend/main.py - API Schemas
backend/app/schemas - SQLite Database
backend/main.py - OpenAI Services
Language Support
- Locale Messages
i18n/request.ts
Other components
- Patient
- Clinician
Connections 15
- Patient → Intake Workflow: enters details
app/[locale]/page.tsx - Intake Workflow → Browser Speech: uses recognition
app/[locale]/page.tsx - Intake Workflow → Parameter Cards: renders
app/[locale]/page.tsx - Intake Workflow → Report Comparison: renders
app/[locale]/page.tsx - Intake Workflow → API and Workflows: submits intake
- Clinician → Clinician Login: signs in
- Clinician → Clinician Dashboard: manages queue
- Clinician Dashboard → Patient Review: opens patient
- Clinician Dashboard → API and Workflows: requests queue
- Patient Review → API and Workflows: requests records
- API and Workflows → API Schemas: uses models
backend/main.py - API and Workflows → SQLite Database: reads and writes
backend/main.py - API and Workflows → OpenAI Services: requests analysis
- Intake Workflow → Locale Messages: loads translations
app/[locale]/page.tsx - Clinician Dashboard → Locale Messages: loads locale