# sarinjoshi52/sanjana-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/sarinjoshi52/sanjana-frontend
- Repository: https://github.com/sarinjoshi52/sanjana-frontend

## Overview

SañJñāNā is an institutional knowledge-services website. Visitors browse the home page, service and project listings, and detail pages, with contact as a conversion path; publications and knowledge-bank pages provide additional content areas. The home page is assembled from configured sections, while service and project details use local TypeScript data. The source excerpts establish some route-to-component and component-to-data relationships; unsampled route wiring is shown only as unverified where useful. There is no external content store or service evidenced in the supplied files.

Main entry points: [`components/home/PageRenderer.tsx`](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/home/PageRenderer.tsx) (Home Renderer), [`app/(site)/page.tsx`](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/page.tsx) (Home Route), [`app/(site)/knowledge/[slug]/page.tsx`](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/knowledge/%5Bslug%5D/page.tsx) (Knowledge Detail Route), [`app/(site)/project/[slug]/page.tsx`](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/project/%5Bslug%5D/page.tsx) (Project Detail Route)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Site and Routes"]
  node_home_route["Home Route<br/>[page.tsx]"]
  node_contact_route["Contact Route<br/>[page.tsx]"]
  node_knowledge_route["Knowledge Listing Route<br/>[page.tsx]"]
  node_knowledge_detail_route["Knowledge Detail Route<br/>[page.tsx]"]
  node_bank_route["Knowledge Bank Route<br/>[page.tsx]"]
  node_bank_detail_route["Bank Detail Route<br/>[page.tsx]"]
  node_project_route["Project Listing Route<br/>[page.tsx]"]
  node_project_detail_route["Project Detail Route<br/>[page.tsx]"]
  node_publications_route["Publications Route<br/>[page.tsx]"]
  node_publication_detail_route["Publication Detail Route<br/>[page.tsx]"]
end

subgraph group_home["Home Experience"]
  node_home_config["Home Section Config<br/>[home-page.ts]"]
  node_home_renderer["Home Renderer<br/>[PageRenderer.tsx]"]
  node_home_sections["Home Sections"]
  node_team_section["Team Section<br/>[MeetOurTeam.tsx]"]
  node_team_carousel["Team Carousel<br/>[TeamCarousel.tsx]"]
  node_org_section["Organization Section"]
  node_heading["Section Heading<br/>[Heading.tsx]"]
end

subgraph group_content["Knowledge and Portfolio"]
  node_knowledge_listing["Knowledge Listing<br/>[KnowledgePage.tsx]"]
  node_knowledge_detail_data["Knowledge Service Data<br/>[knowledge.ts]"]
  node_knowledge_detail["Knowledge Detail View<br/>[page.tsx]"]
  node_bank_listing["Knowledge Bank View"]
  node_projects_listing["Projects Listing<br/>[ProjectsPage.tsx]"]
  node_project_data["Project Data<br/>[project.ts]"]
  node_project_detail["Project Detail View<br/>[page.tsx]"]
  node_publications_listing["Publications Listing"]
  node_contact_view["Contact Form<br/>[ContactPage.tsx]"]
end

subgraph group_shared["Shared Components"]
  node_previous_url["Previous URL Link<br/>[PreviousUrl.tsx]"]
  node_custom_card["Custom Card<br/>[CustomCard.tsx]"]
end

subgraph group_ui["UI Primitives"]
  node_button["Button Primitive<br/>[button.tsx]"]
  node_card["Card Primitive<br/>[card.tsx]"]
  node_carousel["Carousel Primitive<br/>[carousel.tsx]"]
  node_tabs["Tabs Primitive<br/>[tabs.tsx]"]
  node_field["Form Field Primitive<br/>[field.tsx]"]
end

node_visitor(("Site Visitor"))

