# lenkewarnikhil/portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/lenkewarnikhil/portfolio
- Repository: https://github.com/lenkewarnikhil/portfolio

## Overview

This is a personal portfolio website with a homepage for profile, experience, projects, skills, and blog listings, plus a route for reading individual articles. The main workflow is visitors browsing the portfolio or opening a listed article; the article view fetches Markdown, converts it to HTML, and sanitizes it before display. The homepage’s data files are explicit imports in App.jsx. The contact form and some homepage behavior are only partially excerpted, so their integrations and internal flow are not asserted.

Main entry points: [`src/App.jsx`](https://github.com/lenkewarnikhil/portfolio/blob/main/src/App.jsx) (Portfolio home), [`src/main.jsx`](https://github.com/lenkewarnikhil/portfolio/blob/main/src/main.jsx) (Route entry), [`src/Blog.jsx`](https://github.com/lenkewarnikhil/portfolio/blob/main/src/Blog.jsx) (Article reader), [`src/data/profile.json`](https://github.com/lenkewarnikhil/portfolio/blob/main/src/data/profile.json) (Profile and skills)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["Portfolio"]
  node_router["Route entry<br/>[main.jsx]"]
  node_home["Portfolio home<br/>[App.jsx]"]
  node_profile["Profile and skills<br/>[profile.json]"]
end

subgraph group_editorial["Editorial"]
  node_bloglist["Blog listings<br/>[blog-posts.json]"]
  node_article["Article reader<br/>[Blog.jsx]"]
  node_posts["Markdown articles"]
  node_markdown["Markdown rendering<br/>[Blog.jsx]"]
  node_marked["Marked parser"]
  node_purifier["DOMPurify sanitizer"]
end

subgraph group_content["Content data"]
  node_experience["Experience<br/>[experience.json]"]
  node_projects["Projects<br/>[projects.json]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_router
node_router -->|"routes home"| node_home
node_router -->|"routes article"| node_article
node_home -->|"imports data"| node_profile
node_home -->|"imports data"| node_experience
node_home -->|"imports data"| node_projects
node_home -->|"imports data"| node_bloglist
node_article -->|"fetches article"| node_posts
node_article -->|"renders content"| node_markdown
node_markdown -->|"parses Markdown"| node_marked
node_markdown -->|"sanitizes HTML"| node_purifier

click node_router "https://github.com/lenkewarnikhil/portfolio/blob/main/src/main.jsx"
click node_home "https://github.com/lenkewarnikhil/portfolio/blob/main/src/App.jsx"
click node_profile "https://github.com/lenkewarnikhil/portfolio/blob/main/src/data/profile.json"
click node_experience "https://github.com/lenkewarnikhil/portfolio/blob/main/src/data/experience.json"
click node_projects "https://github.com/lenkewarnikhil/portfolio/blob/main/src/data/projects.json"
click node_bloglist "https://github.com/lenkewarnikhil/portfolio/blob/main/src/data/blog-posts.json"
click node_article "https://github.com/lenkewarnikhil/portfolio/blob/main/src/Blog.jsx"
click node_posts "https://github.com/lenkewarnikhil/portfolio/tree/main/public/assets/posts"
click node_markdown "https://github.com/lenkewarnikhil/portfolio/blob/main/src/Blog.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_router,node_home,node_profile toneBlue
class node_bloglist,node_article,node_posts,node_markdown,node_marked,node_purifier toneAmber
class node_experience,node_projects toneMint
class node_visitor toneIndigo
```

## Components

### Portfolio

- [Route entry](https://github.com/lenkewarnikhil/portfolio/blob/main/src/main.jsx): `src/main.jsx`
- [Portfolio home](https://github.com/lenkewarnikhil/portfolio/blob/main/src/App.jsx): `src/App.jsx`
- [Profile and skills](https://github.com/lenkewarnikhil/portfolio/blob/main/src/data/profile.json): `src/data/profile.json`

### Editorial

- [Blog listings](https://github.com/lenkewarnikhil/portfolio/blob/main/src/data/blog-posts.json): `src/data/blog-posts.json`
- [Article reader](https://github.com/lenkewarnikhil/portfolio/blob/main/src/Blog.jsx): `src/Blog.jsx`
- [Markdown articles](https://github.com/lenkewarnikhil/portfolio/tree/main/public/assets/posts): `public/assets/posts`
- [Markdown rendering](https://github.com/lenkewarnikhil/portfolio/blob/main/src/Blog.jsx): `src/Blog.jsx`
- **Marked parser**
- **DOMPurify sanitizer**

### Content data

- [Experience](https://github.com/lenkewarnikhil/portfolio/blob/main/src/data/experience.json): `src/data/experience.json`
- [Projects](https://github.com/lenkewarnikhil/portfolio/blob/main/src/data/projects.json): `src/data/projects.json`

### Other components

- **Visitor**

## Connections

- Visitor → Route entry: opens site (evidence: `src/main.jsx`)
- Route entry → Portfolio home: routes home (evidence: `src/main.jsx`)
- Route entry → Article reader: routes article (evidence: `src/main.jsx`)
- Portfolio home → Profile and skills: imports data (evidence: `src/App.jsx`)
- Portfolio home → Experience: imports data (evidence: `src/App.jsx`)
- Portfolio home → Projects: imports data (evidence: `src/App.jsx`)
- Portfolio home → Blog listings: imports data (evidence: `src/App.jsx`)
- Article reader → Markdown articles: fetches article (evidence: `src/Blog.jsx`)
- Article reader → Markdown rendering: renders content (evidence: `src/Blog.jsx`)
- Markdown rendering → Marked parser: parses Markdown (evidence: `src/Blog.jsx`)
- Markdown rendering → DOMPurify sanitizer: sanitizes HTML (evidence: `src/Blog.jsx`)
