# darshanauradi17-byte/website-lead-platform architecture

> Architecture diagram of the GitHub repository darshanauradi17-byte/website-lead-platform, 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/darshanauradi17-byte/website-lead-platform
- Repository: https://github.com/darshanauradi17-byte/website-lead-platform

## Overview

ApnaWeb is a prototype for collecting website requests from local businesses and managing their progress. Customers submit a request, receive an ID, and can track its status; the owner logs in to review requests and update or delete them. The Express server serves the customer, portfolio, and dashboard pages, provides the APIs, and stores requests in a JSON file. The README and excerpts support the main request and management flows; page wiring for visual-effect scripts was not shown, so those links are marked unverified.

Main entry points: [`server.js`](https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/server.js) (Express API and routes), [`public/index.html`](https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/index.html) (Landing page), [`public/dashboard.html`](https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/dashboard.html) (Dashboard page), [`public/js/main.js`](https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/js/main.js) (Request form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customer["Customer experience"]
  node_landing["Landing page<br/>[index.html]"]
  node_request_form["Request form<br/>[main.js]"]
  node_request_tracking["Status tracking<br/>[main.js]"]
  node_portfolio["Portfolio page<br/>[portfolio.html]"]
end

subgraph group_service["Request services"]
  node_api_server["Express API and routes<br/>[server.js]"]
  node_lead_intake["Request intake<br/>[server.js]"]
  node_owner_auth["Owner authentication<br/>[server.js]"]
  node_request_management["Request management<br/>[server.js]"]
  node_lead_store[("Submission store<br/>[submissions.json]")]
end

subgraph group_owner["Owner operations"]
  node_dashboard_page["Dashboard page<br/>[dashboard.html]"]
  node_dashboard_ui["Dashboard controls<br/>[dashboard.js]"]
end

subgraph group_visual["Visual interactions"]
  node_customer_3d["Customer 3D scene<br/>[3d-customer.js]"]
  node_owner_3d["Dashboard 3D effects<br/>[3d-owner.js]"]
  node_motion["Motion effects<br/>[motion-physics.js]"]
  node_ui_utilities["UI utilities<br/>[ui-ux.js]"]
end

node_customer_actor(("Customer"))
node_owner_actor(("Business owner"))

node_customer_actor -->|"opens"| node_landing
node_landing -->|"presents"| node_request_form
node_request_form -->|"submits request"| node_lead_intake
node_lead_intake -->|"saves request"| node_lead_store
node_request_form -->|"offers tracking"| node_request_tracking
node_request_tracking -->|"fetches status"| node_api_server
node_api_server -->|"reads requests"| node_lead_store
node_api_server -->|"serves page"| node_landing
node_api_server -->|"serves page"| node_portfolio
node_owner_actor -->|"opens"| node_dashboard_page
node_dashboard_page -->|"provides controls"| node_dashboard_ui
node_dashboard_ui -->|"logs in"| node_owner_auth
node_dashboard_ui -->|"manages requests"| node_request_management
node_owner_auth -->|"authenticates"| node_api_server
node_request_management -->|"updates requests"| node_lead_store
node_api_server -->|"serves page"| node_dashboard_page
node_landing -.->|"uses effects"| node_customer_3d
node_dashboard_page -.->|"uses effects"| node_owner_3d
node_landing -.->|"uses effects"| node_motion
node_dashboard_page -.->|"uses utilities"| node_ui_utilities

click node_landing "https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/index.html"
click node_request_form "https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/js/main.js"
click node_request_tracking "https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/js/main.js"
click node_portfolio "https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/portfolio.html"
click node_api_server "https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/server.js"
click node_lead_intake "https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/server.js"
click node_owner_auth "https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/server.js"
click node_request_management "https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/server.js"
click node_lead_store "https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/data/submissions.json"
click node_dashboard_page "https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/dashboard.html"
click node_dashboard_ui "https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/js/dashboard.js"
click node_customer_3d "https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/js/3d-customer.js"
click node_owner_3d "https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/js/3d-owner.js"
click node_motion "https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/js/motion-physics.js"
click node_ui_utilities "https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/js/ui-ux.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_landing,node_request_form,node_request_tracking,node_portfolio toneBlue
class node_api_server,node_lead_intake,node_owner_auth,node_request_management,node_lead_store toneAmber
class node_dashboard_page,node_dashboard_ui toneMint
class node_customer_3d,node_owner_3d,node_motion,node_ui_utilities toneRose
class node_customer_actor,node_owner_actor toneIndigo
```

## Components

### Customer experience

- [Landing page](https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/index.html): `public/index.html`
- [Request form](https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/js/main.js): `public/js/main.js`
- [Status tracking](https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/js/main.js): `public/js/main.js`
- [Portfolio page](https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/portfolio.html): `public/portfolio.html`

### Request services

- [Express API and routes](https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/server.js): `server.js`
- [Request intake](https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/server.js): `server.js`
- [Owner authentication](https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/server.js): `server.js`
- [Request management](https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/server.js): `server.js`
- [Submission store](https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/data/submissions.json): `data/submissions.json`

### Owner operations

- [Dashboard page](https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/dashboard.html): `public/dashboard.html`
- [Dashboard controls](https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/js/dashboard.js): `public/js/dashboard.js`

### Visual interactions

- [Customer 3D scene](https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/js/3d-customer.js): `public/js/3d-customer.js`
- [Dashboard 3D effects](https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/js/3d-owner.js): `public/js/3d-owner.js`
- [Motion effects](https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/js/motion-physics.js): `public/js/motion-physics.js`
- [UI utilities](https://github.com/darshanauradi17-byte/website-lead-platform/blob/main/public/js/ui-ux.js): `public/js/ui-ux.js`

### Other components

- **Customer**
- **Business owner**

## Connections

- Customer → Landing page: opens (evidence: `README.md`)
- Landing page → Request form: presents (evidence: `README.md`)
- Request form → Request intake: submits request (evidence: `README.md`)
- Request intake → Submission store: saves request (evidence: `server.js`)
- Request form → Status tracking: offers tracking (evidence: `public/js/main.js`)
- Status tracking → Express API and routes: fetches status (evidence: `public/js/main.js`)
- Express API and routes → Submission store: reads requests (evidence: `server.js`)
- Express API and routes → Landing page: serves page (evidence: `server.js`)
- Express API and routes → Portfolio page: serves page (evidence: `server.js`)
- Business owner → Dashboard page: opens (evidence: `README.md`)
- Dashboard page → Dashboard controls: provides controls (evidence: `README.md`)
- Dashboard controls → Owner authentication: logs in (evidence: `README.md`)
- Dashboard controls → Request management: manages requests (evidence: `README.md`)
- Owner authentication → Express API and routes: authenticates (evidence: `server.js`)
- Request management → Submission store: updates requests (evidence: `server.js`)
- Express API and routes → Dashboard page: serves page (evidence: `server.js`)
- Landing page → Customer 3D scene: uses effects
- Dashboard page → Dashboard 3D effects: uses effects
- Landing page → Motion effects: uses effects
- Dashboard page → UI utilities: uses utilities