node_visitor -->|"opens"| node_home_route
node_visitor -->|"opens"| node_knowledge_route
node_visitor -->|"opens"| node_knowledge_detail_route
node_visitor -->|"opens"| node_bank_route
node_visitor -->|"opens"| node_bank_detail_route
node_visitor -->|"opens"| node_project_route
node_visitor -->|"opens"| node_project_detail_route
node_visitor -->|"opens"| node_publications_route
node_visitor -->|"opens"| node_publication_detail_route
node_visitor -->|"opens"| node_contact_route
node_home_route -->|"renders"| node_home_renderer
node_home_route -->|"supplies sections"| node_home_config
node_home_renderer -->|"renders configured"| node_home_config
node_home_renderer -->|"renders"| node_team_section
node_home_renderer -->|"renders"| node_org_section
node_home_renderer -->|"renders"| node_home_sections
node_team_section -->|"renders"| node_team_carousel
node_team_section -->|"uses"| node_heading
node_team_carousel -->|"uses"| node_carousel
node_org_section -->|"uses"| node_heading
node_org_section -->|"renders"| node_custom_card
node_custom_card -->|"wraps"| node_card
node_knowledge_route -->|"renders"| node_knowledge_listing
node_knowledge_listing -->|"reads"| node_knowledge_detail_data
node_knowledge_detail_route -->|"reads"| node_knowledge_detail_data
node_knowledge_detail_route -->|"renders"| node_previous_url
node_bank_route -->|"renders"| node_bank_listing
node_project_route -.->|"renders"| node_projects_listing
node_projects_listing -->|"reads"| node_project_data
node_project_detail_route -->|"reads"| node_project_data
node_project_detail_route -->|"renders"| node_previous_url
node_publications_route -->|"renders"| node_publications_listing
node_contact_route -.->|"renders"| node_contact_view
node_contact_view -->|"uses"| node_field
node_previous_url -->|"uses"| node_button
node_knowledge_listing -->|"uses"| node_card
node_projects_listing -->|"uses"| node_tabs
node_publications_listing -->|"uses"| node_custom_card

