# alienminus/manas_ranjan_das architecture

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

- Interactive diagram: https://gitdiagram.com/alienminus/manas_ranjan_das
- Repository: https://github.com/alienminus/manas_ranjan_das

## Overview

This is a full-stack personal portfolio with a public professional showcase, inquiry handling, an owner-facing content and message dashboard, and an AI-style career chatbot. Visitors navigate the portfolio, browse profile and career material, optionally ask the chatbot questions or submit an inquiry; the frontend loads portfolio data through a shared context and API client. The owner manages content and messages through the admin interface. Source excerpts establish the main frontend calls and backend model references; some admin and chatbot internals are only documented or indexed, so uncertain links are omitted.

Main entry points: [`src/App.jsx`](https://github.com/alienminus/manas_ranjan_das/blob/main/src/App.jsx) (App Router), [`src/pages/Home.jsx`](https://github.com/alienminus/manas_ranjan_das/blob/main/src/pages/Home.jsx) (Home Showcase), [`src/pages/AdminPage.jsx`](https://github.com/alienminus/manas_ranjan_das/blob/main/src/pages/AdminPage.jsx) (Admin Dashboard), [`src/services/api.js`](https://github.com/alienminus/manas_ranjan_das/blob/main/src/services/api.js) (API Client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public Portfolio"]
  node_app["App Router<br/>[App.jsx]"]
  node_home["Home Showcase<br/>[Home.jsx]"]
  node_aboutpage["About Page<br/>[AboutPage.jsx]"]
  node_skillspage["Skills Page<br/>[SkillsPage.jsx]"]
  node_projectspage["Projects Page<br/>[ProjectsPage.jsx]"]
  node_experiencepage["Experience Page<br/>[ExperiencePage.jsx]"]
  node_contactpage["Contact Page<br/>[ContactPage.jsx]"]
  node_showcase["Profile and Timeline Views"]
  node_projectgallery["Project Gallery<br/>[Projects.jsx]"]
  node_resume["Resume Embed<br/>[ResumeEmbed.jsx]"]
end

subgraph group_content["Content Data"]
  node_portfolio_context["Portfolio State"]
  node_context_hook["Context Hook<br/>[usePortfolio.js]"]
  node_api["API Client<br/>[api.js]"]
end

subgraph group_admin["Admin and Contact"]
  node_backend["Express API<br/>[server.js]"]
  node_mongo[("MongoDB")]
  node_models[("Portfolio and Message Models")]
  node_contact_form["Contact Form<br/>[Contact.jsx]"]
  node_adminpage["Admin Dashboard<br/>[AdminPage.jsx]"]
  node_admin_panels["Content Admin Panels"]
  node_admin_messages["Message Inbox<br/>[AdminMessages.jsx]"]
end

subgraph group_assistant["Chatbot and PWA"]
  node_chat_ui["Chat Interface<br/>[ChatBot.jsx]"]
  node_rag["RAG Search<br/>[rag.js]"]
  node_service_worker["Service Worker<br/>[service-worker.js]"]
end

node_visitor(("Visitor"))
node_owner(("Portfolio Owner"))

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_aboutpage
node_app -->|"routes to"| node_skillspage
node_app -->|"routes to"| node_projectspage
node_app -->|"routes to"| node_experiencepage
node_app -->|"routes to"| node_contactpage
node_app -->|"routes to"| node_adminpage
node_home -->|"renders"| node_showcase
node_home -->|"renders"| node_projectgallery
node_home -->|"renders"| node_resume
node_aboutpage -->|"renders"| node_showcase
node_skillspage -->|"renders"| node_showcase
node_projectspage -->|"renders"| node_projectgallery
node_experiencepage -->|"renders"| node_showcase
node_app -->|"provides"| node_portfolio_context
node_portfolio_context -->|"loads data"| node_api
node_home -->|"reads state"| node_context_hook
node_context_hook -->|"reads context"| node_portfolio_context
node_api -.->|"requests data"| node_backend
node_backend -->|"queries"| node_models
node_backend -.->|"persists data"| node_mongo
node_visitor -->|"submits inquiry"| node_contact_form
node_contact_form -->|"sends message"| node_api
node_adminpage -->|"renders panels"| node_admin_panels
node_adminpage -->|"loads admin data"| node_api
node_admin_panels -->|"updates content"| node_api
node_adminpage -->|"renders inbox"| node_admin_messages
node_owner -->|"manages portfolio"| node_adminpage
node_chat_ui -->|"searches query"| node_rag
node_app -->|"mounts chatbot"| node_chat_ui
node_service_worker -.->|"supports offline use"| node_visitor

click node_app "https://github.com/alienminus/manas_ranjan_das/blob/main/src/App.jsx"
click node_home "https://github.com/alienminus/manas_ranjan_das/blob/main/src/pages/Home.jsx"
click node_aboutpage "https://github.com/alienminus/manas_ranjan_das/blob/main/src/pages/AboutPage.jsx"
click node_skillspage "https://github.com/alienminus/manas_ranjan_das/blob/main/src/pages/SkillsPage.jsx"
click node_projectspage "https://github.com/alienminus/manas_ranjan_das/blob/main/src/pages/ProjectsPage.jsx"
click node_experiencepage "https://github.com/alienminus/manas_ranjan_das/blob/main/src/pages/ExperiencePage.jsx"
click node_contactpage "https://github.com/alienminus/manas_ranjan_das/blob/main/src/pages/ContactPage.jsx"
click node_showcase "https://github.com/alienminus/manas_ranjan_das/tree/main/src/components"
click node_projectgallery "https://github.com/alienminus/manas_ranjan_das/blob/main/src/components/Projects.jsx"
click node_resume "https://github.com/alienminus/manas_ranjan_das/blob/main/src/components/ResumeEmbed.jsx"
click node_portfolio_context "https://github.com/alienminus/manas_ranjan_das/blob/main/src/context/PortfolioContext.jsx"
click node_context_hook "https://github.com/alienminus/manas_ranjan_das/blob/main/src/context/usePortfolio.js"
click node_api "https://github.com/alienminus/manas_ranjan_das/blob/main/src/services/api.js"
click node_backend "https://github.com/alienminus/manas_ranjan_das/blob/main/server/server.js"
click node_models "https://github.com/alienminus/manas_ranjan_das/tree/main/server/models"
click node_contact_form "https://github.com/alienminus/manas_ranjan_das/blob/main/src/components/Contact.jsx"
click node_adminpage "https://github.com/alienminus/manas_ranjan_das/blob/main/src/pages/AdminPage.jsx"
click node_admin_panels "https://github.com/alienminus/manas_ranjan_das/tree/main/src/components/admin"
click node_admin_messages "https://github.com/alienminus/manas_ranjan_das/blob/main/src/components/admin/AdminMessages.jsx"
click node_chat_ui "https://github.com/alienminus/manas_ranjan_das/blob/main/src/components/ChatBot.jsx"
click node_rag "https://github.com/alienminus/manas_ranjan_das/blob/main/src/chatbot/rag.js"
click node_service_worker "https://github.com/alienminus/manas_ranjan_das/blob/main/public/service-worker.js"

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_app,node_home,node_aboutpage,node_skillspage,node_projectspage,node_experiencepage,node_contactpage,node_showcase,node_projectgallery,node_resume toneBlue
class node_portfolio_context,node_context_hook,node_api toneAmber
class node_backend,node_mongo,node_models,node_contact_form,node_adminpage,node_admin_panels,node_admin_messages toneMint
class node_chat_ui,node_rag,node_service_worker toneRose
class node_visitor,node_owner toneIndigo
```

## Components

### Public Portfolio

- [App Router](https://github.com/alienminus/manas_ranjan_das/blob/main/src/App.jsx): `src/App.jsx`
- [Home Showcase](https://github.com/alienminus/manas_ranjan_das/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [About Page](https://github.com/alienminus/manas_ranjan_das/blob/main/src/pages/AboutPage.jsx): `src/pages/AboutPage.jsx`
- [Skills Page](https://github.com/alienminus/manas_ranjan_das/blob/main/src/pages/SkillsPage.jsx): `src/pages/SkillsPage.jsx`
- [Projects Page](https://github.com/alienminus/manas_ranjan_das/blob/main/src/pages/ProjectsPage.jsx): `src/pages/ProjectsPage.jsx`
- [Experience Page](https://github.com/alienminus/manas_ranjan_das/blob/main/src/pages/ExperiencePage.jsx): `src/pages/ExperiencePage.jsx`
- [Contact Page](https://github.com/alienminus/manas_ranjan_das/blob/main/src/pages/ContactPage.jsx): `src/pages/ContactPage.jsx`
- [Profile and Timeline Views](https://github.com/alienminus/manas_ranjan_das/tree/main/src/components): `src/components`
- [Project Gallery](https://github.com/alienminus/manas_ranjan_das/blob/main/src/components/Projects.jsx): `src/components/Projects.jsx`
- [Resume Embed](https://github.com/alienminus/manas_ranjan_das/blob/main/src/components/ResumeEmbed.jsx): `src/components/ResumeEmbed.jsx`

### Content Data

- [Portfolio State](https://github.com/alienminus/manas_ranjan_das/blob/main/src/context/PortfolioContext.jsx): `src/context/PortfolioContext.jsx`
- [Context Hook](https://github.com/alienminus/manas_ranjan_das/blob/main/src/context/usePortfolio.js): `src/context/usePortfolio.js`
- [API Client](https://github.com/alienminus/manas_ranjan_das/blob/main/src/services/api.js): `src/services/api.js`

### Admin and Contact

- [Express API](https://github.com/alienminus/manas_ranjan_das/blob/main/server/server.js): `server/server.js`
- **MongoDB**
- [Portfolio and Message Models](https://github.com/alienminus/manas_ranjan_das/tree/main/server/models): `server/models`
- [Contact Form](https://github.com/alienminus/manas_ranjan_das/blob/main/src/components/Contact.jsx): `src/components/Contact.jsx`
- [Admin Dashboard](https://github.com/alienminus/manas_ranjan_das/blob/main/src/pages/AdminPage.jsx): `src/pages/AdminPage.jsx`
- [Content Admin Panels](https://github.com/alienminus/manas_ranjan_das/tree/main/src/components/admin): `src/components/admin`
- [Message Inbox](https://github.com/alienminus/manas_ranjan_das/blob/main/src/components/admin/AdminMessages.jsx): `src/components/admin/AdminMessages.jsx`

### Chatbot and PWA

- [Chat Interface](https://github.com/alienminus/manas_ranjan_das/blob/main/src/components/ChatBot.jsx): `src/components/ChatBot.jsx`
- [RAG Search](https://github.com/alienminus/manas_ranjan_das/blob/main/src/chatbot/rag.js): `src/chatbot/rag.js`
- [Service Worker](https://github.com/alienminus/manas_ranjan_das/blob/main/public/service-worker.js): `public/service-worker.js`

### Other components

- **Visitor**
- **Portfolio Owner**

## Connections

- Visitor → App Router: opens (evidence: `src/App.jsx`)
- App Router → Home Showcase: routes to (evidence: `src/App.jsx`)
- App Router → About Page: routes to (evidence: `src/App.jsx`)
- App Router → Skills Page: routes to (evidence: `src/App.jsx`)
- App Router → Projects Page: routes to (evidence: `src/App.jsx`)
- App Router → Experience Page: routes to (evidence: `src/App.jsx`)
- App Router → Contact Page: routes to (evidence: `src/App.jsx`)
- App Router → Admin Dashboard: routes to (evidence: `src/App.jsx`)
- Home Showcase → Profile and Timeline Views: renders (evidence: `src/pages/Home.jsx`)
- Home Showcase → Project Gallery: renders (evidence: `src/pages/Home.jsx`)
- Home Showcase → Resume Embed: renders (evidence: `src/pages/Home.jsx`)
- About Page → Profile and Timeline Views: renders (evidence: `src/pages/AboutPage.jsx`)
- Skills Page → Profile and Timeline Views: renders (evidence: `src/pages/SkillsPage.jsx`)
- Projects Page → Project Gallery: renders (evidence: `src/pages/ProjectsPage.jsx`)
- Experience Page → Profile and Timeline Views: renders (evidence: `src/pages/ExperiencePage.jsx`)
- App Router → Portfolio State: provides (evidence: `src/App.jsx`)
- Portfolio State → API Client: loads data (evidence: `src/context/PortfolioContext.jsx`)
- Home Showcase → Context Hook: reads state (evidence: `src/pages/Home.jsx`)
- Context Hook → Portfolio State: reads context (evidence: `src/context/usePortfolio.js`)
- API Client → Express API: requests data (evidence: `README.md`)
- Express API → Portfolio and Message Models: queries (evidence: `server/server.js`)
- Express API → MongoDB: persists data (evidence: `README.md`)
- Visitor → Contact Form: submits inquiry (evidence: `README.md`)
- Contact Form → API Client: sends message (evidence: `src/components/Contact.jsx`)
- Admin Dashboard → Content Admin Panels: renders panels (evidence: `src/pages/AdminPage.jsx`)
- Admin Dashboard → API Client: loads admin data (evidence: `src/pages/AdminPage.jsx`)
- Content Admin Panels → API Client: updates content (evidence: `src/components/admin/AdminAbout.jsx`)
- Admin Dashboard → Message Inbox: renders inbox (evidence: `src/pages/AdminPage.jsx`)
- Portfolio Owner → Admin Dashboard: manages portfolio (evidence: `README.md`)
- Chat Interface → RAG Search: searches query (evidence: `src/components/ChatBot.jsx`)
- App Router → Chat Interface: mounts chatbot (evidence: `src/App.jsx`)
- Service Worker → Visitor: supports offline use (evidence: `README.md`)
