# yuvaneshhari/unic-the-knowledge-connector architecture

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

- Interactive diagram: https://gitdiagram.com/yuvaneshhari/unic-the-knowledge-connector
- Repository: https://github.com/yuvaneshhari/unic-the-knowledge-connector

## Overview

This is a static wellness information site with a challenge-focused self-assessment as its main interactive workflow: users answer questions, receive a normalized score and tailored suggestions, and can generate a PDF. The tree also shows separate informational pages for features, impact, and vision. JavaScript excerpts support the quiz’s scoring and result logic, but the HTML files were not sampled, so page-to-page navigation and page-to-script wiring are not represented.

Main entry points: [`js/quiz.js`](https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/js/quiz.js) (Question bank)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Wellness content"]
  node_home["Home<br/>[index.html]"]
  node_challenges["Challenges<br/>[challenges.html]"]
  node_anxiety["Anxiety<br/>[anxiety.html]"]
  node_depression["Depression<br/>[depression.html]"]
  node_addiction["Addiction<br/>[addiction.html]"]
  node_energy["Energy<br/>[energy.html]"]
  node_pain["Pain<br/>[pain.html]"]
  node_features["Features<br/>[features.html]"]
  node_impact["Impact<br/>[impact.html]"]
  node_vision["Vision<br/>[vision.html]"]
  node_about["About<br/>[about.html]"]
end

subgraph group_assessment["Self-assessment"]
  node_quizdata["Question bank<br/>[quiz.js]"]
  node_scoring["Score calculation<br/>[quiz.js]"]
  node_results["Tailored results<br/>[quiz.js]"]
  node_pdf["PDF generator<br/>[quiz.js]"]
end

subgraph group_interaction["Site interactions"]
  node_navigation["Mobile navigation<br/>[main.js]"]
  node_animations["Reveal and counters<br/>[animations.js]"]
end

node_visitor(("Site visitor"))
node_jspdf["jsPDF library"]

node_visitor -->|"answers questions"| node_quizdata
node_quizdata -->|"provides answers"| node_scoring
node_scoring -->|"selects suggestions"| node_results
node_results -->|"exports report"| node_pdf
node_pdf -->|"creates document"| node_jspdf

click node_home "https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/index.html"
click node_challenges "https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/challenges.html"
click node_anxiety "https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/pages/anxiety.html"
click node_depression "https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/pages/depression.html"
click node_addiction "https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/pages/addiction.html"
click node_energy "https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/pages/energy.html"
click node_pain "https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/pages/pain.html"
click node_features "https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/features.html"
click node_impact "https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/impact.html"
click node_vision "https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/vision.html"
click node_about "https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/about.html"
click node_quizdata "https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/js/quiz.js"
click node_scoring "https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/js/quiz.js"
click node_results "https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/js/quiz.js"
click node_pdf "https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/js/quiz.js"
click node_navigation "https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/js/main.js"
click node_animations "https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/js/animations.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_home,node_challenges,node_anxiety,node_depression,node_addiction,node_energy,node_pain,node_features,node_impact,node_vision,node_about toneBlue
class node_quizdata,node_scoring,node_results,node_pdf toneAmber
class node_navigation,node_animations toneMint
class node_visitor,node_jspdf toneIndigo
```

## Components

### Wellness content

- [Home](https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/index.html): `index.html`
- [Challenges](https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/challenges.html): `challenges.html`
- [Anxiety](https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/pages/anxiety.html): `pages/anxiety.html`
- [Depression](https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/pages/depression.html): `pages/depression.html`
- [Addiction](https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/pages/addiction.html): `pages/addiction.html`
- [Energy](https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/pages/energy.html): `pages/energy.html`
- [Pain](https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/pages/pain.html): `pages/pain.html`
- [Features](https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/features.html): `features.html`
- [Impact](https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/impact.html): `impact.html`
- [Vision](https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/vision.html): `vision.html`
- [About](https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/about.html): `about.html`

### Self-assessment

- [Question bank](https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/js/quiz.js): `js/quiz.js`
- [Score calculation](https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/js/quiz.js): `js/quiz.js`
- [Tailored results](https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/js/quiz.js): `js/quiz.js`
- [PDF generator](https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/js/quiz.js): `js/quiz.js`

### Site interactions

- [Mobile navigation](https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/js/main.js): `js/main.js`
- [Reveal and counters](https://github.com/yuvaneshhari/unic-the-knowledge-connector/blob/main/js/animations.js): `js/animations.js`

### Other components

- **Site visitor**
- **jsPDF library**

## Connections

- Site visitor → Question bank: answers questions (evidence: `js/quiz.js`)
- Question bank → Score calculation: provides answers (evidence: `js/quiz.js`)
- Score calculation → Tailored results: selects suggestions (evidence: `js/quiz.js`)
- Tailored results → PDF generator: exports report (evidence: `js/quiz.js`)
- PDF generator → jsPDF library: creates document (evidence: `js/quiz.js`)
