How subhashdoc234xyz/retinalens works
RetinaLens is a clinical web app for diabetic-retinopathy screening: clinicians enter through the landing and authentication views, submit fundus scans, review grading and explainability, and manage screening history and reports. Its React client is served alongside an Express API; the API can delegate inference to a configured edge model or AI providers, while client storage supports Supabase and local fallback behavior. The excerpts show the API integrations and several client-to-storage calls, but not the Dashboard’s full submission request path, so that link is marked unverified.
Main entry points: App.tsx App shell · server.ts Clinical API · storage.ts Scan storage adapter · supabase.ts Supabase client
Components 19
Clinical client
- App shell
src/App.tsx - Landing view
src/components/LandingHero.tsx - Authentication view
src/components/AuthView.tsx - Clinical navigation
src/components/Sidebar.tsx - Brand navigation
src/components/Navbar.tsx - RetinaLens logo
src/components/RetinaLensLogo.tsx
Screening workflow
- Scan dashboard
src/components/Dashboard.tsx - Scan results and XAI
src/components/ResultsView.tsx - Screening history
src/components/HistoryView.tsx - Clinical report
src/components/ReportModal.tsx
Inference service
- Clinical API
server.ts
Identity and records
- Scan storage adapter
src/lib/storage.ts - Supabase client
src/lib/supabase.ts
Other components
- Clinician
- Edge inference endpoint
- Groq vision
- Gemini vision
- Supabase Auth and database
- Browser cache
Connections 24
- Clinician → Landing view: opens
README.md - App shell → Landing view: renders
src/App.tsx - App shell → Authentication view: renders
src/App.tsx - App shell → Clinical navigation: renders
src/App.tsx - App shell → Scan dashboard: renders
src/App.tsx - App shell → Scan results and XAI: renders
src/App.tsx - App shell → Screening history: renders
src/App.tsx - App shell → Clinical report: renders
src/App.tsx - Clinician → Authentication view: signs in
src/components/AuthView.tsx - Authentication view → Supabase client: starts OAuth
src/components/AuthView.tsx - Brand navigation → RetinaLens logo: renders
src/components/Navbar.tsx - Scan dashboard → Scan storage adapter: saves scan
src/components/Dashboard.tsx - Scan dashboard → Clinical API: submits scan
- Clinical API → Edge inference endpoint: forwards image
server.ts - Clinical API → Groq vision: requests analysis
server.ts - Clinical API → Gemini vision: requests analysis
server.ts - Scan storage adapter → Supabase client: uses client
src/lib/storage.ts - Supabase client → Supabase Auth and database: auth and data
src/lib/supabase.ts - Supabase client → Clinical API: fetches auth config
src/lib/supabase.ts - Clinical API → Supabase client: provides config
server.ts - Scan storage adapter → Browser cache: caches scans
src/lib/storage.ts - App shell → Scan storage adapter: loads scans
src/App.tsx - App shell → Scan storage adapter: deletes scan
src/App.tsx - Screening history → Scan storage adapter: stores searches
src/components/HistoryView.tsx