# krishnasai89/ayurveda architecture

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

- Interactive diagram: https://gitdiagram.com/krishnasai89/ayurveda
- Repository: https://github.com/krishnasai89/ayurveda

## Overview

Ayurveda is a content-focused Next.js site presenting Ayurvedic concepts, herbs, and a medical reference. Visitors enter through the home page to explore dosha and herb sections, or use navigation to reach the medical index, search comparative entries, and inspect medicine details. The sampled code shows page composition and local JSON-backed medicine data; it does not show a backend or external clinical service. SmoothScroll is present as a component, but its use is not shown in the sampled pages.

Main entry points: [`src/app/page.tsx`](https://github.com/krishnasai89/ayurveda/blob/main/src/app/page.tsx) (Home page), [`src/app/medical/page.tsx`](https://github.com/krishnasai89/ayurveda/blob/main/src/app/medical/page.tsx) (Medical index), [`src/app/layout.tsx`](https://github.com/krishnasai89/ayurveda/blob/main/src/app/layout.tsx) (Root layout), [`src/components/navigation/Navbar.tsx`](https://github.com/krishnasai89/ayurveda/blob/main/src/components/navigation/Navbar.tsx) (Site navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Site entry"]
  node_layout["Root layout<br/>[layout.tsx]"]
  node_home_page["Home page<br/>[page.tsx]"]
end

subgraph group_home["Ayurveda learning"]
  node_hero["Ayurveda hero<br/>[Hero.tsx]"]
  node_doshas["Dosha guide"]
  node_apothecary["Herb apothecary"]
  node_bg_canvas["Ambient canvas<br/>[BgCanvas.tsx]"]
end

subgraph group_medical["Medical reference"]
  node_medical_page["Medical index<br/>[page.tsx]"]
  node_medical_data["Medicine records<br/>[medical.json]"]
  node_medicine_card["Medicine details<br/>[MedicineCard.tsx]"]
end

subgraph group_shared["Shared components"]
  node_navbar["Site navigation<br/>[Navbar.tsx]"]
  node_smooth_scroll["Smooth scrolling<br/>[SmoothScroll.tsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens home"| node_home_page
node_layout -->|"wraps page"| node_home_page
node_layout -->|"wraps page"| node_medical_page
node_home_page -->|"renders"| node_navbar
node_home_page -->|"renders"| node_hero
node_home_page -->|"renders"| node_doshas
node_home_page -->|"renders"| node_apothecary
node_home_page -->|"renders"| node_bg_canvas
node_medical_page -->|"renders"| node_navbar
node_medical_page -->|"reads records"| node_medical_data
node_medical_page -->|"renders cards"| node_medicine_card

click node_layout "https://github.com/krishnasai89/ayurveda/blob/main/src/app/layout.tsx"
click node_home_page "https://github.com/krishnasai89/ayurveda/blob/main/src/app/page.tsx"
click node_hero "https://github.com/krishnasai89/ayurveda/blob/main/src/components/Hero/Hero.tsx"
click node_doshas "https://github.com/krishnasai89/ayurveda/blob/main/src/components/TridoshaSection.tsx"
click node_apothecary "https://github.com/krishnasai89/ayurveda/blob/main/src/components/ApothecarySection.tsx"
click node_bg_canvas "https://github.com/krishnasai89/ayurveda/blob/main/src/components/canvas/BgCanvas.tsx"
click node_medical_page "https://github.com/krishnasai89/ayurveda/blob/main/src/app/medical/page.tsx"
click node_medical_data "https://github.com/krishnasai89/ayurveda/blob/main/src/Data/medical.json"
click node_medicine_card "https://github.com/krishnasai89/ayurveda/blob/main/src/app/medical/MedicineCard.tsx"
click node_navbar "https://github.com/krishnasai89/ayurveda/blob/main/src/components/navigation/Navbar.tsx"
click node_smooth_scroll "https://github.com/krishnasai89/ayurveda/blob/main/src/components/SmoothScroll.tsx"

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_layout,node_home_page toneBlue
class node_hero,node_doshas,node_apothecary,node_bg_canvas toneAmber
class node_medical_page,node_medical_data,node_medicine_card toneMint
class node_navbar,node_smooth_scroll toneRose
class node_visitor toneIndigo
```

## Components

### Site entry

- [Root layout](https://github.com/krishnasai89/ayurveda/blob/main/src/app/layout.tsx): `src/app/layout.tsx`
- [Home page](https://github.com/krishnasai89/ayurveda/blob/main/src/app/page.tsx): `src/app/page.tsx`

### Ayurveda learning

- [Ayurveda hero](https://github.com/krishnasai89/ayurveda/blob/main/src/components/Hero/Hero.tsx): `src/components/Hero/Hero.tsx`
- [Dosha guide](https://github.com/krishnasai89/ayurveda/blob/main/src/components/TridoshaSection.tsx): `src/components/TridoshaSection.tsx`
- [Herb apothecary](https://github.com/krishnasai89/ayurveda/blob/main/src/components/ApothecarySection.tsx): `src/components/ApothecarySection.tsx`
- [Ambient canvas](https://github.com/krishnasai89/ayurveda/blob/main/src/components/canvas/BgCanvas.tsx): `src/components/canvas/BgCanvas.tsx`

### Medical reference

- [Medical index](https://github.com/krishnasai89/ayurveda/blob/main/src/app/medical/page.tsx): `src/app/medical/page.tsx`
- [Medicine records](https://github.com/krishnasai89/ayurveda/blob/main/src/Data/medical.json): `src/Data/medical.json`
- [Medicine details](https://github.com/krishnasai89/ayurveda/blob/main/src/app/medical/MedicineCard.tsx): `src/app/medical/MedicineCard.tsx`

### Shared components

- [Site navigation](https://github.com/krishnasai89/ayurveda/blob/main/src/components/navigation/Navbar.tsx): `src/components/navigation/Navbar.tsx`
- [Smooth scrolling](https://github.com/krishnasai89/ayurveda/blob/main/src/components/SmoothScroll.tsx): `src/components/SmoothScroll.tsx`

### Other components

- **Visitor**

## Connections

- Visitor → Home page: opens home (evidence: `README.md`)
- Root layout → Home page: wraps page (evidence: `src/app/layout.tsx`)
- Root layout → Medical index: wraps page (evidence: `src/app/layout.tsx`)
- Home page → Site navigation: renders (evidence: `src/app/page.tsx`)
- Home page → Ayurveda hero: renders (evidence: `src/app/page.tsx`)
- Home page → Dosha guide: renders (evidence: `src/app/page.tsx`)
- Home page → Herb apothecary: renders (evidence: `src/app/page.tsx`)
- Home page → Ambient canvas: renders (evidence: `src/app/page.tsx`)
- Medical index → Site navigation: renders (evidence: `src/app/medical/page.tsx`)
- Medical index → Medicine records: reads records (evidence: `src/app/medical/page.tsx`)
- Medical index → Medicine details: renders cards (evidence: `src/app/medical/page.tsx`)
