How kxm1908/wehack26 works
BackTrack turns patient memory-gallery visits into speech metrics and image-based observations, then presents session history and longitudinal summaries to clinicians. The main path runs from authentication and profile setup through a prompted recording, backend analysis, persistence, and clinician review. The excerpts show those routes and the analysis/storage calls; the clinician dashboard’s detailed data-fetch behavior was not shown, so its API relationship is documented by the README rather than asserted from source.
Main entry points: App.jsx App routing · index.js Express API · MemorySession.jsx Memory session · AuthContext.jsx Auth and profile
Components 21
Patient experience
- App routing
frontend/src/App.jsx - Museum entrance
frontend/src/Landing.jsx - Profile onboarding
frontend/src/Onboarding.jsx - Memory galleries
frontend/src/MuseumHome.jsx - Memory session
frontend/src/MemorySession.jsx - Audio capture
frontend/src/useAudioAnalysis.js
Identity and profile
- Google sign-in
frontend/src/Login.jsx - Auth and profile
frontend/src/AuthContext.jsx - Firebase client
frontend/src/firebaseClient.js
Analysis API
- Express API
backend/src/index.js - Analyze endpoint
backend/src/routes/analyze.js - Voice endpoint
backend/src/routes/voice.js - Session endpoints
backend/src/routes/sessions.js
Analysis services
- Speech metrics
backend/src/services/audioAnalysis.js - Gemini observations
backend/src/services/gemini.js - ElevenLabs voice
backend/src/services/elevenlabs.js
Session records
- Firestore access
backend/src/firebase.js
Clinician review
- Clinician dashboard
frontend/src/ClinicianDashboard.jsx - Clinician access
frontend/src/ClinicianLogin.jsx
Other components
- Patient
- Clinician
Connections 28
- Patient → App routing: opens
README.md - App routing → Museum entrance: routes to
frontend/src/App.jsx - App routing → Google sign-in: routes to
frontend/src/App.jsx - App routing → Profile onboarding: protects route
frontend/src/App.jsx - App routing → Memory galleries: protects route
frontend/src/App.jsx - App routing → Memory session: protects route
frontend/src/App.jsx - App routing → Clinician dashboard: routes to
frontend/src/App.jsx - App routing → Clinician access: routes to
frontend/src/App.jsx - Google sign-in → Auth and profile: signs in through
frontend/src/Login.jsx - Auth and profile → Firebase client: uses
frontend/src/AuthContext.jsx - Profile onboarding → Auth and profile: saves profile
frontend/src/Onboarding.jsx - Memory galleries → Auth and profile: reads identity
frontend/src/MuseumHome.jsx - Memory session → Auth and profile: reads profile
frontend/src/MemorySession.jsx - Memory session → Audio capture: records through
frontend/src/MemorySession.jsx - Memory session → Express API: posts analysis
frontend/src/MemorySession.jsx - Memory session → Express API: requests voice
frontend/src/MemorySession.jsx - Express API → Analyze endpoint: mounts
backend/src/index.js - Express API → Voice endpoint: mounts
backend/src/index.js - Express API → Session endpoints: mounts
backend/src/index.js - Analyze endpoint → Speech metrics: computes metrics
backend/src/routes/analyze.js - Analyze endpoint → Gemini observations: requests insight
backend/src/routes/analyze.js - Analyze endpoint → Firestore access: reads and writes
backend/src/routes/analyze.js - Voice endpoint → ElevenLabs voice: requests speech
backend/src/routes/voice.js - Session endpoints → Firestore access: reads and writes
backend/src/routes/sessions.js - Session endpoints → Gemini observations: requests summary
backend/src/routes/sessions.js - Clinician → Clinician dashboard: reviews trends
README.md - Clinician dashboard → Express API: loads session analytics
- Clinician → Clinician access: opens
README.md