# niharikajatla17-arch/gramcare architecture

> Architecture diagram of the GitHub repository niharikajatla17-arch/gramcare, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/niharikajatla17-arch/gramcare
- Repository: https://github.com/niharikajatla17-arch/gramcare

## Overview

GramCare is a browser-based health companion. A user enters the React app to manage medicines and reminders, then can also record patient details and health readings. The app keeps medicine and language preferences in browser storage, while the profile and health-record views save their own data there. It also offers prescription-file selection, browser notifications, and speech assistance. The sampled code shows the app entry and these feature components; no server or external health service is evident.

Main entry points: [`src/App.jsx`](https://github.com/niharikajatla17-arch/gramcare/blob/main/src/App.jsx) (Medicine dashboard), [`src/main.jsx`](https://github.com/niharikajatla17-arch/gramcare/blob/main/src/main.jsx) (React entry), [`src/PatientProfile.jsx`](https://github.com/niharikajatla17-arch/gramcare/blob/main/src/PatientProfile.jsx) (Patient profile), [`src/HealthRecords.jsx`](https://github.com/niharikajatla17-arch/gramcare/blob/main/src/HealthRecords.jsx) (Health readings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App experience"]
  node_entry["React entry<br/>[main.jsx]"]
  node_app["Medicine dashboard<br/>[App.jsx]"]
end

subgraph group_health["Health records"]
  node_profile["Patient profile<br/>[PatientProfile.jsx]"]
  node_records["Health readings<br/>[HealthRecords.jsx]"]
end

subgraph group_browser["Browser capabilities"]
  node_storage[("Browser storage")]
  node_notifications["Notifications API"]
  node_speech["Speech synthesis"]
end

node_user(("Patient"))

node_user -->|"opens app"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_profile
node_app -->|"renders"| node_records
node_app -->|"reads/writes preferences and medicines"| node_storage
node_profile -->|"writes profile"| node_storage
node_records -->|"reads/writes readings"| node_storage
node_app -->|"requests permission and notifies"| node_notifications
node_app -->|"speaks schedule"| node_speech

click node_entry "https://github.com/niharikajatla17-arch/gramcare/blob/main/src/main.jsx"
click node_app "https://github.com/niharikajatla17-arch/gramcare/blob/main/src/App.jsx"
click node_profile "https://github.com/niharikajatla17-arch/gramcare/blob/main/src/PatientProfile.jsx"
click node_records "https://github.com/niharikajatla17-arch/gramcare/blob/main/src/HealthRecords.jsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_app toneBlue
class node_profile,node_records toneAmber
class node_storage,node_notifications,node_speech toneMint
class node_user toneIndigo
```

## Components

### App experience

- [React entry](https://github.com/niharikajatla17-arch/gramcare/blob/main/src/main.jsx): `src/main.jsx`
- [Medicine dashboard](https://github.com/niharikajatla17-arch/gramcare/blob/main/src/App.jsx): `src/App.jsx`

### Health records

- [Patient profile](https://github.com/niharikajatla17-arch/gramcare/blob/main/src/PatientProfile.jsx): `src/PatientProfile.jsx`
- [Health readings](https://github.com/niharikajatla17-arch/gramcare/blob/main/src/HealthRecords.jsx): `src/HealthRecords.jsx`

### Browser capabilities

- **Browser storage**
- **Notifications API**
- **Speech synthesis**

### Other components

- **Patient**

## Connections

- Patient → React entry: opens app (evidence: `src/main.jsx`)
- React entry → Medicine dashboard: renders (evidence: `src/main.jsx`)
- Medicine dashboard → Patient profile: renders (evidence: `src/App.jsx`)
- Medicine dashboard → Health readings: renders (evidence: `src/App.jsx`)
- Medicine dashboard → Browser storage: reads/writes preferences and medicines (evidence: `src/App.jsx`)
- Patient profile → Browser storage: writes profile (evidence: `src/PatientProfile.jsx`)
- Health readings → Browser storage: reads/writes readings (evidence: `src/HealthRecords.jsx`)
- Medicine dashboard → Notifications API: requests permission and notifies (evidence: `src/App.jsx`)
- Medicine dashboard → Speech synthesis: speaks schedule (evidence: `src/App.jsx`)
