# rani0707/raniweb architecture

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

- Interactive diagram: https://gitdiagram.com/rani0707/raniweb
- Repository: https://github.com/rani0707/raniweb

## Overview

RaniWeb is a personal portfolio site. Visitors browse a single-page profile and project list, open project details in a modal or shareable project page, and read Markdown case studies; the site also presents skills, experience, certifications, and awards. Theme handling and security/error responses support that experience. The graph uses README and SOURCE INDEX relationships plus shown source excerpts; unsampled modules are represented only where their paths and role are supported.

Main entry points: [`app/page.tsx`](https://github.com/rani0707/raniweb/blob/main/app/page.tsx) (Home page), [`components/ProjectModal.tsx`](https://github.com/rani0707/raniweb/blob/main/components/ProjectModal.tsx) (Project modal), [`app/projects/[id]/page.tsx`](https://github.com/rani0707/raniweb/blob/main/app/projects/%5Bid%5D/page.tsx) (Project page), [`components/Projects.tsx`](https://github.com/rani0707/raniweb/blob/main/components/Projects.tsx) (Project list)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["Portfolio content"]
  node_home["Home page<br/>[page.tsx]"]
  node_hero["Introduction<br/>[Hero.tsx]"]
  node_skills["Skills<br/>[Skills.tsx]"]
  node_experience["Experience<br/>[Experience.tsx]"]
  node_certifications["Certifications<br/>[Certifications.tsx]"]
  node_awards["Awards<br/>[Awards.tsx]"]
end

subgraph group_projects["Project details"]
  node_projects_list["Project list<br/>[Projects.tsx]"]
  node_project_modal["Project modal<br/>[ProjectModal.tsx]"]
  node_markdown["Markdown renderer"]
  node_project_page["Project page<br/>[page.tsx]"]
  node_project_content["Project content lookup<br/>[projects.ts]"]
end

subgraph group_site["Site experience"]
  node_header["Navigation<br/>[Header.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
  node_theme["Theme provider<br/>[ThemeProvider.tsx]"]
  node_layout["Root layout<br/>[layout.tsx]"]
  node_modal["Modal shell<br/>[Modal.tsx]"]
  node_scroll_lock["Scroll lock<br/>[scroll-lock.ts]"]
end

subgraph group_security["Security and errors"]
  node_security["Security helpers<br/>[security.ts]"]
  node_proxy["Request proxy<br/>[proxy.ts]"]
  node_csp_route["CSP report route<br/>[route.ts]"]
  node_csp["CSP report handling<br/>[csp-report.ts]"]
  node_error_routes["Error routes<br/>[route.ts]"]
  node_error_pages["Error responses<br/>[error-pages.ts]"]
  node_error_screen["Error screen<br/>[ErrorScreen.tsx]"]
  node_theme_script["Theme initializer<br/>[theme-script.ts]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_home -->|"renders"| node_header
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_projects_list
node_home -->|"renders"| node_skills
node_home -->|"renders"| node_experience
node_home -->|"renders"| node_certifications
node_home -->|"renders"| node_awards
node_home -->|"renders"| node_footer
node_visitor -->|"browses"| node_projects_list
node_projects_list -->|"opens"| node_project_modal
node_project_modal -->|"renders"| node_markdown
node_project_modal -->|"uses"| node_modal
node_project_modal -->|"validates links"| node_security
node_project_modal -.->|"fetches detail"| node_project_content
node_projects_list -->|"sanitizes links"| node_security
node_visitor -->|"opens shared URL"| node_project_page
node_project_page -->|"loads content"| node_project_content
node_project_page -->|"renders"| node_markdown
node_project_page -->|"renders"| node_header
node_project_page -->|"renders"| node_footer
node_header -->|"reads theme"| node_theme
node_header -->|"locks scrolling"| node_scroll_lock
node_modal -->|"uses"| node_scroll_lock
node_layout -->|"provides"| node_theme
node_layout -->|"injects"| node_theme_script
node_proxy -->|"configures policy"| node_security
node_csp_route -->|"validates and summarizes"| node_csp
node_error_routes -->|"builds response"| node_error_pages
node_error_screen -->|"uses"| node_error_pages
node_error_pages -->|"embeds initializer"| node_theme_script

click node_home "https://github.com/rani0707/raniweb/blob/main/app/page.tsx"
click node_hero "https://github.com/rani0707/raniweb/blob/main/components/Hero.tsx"
click node_skills "https://github.com/rani0707/raniweb/blob/main/components/Skills.tsx"
click node_experience "https://github.com/rani0707/raniweb/blob/main/components/Experience.tsx"
click node_certifications "https://github.com/rani0707/raniweb/blob/main/components/Certifications.tsx"
click node_awards "https://github.com/rani0707/raniweb/blob/main/components/Awards.tsx"
click node_projects_list "https://github.com/rani0707/raniweb/blob/main/components/Projects.tsx"
click node_project_modal "https://github.com/rani0707/raniweb/blob/main/components/ProjectModal.tsx"
click node_markdown "https://github.com/rani0707/raniweb/blob/main/components/ProjectMarkdown.tsx"
click node_project_page "https://github.com/rani0707/raniweb/blob/main/app/projects/%5Bid%5D/page.tsx"
click node_project_content "https://github.com/rani0707/raniweb/blob/main/lib/projects.ts"
click node_header "https://github.com/rani0707/raniweb/blob/main/components/Header.tsx"
click node_footer "https://github.com/rani0707/raniweb/blob/main/components/Footer.tsx"
click node_theme "https://github.com/rani0707/raniweb/blob/main/components/ThemeProvider.tsx"
click node_layout "https://github.com/rani0707/raniweb/blob/main/app/layout.tsx"
click node_modal "https://github.com/rani0707/raniweb/blob/main/components/Modal.tsx"
click node_scroll_lock "https://github.com/rani0707/raniweb/blob/main/lib/scroll-lock.ts"
click node_security "https://github.com/rani0707/raniweb/blob/main/lib/security.ts"
click node_proxy "https://github.com/rani0707/raniweb/blob/main/proxy.ts"
click node_csp_route "https://github.com/rani0707/raniweb/blob/main/app/api/csp-report/route.ts"
click node_csp "https://github.com/rani0707/raniweb/blob/main/lib/csp-report.ts"
click node_error_routes "https://github.com/rani0707/raniweb/blob/main/app/403/route.ts"
click node_error_pages "https://github.com/rani0707/raniweb/blob/main/lib/error-pages.ts"
click node_error_screen "https://github.com/rani0707/raniweb/blob/main/components/ErrorScreen.tsx"
click node_theme_script "https://github.com/rani0707/raniweb/blob/main/lib/theme-script.ts"

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,node_hero,node_skills,node_experience,node_certifications,node_awards toneBlue
class node_projects_list,node_project_modal,node_markdown,node_project_page,node_project_content toneAmber
class node_header,node_footer,node_theme,node_layout,node_modal,node_scroll_lock toneMint
class node_security,node_proxy,node_csp_route,node_csp,node_error_routes,node_error_pages,node_error_screen,node_theme_script toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio content

- [Home page](https://github.com/rani0707/raniweb/blob/main/app/page.tsx): `app/page.tsx`
- [Introduction](https://github.com/rani0707/raniweb/blob/main/components/Hero.tsx): `components/Hero.tsx`
- [Skills](https://github.com/rani0707/raniweb/blob/main/components/Skills.tsx): `components/Skills.tsx`
- [Experience](https://github.com/rani0707/raniweb/blob/main/components/Experience.tsx): `components/Experience.tsx`
- [Certifications](https://github.com/rani0707/raniweb/blob/main/components/Certifications.tsx): `components/Certifications.tsx`
- [Awards](https://github.com/rani0707/raniweb/blob/main/components/Awards.tsx): `components/Awards.tsx`

### Project details

- [Project list](https://github.com/rani0707/raniweb/blob/main/components/Projects.tsx): `components/Projects.tsx`
- [Project modal](https://github.com/rani0707/raniweb/blob/main/components/ProjectModal.tsx): `components/ProjectModal.tsx`
- [Markdown renderer](https://github.com/rani0707/raniweb/blob/main/components/ProjectMarkdown.tsx): `components/ProjectMarkdown.tsx`
- [Project page](https://github.com/rani0707/raniweb/blob/main/app/projects/%5Bid%5D/page.tsx): `app/projects/[id]/page.tsx`
- [Project content lookup](https://github.com/rani0707/raniweb/blob/main/lib/projects.ts): `lib/projects.ts`

### Site experience

- [Navigation](https://github.com/rani0707/raniweb/blob/main/components/Header.tsx): `components/Header.tsx`
- [Footer](https://github.com/rani0707/raniweb/blob/main/components/Footer.tsx): `components/Footer.tsx`
- [Theme provider](https://github.com/rani0707/raniweb/blob/main/components/ThemeProvider.tsx): `components/ThemeProvider.tsx`
- [Root layout](https://github.com/rani0707/raniweb/blob/main/app/layout.tsx): `app/layout.tsx`
- [Modal shell](https://github.com/rani0707/raniweb/blob/main/components/Modal.tsx): `components/Modal.tsx`
- [Scroll lock](https://github.com/rani0707/raniweb/blob/main/lib/scroll-lock.ts): `lib/scroll-lock.ts`

### Security and errors

- [Security helpers](https://github.com/rani0707/raniweb/blob/main/lib/security.ts): `lib/security.ts`
- [Request proxy](https://github.com/rani0707/raniweb/blob/main/proxy.ts): `proxy.ts`
- [CSP report route](https://github.com/rani0707/raniweb/blob/main/app/api/csp-report/route.ts): `app/api/csp-report/route.ts`
- [CSP report handling](https://github.com/rani0707/raniweb/blob/main/lib/csp-report.ts): `lib/csp-report.ts`
- [Error routes](https://github.com/rani0707/raniweb/blob/main/app/403/route.ts): `app/403/route.ts`
- [Error responses](https://github.com/rani0707/raniweb/blob/main/lib/error-pages.ts): `lib/error-pages.ts`
- [Error screen](https://github.com/rani0707/raniweb/blob/main/components/ErrorScreen.tsx): `components/ErrorScreen.tsx`
- [Theme initializer](https://github.com/rani0707/raniweb/blob/main/lib/theme-script.ts): `lib/theme-script.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Home page: opens
- Home page → Navigation: renders (evidence: `app/page.tsx`)
- Home page → Introduction: renders (evidence: `app/page.tsx`)
- Home page → Project list: renders (evidence: `app/page.tsx`)
- Home page → Skills: renders (evidence: `app/page.tsx`)
- Home page → Experience: renders (evidence: `app/page.tsx`)
- Home page → Certifications: renders (evidence: `app/page.tsx`)
- Home page → Awards: renders (evidence: `app/page.tsx`)
- Home page → Footer: renders (evidence: `app/page.tsx`)
- Visitor → Project list: browses
- Project list → Project modal: opens (evidence: `components/Projects.tsx`)
- Project modal → Markdown renderer: renders (evidence: `components/ProjectModal.tsx`)
- Project modal → Modal shell: uses (evidence: `components/ProjectModal.tsx`)
- Project modal → Security helpers: validates links (evidence: `components/ProjectModal.tsx`)
- Project modal → Project content lookup: fetches detail
- Project list → Security helpers: sanitizes links (evidence: `components/Projects.tsx`)
- Visitor → Project page: opens shared URL
- Project page → Project content lookup: loads content (evidence: `app/projects/[id]/page.tsx`)
- Project page → Markdown renderer: renders (evidence: `app/projects/[id]/page.tsx`)
- Project page → Navigation: renders (evidence: `app/projects/[id]/page.tsx`)
- Project page → Footer: renders (evidence: `app/projects/[id]/page.tsx`)
- Navigation → Theme provider: reads theme (evidence: `components/Header.tsx`)
- Navigation → Scroll lock: locks scrolling (evidence: `components/Header.tsx`)
- Modal shell → Scroll lock: uses (evidence: `components/Modal.tsx`)
- Root layout → Theme provider: provides (evidence: `app/layout.tsx`)
- Root layout → Theme initializer: injects (evidence: `app/layout.tsx`)
- Request proxy → Security helpers: configures policy (evidence: `proxy.ts`)
- CSP report route → CSP report handling: validates and summarizes (evidence: `app/api/csp-report/route.ts`)
- Error routes → Error responses: builds response (evidence: `app/403/route.ts`)
- Error screen → Error responses: uses (evidence: `components/ErrorScreen.tsx`)
- Error responses → Theme initializer: embeds initializer (evidence: `lib/error-pages.ts`)
