How naresh-svg/app works
Rx Clear is a medication-management app for patients and caregivers. Patients onboard, add prescriptions, manage medication schedules and doses, and review wellness, adherence, savings, and medication guidance; caregivers link to a patient and monitor adherence. The frontend calls a FastAPI backend that handles authentication and the medication-related workflows. The backend excerpt shows MongoDB access, dose-event publishing, and an LLM-backed assistant; the README provides no additional capability documentation. Several feature screens and backend routes were not sampled, so their internal relationships are not inferred.
Main entry points: api.ts HTTP API client · index.tsx App entry routing · server.py Dose and schedule API · dashboard.tsx Patient dashboard
Components 24
Patient and caregiver app
- App entry routing
frontend/app/index.tsx - Patient onboarding
frontend/app/onboarding.tsx - Settings and subscription
frontend/app/(patient)/settings.tsx - Subscription paywall
frontend/app/paywall.tsx - Purchase management
frontend/src/revenuecat.tsx - HTTP API client
frontend/src/api.ts
Identity and access
- Login and signup
frontend/app/auth/login.tsx - Authentication state
frontend/src/authContext.tsx
Medication management
- Patient dashboard
frontend/app/(patient)/dashboard.tsx - Prescription upload
frontend/src/components/UploadPrescriptionModal.tsx - Medication schedules
frontend/app/(patient)/meds.tsx
Care and insights
- Savings view
frontend/app/(patient)/savings.tsx - Insights
frontend/app/(patient)/insights.tsx - Wellness check-in
frontend/src/components/WellnessCheckin.tsx - Medication assistant
frontend/app/(patient)/ask.tsx - Caregiver adherence feed
frontend/app/(caregiver)/feed.tsx - Patient linking
frontend/app/(caregiver)/link.tsx
Backend services
- Dose and schedule API
backend/server.py - Price estimates
backend/price_bands.py
Other components
- Patient
- Caregiver
- LLM service
- MongoDB
- Supabase Realtime
Connections 25
- Patient → App entry routing: opens
- Caregiver → App entry routing: opens
- App entry routing → Login and signup: routes unauthenticated
frontend/app/index.tsx - App entry routing → Patient onboarding: routes new patients
frontend/app/index.tsx - App entry routing → Patient dashboard: routes returning patients
frontend/app/index.tsx - App entry routing → Caregiver adherence feed: routes caregivers
frontend/app/index.tsx - Login and signup → Authentication state: uses
frontend/app/auth/login.tsx - Authentication state → HTTP API client: calls auth endpoints
frontend/src/authContext.tsx - Patient dashboard → Prescription upload: renders
frontend/app/(patient)/dashboard.tsx - Prescription upload → HTTP API client: uploads image
frontend/src/components/UploadPrescriptionModal.tsx - Patient dashboard → Wellness check-in: renders
frontend/app/(patient)/dashboard.tsx - Medication schedules → HTTP API client: requests medication data
frontend/app/(patient)/meds.tsx - Savings view → HTTP API client: requests savings data
frontend/app/(patient)/savings.tsx - Insights → HTTP API client: requests insights data
frontend/app/(patient)/insights.tsx - Wellness check-in → HTTP API client: submits check-ins
frontend/src/components/WellnessCheckin.tsx - Medication assistant → HTTP API client: sends questions
- Caregiver adherence feed → HTTP API client: loads adherence feed
frontend/app/(caregiver)/feed.tsx - Caregiver adherence feed → Supabase Realtime: subscribes to events
frontend/app/(caregiver)/feed.tsx - Patient linking → HTTP API client: uses linking endpoints
frontend/app/(caregiver)/link.tsx - Settings and subscription → Purchase management: uses subscription state
frontend/app/(patient)/settings.tsx - Subscription paywall → Purchase management: uses purchase flows
frontend/app/paywall.tsx - HTTP API client → Dose and schedule API: calls backend over HTTP
frontend/src/api.ts - Dose and schedule API → MongoDB: reads and writes
backend/server.py - Dose and schedule API → Price estimates: looks up price bands
backend/server.py - Dose and schedule API → LLM service: requests assistant response
backend/server.py