# r-rahman112/npi-project architecture

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

- Interactive diagram: https://gitdiagram.com/r-rahman112/npi-project
- Repository: https://github.com/r-rahman112/npi-project

## Overview

NPI is a React/TypeScript informational website for browsing institute pages, team profiles and technology articles, with a contact form. The principal workflow is browser entry into the routed app, navigation to a page, and rendering static content or submitting a message through EmailJS. The graph follows the documented route and sampled imports/calls; other page details and component internals are not fully sampled.

Main entry points: [`src/App.tsx`](https://github.com/r-rahman112/npi-project/blob/main/src/App.tsx) (App and routes), [`src/pages/TeamMembersPage.tsx`](https://github.com/r-rahman112/npi-project/blob/main/src/pages/TeamMembersPage.tsx) (Team page), [`src/components/TeamMembersGrid.tsx`](https://github.com/r-rahman112/npi-project/blob/main/src/components/TeamMembersGrid.tsx) (Team grid), [`src/components/UpdatesSection.tsx`](https://github.com/r-rahman112/npi-project/blob/main/src/components/UpdatesSection.tsx) (Updates section)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_entry["React entry<br/>[main.tsx]"]
  node_router["App and routes<br/>[App.tsx]"]
  node_navigation["Navigation bar<br/>[Navbar.tsx]"]
  node_loader["Loading screen<br/>[Loader.tsx]"]
  node_footer["Site footer<br/>[Footer.tsx]"]
end

subgraph group_content["Institute content"]
  node_home["Home page<br/>[HomePage.tsx]"]
  node_about["About page<br/>[AboutPage.tsx]"]
  node_team_page["Team page"]
  node_team_data["Team profiles<br/>[teamMembers.ts]"]
  node_team_grid["Team grid"]
  node_team_card["Member card<br/>[TeamMemberCard.tsx]"]
  node_team_type["Team model<br/>[teamMember.ts]"]
end

subgraph group_articles["Article publishing"]
  node_updates["Updates section<br/>[UpdatesSection.tsx]"]
  node_article_card["Article card<br/>[ArticleCard.tsx]"]
  node_article_data["Article catalog<br/>[articles.ts]"]
  node_article_page["Article page<br/>[ArticlePage.tsx]"]
  node_article_type["Article model<br/>[article.ts]"]
end

subgraph group_contact["Contact"]
  node_contact_page["Contact form<br/>[ContactPage.tsx]"]
end

node_visitor(("Website visitor"))
node_emailjs{{"EmailJS service"}}

node_visitor -->|"opens site"| node_entry
node_entry -->|"renders"| node_router
node_router -->|"renders"| node_navigation
node_router -->|"renders"| node_loader
node_router -->|"renders"| node_footer
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_team_page
node_router -->|"routes to"| node_about
node_router -->|"routes to"| node_article_page
node_router -->|"routes to"| node_contact_page
node_home -->|"renders"| node_updates
node_updates -->|"renders"| node_article_card
node_updates -->|"reads"| node_article_data
node_article_page -->|"looks up article"| node_article_data
node_article_card -->|"uses model"| node_article_type
node_article_data -->|"uses model"| node_article_type
node_team_page -->|"renders"| node_team_grid
node_team_page -->|"supplies profiles"| node_team_data
node_team_grid -->|"renders"| node_team_card
node_team_grid -->|"uses model"| node_team_type
node_team_data -->|"uses model"| node_team_type
node_contact_page -->|"sends form"| node_emailjs

click node_entry "https://github.com/r-rahman112/npi-project/blob/main/src/main.tsx"
click node_router "https://github.com/r-rahman112/npi-project/blob/main/src/App.tsx"
click node_navigation "https://github.com/r-rahman112/npi-project/blob/main/src/components/Navbar.tsx"
click node_loader "https://github.com/r-rahman112/npi-project/blob/main/src/components/Loader.tsx"
click node_footer "https://github.com/r-rahman112/npi-project/blob/main/src/components/Footer.tsx"
click node_home "https://github.com/r-rahman112/npi-project/blob/main/src/pages/HomePage.tsx"
click node_about "https://github.com/r-rahman112/npi-project/blob/main/src/pages/AboutPage.tsx"
click node_team_page "https://github.com/r-rahman112/npi-project/blob/main/src/pages/TeamMembersPage.tsx"
click node_team_data "https://github.com/r-rahman112/npi-project/blob/main/src/data/teamMembers.ts"
click node_team_grid "https://github.com/r-rahman112/npi-project/blob/main/src/components/TeamMembersGrid.tsx"
click node_team_card "https://github.com/r-rahman112/npi-project/blob/main/src/components/TeamMemberCard.tsx"
click node_team_type "https://github.com/r-rahman112/npi-project/blob/main/src/types/teamMember.ts"
click node_updates "https://github.com/r-rahman112/npi-project/blob/main/src/components/UpdatesSection.tsx"
click node_article_card "https://github.com/r-rahman112/npi-project/blob/main/src/components/ArticleCard.tsx"
click node_article_data "https://github.com/r-rahman112/npi-project/blob/main/src/data/articles.ts"
click node_article_page "https://github.com/r-rahman112/npi-project/blob/main/src/pages/ArticlePage.tsx"
click node_article_type "https://github.com/r-rahman112/npi-project/blob/main/src/types/article.ts"
click node_contact_page "https://github.com/r-rahman112/npi-project/blob/main/src/pages/ContactPage.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_entry,node_router,node_navigation,node_loader,node_footer toneBlue
class node_home,node_about,node_team_page,node_team_data,node_team_grid,node_team_card,node_team_type toneAmber
class node_updates,node_article_card,node_article_data,node_article_page,node_article_type toneMint
class node_contact_page toneRose
class node_visitor,node_emailjs toneIndigo
```

## Components

### Application shell

- [React entry](https://github.com/r-rahman112/npi-project/blob/main/src/main.tsx): `src/main.tsx`
- [App and routes](https://github.com/r-rahman112/npi-project/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation bar](https://github.com/r-rahman112/npi-project/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`
- [Loading screen](https://github.com/r-rahman112/npi-project/blob/main/src/components/Loader.tsx): `src/components/Loader.tsx`
- [Site footer](https://github.com/r-rahman112/npi-project/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`

### Institute content

- [Home page](https://github.com/r-rahman112/npi-project/blob/main/src/pages/HomePage.tsx): `src/pages/HomePage.tsx`
- [About page](https://github.com/r-rahman112/npi-project/blob/main/src/pages/AboutPage.tsx): `src/pages/AboutPage.tsx`
- [Team page](https://github.com/r-rahman112/npi-project/blob/main/src/pages/TeamMembersPage.tsx): `src/pages/TeamMembersPage.tsx`
- [Team profiles](https://github.com/r-rahman112/npi-project/blob/main/src/data/teamMembers.ts): `src/data/teamMembers.ts`
- [Team grid](https://github.com/r-rahman112/npi-project/blob/main/src/components/TeamMembersGrid.tsx): `src/components/TeamMembersGrid.tsx`
- [Member card](https://github.com/r-rahman112/npi-project/blob/main/src/components/TeamMemberCard.tsx): `src/components/TeamMemberCard.tsx`
- [Team model](https://github.com/r-rahman112/npi-project/blob/main/src/types/teamMember.ts): `src/types/teamMember.ts`

### Article publishing

- [Updates section](https://github.com/r-rahman112/npi-project/blob/main/src/components/UpdatesSection.tsx): `src/components/UpdatesSection.tsx`
- [Article card](https://github.com/r-rahman112/npi-project/blob/main/src/components/ArticleCard.tsx): `src/components/ArticleCard.tsx`
- [Article catalog](https://github.com/r-rahman112/npi-project/blob/main/src/data/articles.ts): `src/data/articles.ts`
- [Article page](https://github.com/r-rahman112/npi-project/blob/main/src/pages/ArticlePage.tsx): `src/pages/ArticlePage.tsx`
- [Article model](https://github.com/r-rahman112/npi-project/blob/main/src/types/article.ts): `src/types/article.ts`

### Contact

- [Contact form](https://github.com/r-rahman112/npi-project/blob/main/src/pages/ContactPage.tsx): `src/pages/ContactPage.tsx`

### Other components

- **Website visitor**
- **EmailJS service**

## Connections

- Website visitor → React entry: opens site (evidence: `README.md`)
- React entry → App and routes: renders (evidence: `src/main.tsx`)
- App and routes → Navigation bar: renders (evidence: `src/App.tsx`)
- App and routes → Loading screen: renders (evidence: `src/App.tsx`)
- App and routes → Site footer: renders (evidence: `src/App.tsx`)
- App and routes → Home page: routes to (evidence: `src/App.tsx`)
- App and routes → Team page: routes to (evidence: `src/App.tsx`)
- App and routes → About page: routes to (evidence: `src/App.tsx`)
- App and routes → Article page: routes to (evidence: `src/App.tsx`)
- App and routes → Contact form: routes to (evidence: `src/App.tsx`)
- Home page → Updates section: renders (evidence: `src/pages/HomePage.tsx`)
- Updates section → Article card: renders (evidence: `src/components/UpdatesSection.tsx`)
- Updates section → Article catalog: reads (evidence: `src/components/UpdatesSection.tsx`)
- Article page → Article catalog: looks up article (evidence: `src/pages/ArticlePage.tsx`)
- Article card → Article model: uses model (evidence: `src/components/ArticleCard.tsx`)
- Article catalog → Article model: uses model (evidence: `src/data/articles.ts`)
- Team page → Team grid: renders (evidence: `src/pages/TeamMembersPage.tsx`)
- Team page → Team profiles: supplies profiles (evidence: `src/pages/TeamMembersPage.tsx`)
- Team grid → Member card: renders (evidence: `src/components/TeamMembersGrid.tsx`)
- Team grid → Team model: uses model (evidence: `src/components/TeamMembersGrid.tsx`)
- Team profiles → Team model: uses model (evidence: `src/data/teamMembers.ts`)
- Contact form → EmailJS service: sends form (evidence: `src/pages/ContactPage.tsx`)
