# devasish009/portifolio architecture

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

- Interactive diagram: https://gitdiagram.com/devasish009/portifolio
- Repository: https://github.com/devasish009/portifolio

## Overview

The README describes a static Spider-Man fan-site: visitors open it in a browser, view responsive sections, and use its navigation and interactive effects. A small Node server can serve the same `dist` files. The repository also contains a separate portfolio-document generator and project showcase data, which the README does not explain; these are shown as a distinct branch. The README and tree appear inconsistent, so unsampled frontend behavior is represented only at the level documented there.

Main entry points: [`dist/index.html`](https://github.com/devasish009/portifolio/blob/main/dist/index.html) (Site sections), [`portfolio-document/build_document.py`](https://github.com/devasish009/portifolio/blob/main/portfolio-document/build_document.py) (DOCX generator), [`server.cjs`](https://github.com/devasish009/portifolio/blob/main/server.cjs) (Static file server), [`dist/app.js`](https://github.com/devasish009/portifolio/blob/main/dist/app.js) (Page interactions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Fan Site"]
  node_page["Site sections<br/>[index.html]"]
  node_styling["Responsive styling<br/>[styles.css]"]
  node_portfolio_css["Portfolio styling<br/>[portfolio.css]"]
  node_images["Site assets"]
  node_local_model["Local model data"]
end

subgraph group_interaction["Page Interactions"]
  node_interactions["Page interactions<br/>[app.js]"]
  node_scene["3D scene code<br/>[developer-scene.js]"]
end

subgraph group_serving["Local Serving"]
  node_server["Static file server<br/>[server.cjs]"]
end

subgraph group_document["Portfolio Document"]
  node_source_html["Document source<br/>[source.html]"]
  node_project_json["Project records<br/>[projects.json]"]
  node_project_js["Project showcase data<br/>[projects.js]"]
  node_generator["DOCX generator<br/>[build_document.py]"]
  node_docx["Portfolio document"]
end

node_visitor(("Site visitor"))
node_browser(("Browser"))

node_visitor -->|"opens site"| node_browser
node_browser -->|"loads page"| node_page
node_browser -->|"requests files"| node_server
node_server -->|"serves files"| node_page
node_page -.->|"uses styles"| node_styling
node_page -->|"uses interactions"| node_interactions
node_page -->|"displays imagery"| node_images
node_visitor -->|"uses controls"| node_interactions
node_scene -.->|"may load"| node_local_model
node_generator -->|"parses source"| node_source_html
node_generator -->|"reads records"| node_project_json
node_generator -->|"writes document"| node_docx

click node_page "https://github.com/devasish009/portifolio/blob/main/dist/index.html"
click node_styling "https://github.com/devasish009/portifolio/blob/main/dist/styles.css"
click node_portfolio_css "https://github.com/devasish009/portifolio/blob/main/dist/portfolio.css"
click node_images "https://github.com/devasish009/portifolio/tree/main/dist/assets"
click node_interactions "https://github.com/devasish009/portifolio/blob/main/dist/app.js"
click node_scene "https://github.com/devasish009/portifolio/blob/main/dist/developer-scene.js"
click node_local_model "https://github.com/devasish009/portifolio/blob/main/dist/assets/developer-workspace.glb"
click node_server "https://github.com/devasish009/portifolio/blob/main/server.cjs"
click node_source_html "https://github.com/devasish009/portifolio/blob/main/portfolio-document/source.html"
click node_project_json "https://github.com/devasish009/portifolio/blob/main/portfolio-document/projects.json"
click node_project_js "https://github.com/devasish009/portifolio/blob/main/portfolio-document/projects.js"
click node_generator "https://github.com/devasish009/portifolio/blob/main/portfolio-document/build_document.py"
click node_docx "https://github.com/devasish009/portifolio/blob/main/portfolio-document/Devasish_Portfolio_Details.docx"

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_page,node_styling,node_portfolio_css,node_images,node_local_model,node_browser toneBlue
class node_interactions,node_scene toneAmber
class node_server toneMint
class node_source_html,node_project_json,node_project_js,node_generator,node_docx toneRose
class node_visitor toneIndigo
```

## Components

### Fan Site

- [Site sections](https://github.com/devasish009/portifolio/blob/main/dist/index.html): `dist/index.html`
- [Responsive styling](https://github.com/devasish009/portifolio/blob/main/dist/styles.css): `dist/styles.css`
- [Portfolio styling](https://github.com/devasish009/portifolio/blob/main/dist/portfolio.css): `dist/portfolio.css`
- [Site assets](https://github.com/devasish009/portifolio/tree/main/dist/assets): `dist/assets`
- [Local model data](https://github.com/devasish009/portifolio/blob/main/dist/assets/developer-workspace.glb): `dist/assets/developer-workspace.glb`

### Page Interactions

- [Page interactions](https://github.com/devasish009/portifolio/blob/main/dist/app.js): `dist/app.js`
- [3D scene code](https://github.com/devasish009/portifolio/blob/main/dist/developer-scene.js): `dist/developer-scene.js`

### Local Serving

- [Static file server](https://github.com/devasish009/portifolio/blob/main/server.cjs): `server.cjs`

### Portfolio Document

- [Document source](https://github.com/devasish009/portifolio/blob/main/portfolio-document/source.html): `portfolio-document/source.html`
- [Project records](https://github.com/devasish009/portifolio/blob/main/portfolio-document/projects.json): `portfolio-document/projects.json`
- [Project showcase data](https://github.com/devasish009/portifolio/blob/main/portfolio-document/projects.js): `portfolio-document/projects.js`
- [DOCX generator](https://github.com/devasish009/portifolio/blob/main/portfolio-document/build_document.py): `portfolio-document/build_document.py`
- [Portfolio document](https://github.com/devasish009/portifolio/blob/main/portfolio-document/Devasish_Portfolio_Details.docx): `portfolio-document/Devasish_Portfolio_Details.docx`

### Other components

- **Site visitor**
- **Browser**

## Connections

- Site visitor → Browser: opens site (evidence: `README.md`)
- Browser → Site sections: loads page (evidence: `README.md`)
- Browser → Static file server: requests files (evidence: `README.md`)
- Static file server → Site sections: serves files (evidence: `server.cjs`)
- Site sections → Responsive styling: uses styles
- Site sections → Page interactions: uses interactions (evidence: `README.md`)
- Site sections → Site assets: displays imagery (evidence: `README.md`)
- Site visitor → Page interactions: uses controls (evidence: `README.md`)
- 3D scene code → Local model data: may load
- DOCX generator → Document source: parses source (evidence: `portfolio-document/build_document.py`)
- DOCX generator → Project records: reads records (evidence: `portfolio-document/build_document.py`)
- DOCX generator → Portfolio document: writes document (evidence: `portfolio-document/build_document.py`)