click node_home_route "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/page.tsx"
click node_contact_route "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/contact/page.tsx"
click node_knowledge_route "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/knowledge/page.tsx"
click node_knowledge_detail_route "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/knowledge/%5Bslug%5D/page.tsx"
click node_bank_route "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/knowledge-bank/page.tsx"
click node_bank_detail_route "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/knowledge-bank/%5Bslug%5D/page.tsx"
click node_project_route "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/project/page.tsx"
click node_project_detail_route "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/project/%5Bslug%5D/page.tsx"
click node_publications_route "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/publications/page.tsx"
click node_publication_detail_route "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/publications/%5Bslug%5D/page.tsx"
click node_home_config "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/lib/home-page.ts"
click node_home_renderer "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/home/PageRenderer.tsx"
click node_home_sections "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/home/OverviewSection.tsx"
click node_team_section "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/home/MeetOurTeam.tsx"
click node_team_carousel "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/home/TeamCarousel.tsx"
click node_org_section "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/home/HowAreWeOrganizedSection.tsx"
click node_heading "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/home/Heading.tsx"
click node_knowledge_listing "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/pages/KnowledgePage.tsx"
click node_knowledge_detail_data "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/data/knowledge.ts"
click node_knowledge_detail "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/knowledge/%5Bslug%5D/page.tsx"
click node_bank_listing "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/pages/KnowledgeBankPage.tsx"
click node_projects_listing "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/pages/ProjectsPage.tsx"
click node_project_data "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/data/project.ts"
click node_project_detail "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/project/%5Bslug%5D/page.tsx"
click node_publications_listing "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/pages/PublicationsPage.tsx"
click node_contact_view "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/pages/ContactPage.tsx"
click node_previous_url "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/common/PreviousUrl.tsx"
click node_custom_card "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/CustomCard.tsx"
click node_button "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/ui/button.tsx"
click node_card "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/ui/card.tsx"
click node_carousel "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/ui/carousel.tsx"
click node_tabs "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/ui/tabs.tsx"
click node_field "https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/ui/field.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_home_route,node_contact_route,node_knowledge_route,node_knowledge_detail_route,node_bank_route,node_bank_detail_route,node_project_route,node_project_detail_route,node_publications_route,node_publication_detail_route toneBlue
class node_home_config,node_home_renderer,node_home_sections,node_team_section,node_team_carousel,node_org_section,node_heading toneAmber
class node_knowledge_listing,node_knowledge_detail_data,node_knowledge_detail,node_bank_listing,node_projects_listing,node_project_data,node_project_detail,node_publications_listing,node_contact_view toneMint
class node_previous_url,node_custom_card toneRose
class node_button,node_card,node_carousel,node_tabs,node_field,node_visitor toneIndigo
```

## Components

### Site and Routes

- [Home Route](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/page.tsx): `app/(site)/page.tsx`
- [Contact Route](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/contact/page.tsx): `app/(site)/contact/page.tsx`
- [Knowledge Listing Route](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/knowledge/page.tsx): `app/(site)/knowledge/page.tsx`
- [Knowledge Detail Route](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/knowledge/%5Bslug%5D/page.tsx): `app/(site)/knowledge/[slug]/page.tsx`
- [Knowledge Bank Route](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/knowledge-bank/page.tsx): `app/(site)/knowledge-bank/page.tsx`
- [Bank Detail Route](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/knowledge-bank/%5Bslug%5D/page.tsx): `app/(site)/knowledge-bank/[slug]/page.tsx`
- [Project Listing Route](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/project/page.tsx): `app/(site)/project/page.tsx`
- [Project Detail Route](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/project/%5Bslug%5D/page.tsx): `app/(site)/project/[slug]/page.tsx`
- [Publications Route](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/publications/page.tsx): `app/(site)/publications/page.tsx`
- [Publication Detail Route](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/publications/%5Bslug%5D/page.tsx): `app/(site)/publications/[slug]/page.tsx`

### Home Experience

- [Home Section Config](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/lib/home-page.ts): `lib/home-page.ts`
- [Home Renderer](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/home/PageRenderer.tsx): `components/home/PageRenderer.tsx`
- [Home Sections](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/home/OverviewSection.tsx): `components/home/OverviewSection.tsx`
- [Team Section](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/home/MeetOurTeam.tsx): `components/home/MeetOurTeam.tsx`
- [Team Carousel](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/home/TeamCarousel.tsx): `components/home/TeamCarousel.tsx`
- [Organization Section](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/home/HowAreWeOrganizedSection.tsx): `components/home/HowAreWeOrganizedSection.tsx`
- [Section Heading](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/home/Heading.tsx): `components/home/Heading.tsx`

### Knowledge and Portfolio

- [Knowledge Listing](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/pages/KnowledgePage.tsx): `components/pages/KnowledgePage.tsx`
- [Knowledge Service Data](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/data/knowledge.ts): `data/knowledge.ts`
- [Knowledge Detail View](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/knowledge/%5Bslug%5D/page.tsx): `app/(site)/knowledge/[slug]/page.tsx`
- [Knowledge Bank View](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/pages/KnowledgeBankPage.tsx): `components/pages/KnowledgeBankPage.tsx`
- [Projects Listing](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/pages/ProjectsPage.tsx): `components/pages/ProjectsPage.tsx`
- [Project Data](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/data/project.ts): `data/project.ts`
- [Project Detail View](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/app/(site)/project/%5Bslug%5D/page.tsx): `app/(site)/project/[slug]/page.tsx`
- [Publications Listing](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/pages/PublicationsPage.tsx): `components/pages/PublicationsPage.tsx`
- [Contact Form](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/pages/ContactPage.tsx): `components/pages/ContactPage.tsx`

### Shared Components

- [Previous URL Link](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/common/PreviousUrl.tsx): `components/common/PreviousUrl.tsx`
- [Custom Card](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/CustomCard.tsx): `components/CustomCard.tsx`

### UI Primitives

- [Button Primitive](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/ui/button.tsx): `components/ui/button.tsx`
- [Card Primitive](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/ui/card.tsx): `components/ui/card.tsx`
- [Carousel Primitive](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/ui/carousel.tsx): `components/ui/carousel.tsx`
- [Tabs Primitive](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/ui/tabs.tsx): `components/ui/tabs.tsx`
- [Form Field Primitive](https://github.com/sarinjoshi52/sanjana-frontend/blob/main/components/ui/field.tsx): `components/ui/field.tsx`

### Other components

- **Site Visitor**

## Connections

- Site Visitor → Home Route: opens
- Site Visitor → Knowledge Listing Route: opens
- Site Visitor → Knowledge Detail Route: opens
- Site Visitor → Knowledge Bank Route: opens
- Site Visitor → Bank Detail Route: opens
- Site Visitor → Project Listing Route: opens
- Site Visitor → Project Detail Route: opens
- Site Visitor → Publications Route: opens
- Site Visitor → Publication Detail Route: opens
- Site Visitor → Contact Route: opens
- Home Route → Home Renderer: renders (evidence: `app/(site)/page.tsx`)
- Home Route → Home Section Config: supplies sections (evidence: `app/(site)/page.tsx`)
- Home Renderer → Home Section Config: renders configured (evidence: `components/home/PageRenderer.tsx`)
- Home Renderer → Team Section: renders (evidence: `components/home/PageRenderer.tsx`)
- Home Renderer → Organization Section: renders (evidence: `components/home/PageRenderer.tsx`)
- Home Renderer → Home Sections: renders (evidence: `components/home/PageRenderer.tsx`)
- Team Section → Team Carousel: renders (evidence: `components/home/MeetOurTeam.tsx`)
- Team Section → Section Heading: uses (evidence: `components/home/MeetOurTeam.tsx`)
- Team Carousel → Carousel Primitive: uses (evidence: `components/home/TeamCarousel.tsx`)
- Organization Section → Section Heading: uses (evidence: `components/home/HowAreWeOrganizedSection.tsx`)
- Organization Section → Custom Card: renders (evidence: `components/home/HowAreWeOrganizedSection.tsx`)
- Custom Card → Card Primitive: wraps (evidence: `components/CustomCard.tsx`)
- Knowledge Listing Route → Knowledge Listing: renders (evidence: `app/(site)/knowledge/page.tsx`)
- Knowledge Listing → Knowledge Service Data: reads (evidence: `components/pages/KnowledgePage.tsx`)
- Knowledge Detail Route → Knowledge Service Data: reads (evidence: `app/(site)/knowledge/[slug]/page.tsx`)
- Knowledge Detail Route → Previous URL Link: renders (evidence: `app/(site)/knowledge/[slug]/page.tsx`)
- Knowledge Bank Route → Knowledge Bank View: renders (evidence: `app/(site)/knowledge-bank/page.tsx`)
- Project Listing Route → Projects Listing: renders
- Projects Listing → Project Data: reads (evidence: `components/pages/ProjectsPage.tsx`)
- Project Detail Route → Project Data: reads (evidence: `app/(site)/project/[slug]/page.tsx`)
- Project Detail Route → Previous URL Link: renders (evidence: `app/(site)/project/[slug]/page.tsx`)
- Publications Route → Publications Listing: renders (evidence: `app/(site)/publications/page.tsx`)
- Contact Route → Contact Form: renders
- Contact Form → Form Field Primitive: uses (evidence: `components/pages/ContactPage.tsx`)
- Previous URL Link → Button Primitive: uses (evidence: `components/common/PreviousUrl.tsx`)
- Knowledge Listing → Card Primitive: uses (evidence: `components/pages/KnowledgePage.tsx`)
- Projects Listing → Tabs Primitive: uses (evidence: `components/pages/ProjectsPage.tsx`)
- Publications Listing → Custom Card: uses (evidence: `components/pages/PublicationsPage.tsx`)
