# snehasish-tech/chhatrobondhu architecture

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

- Interactive diagram: https://gitdiagram.com/snehasish-tech/chhatrobondhu
- Repository: https://github.com/snehasish-tech/chhatrobondhu

## Overview

ChhatroBondhu is a browser-based study companion. Students use its page to browse and search a course library, find study notes, and open external learning resources; the JavaScript initializes the experience and renders course and notes content from in-memory sample data. The README also documents smart search and Marku GPA calculation. The source excerpt is partial, so some documented feature links are supported only by the README, not verified against implementation.

Main entry points: [`Script.js`](https://github.com/snehasish-tech/chhatrobondhu/blob/main/Script.js) (App Controller), [`Index.html`](https://github.com/snehasish-tech/chhatrobondhu/blob/main/Index.html) (Study Page), [`Style.css`](https://github.com/snehasish-tech/chhatrobondhu/blob/main/Style.css) (Page Styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Student Interface"]
  node_page["Study Page<br/>[Index.html]"]
  node_controller["App Controller<br/>[Script.js]"]
  node_styles["Page Styling<br/>[Style.css]"]
end

subgraph group_learning["Study Features"]
  node_storage["Sample Data<br/>[Script.js]"]
  node_courses["Course Library<br/>[Script.js]"]
  node_course_search["Course Search<br/>[Script.js]"]
  node_youtube["YouTube Courses"]
  node_notes["Notes Library<br/>[Script.js]"]
  node_google["Google Notes Search"]
  node_gpa["Marku GPA Tool"]
end

subgraph group_presentation["Visual Experience"]
  node_effects["Background Effects<br/>[Script.js]"]
  node_notifications["Notifications<br/>[Script.js]"]
end

node_student(("Student"))

node_student -->|"uses"| node_page
node_page -->|"hosts"| node_controller
node_page -->|"styled by"| node_styles
node_controller -->|"initializes"| node_storage
node_controller -->|"loads"| node_courses
node_courses -->|"reads data"| node_storage
node_course_search -->|"filters data"| node_storage
node_course_search -->|"displays results"| node_courses
node_courses -->|"opens search"| node_youtube
node_controller -->|"loads"| node_notes
node_notes -->|"reads data"| node_storage
node_notes -->|"searches materials"| node_google
node_student -.->|"opens calculator"| node_gpa
node_controller -->|"creates"| node_effects
node_controller -->|"shows"| node_notifications

click node_page "https://github.com/snehasish-tech/chhatrobondhu/blob/main/Index.html"
click node_controller "https://github.com/snehasish-tech/chhatrobondhu/blob/main/Script.js"
click node_styles "https://github.com/snehasish-tech/chhatrobondhu/blob/main/Style.css"
click node_storage "https://github.com/snehasish-tech/chhatrobondhu/blob/main/Script.js"
click node_courses "https://github.com/snehasish-tech/chhatrobondhu/blob/main/Script.js"
click node_course_search "https://github.com/snehasish-tech/chhatrobondhu/blob/main/Script.js"
click node_notes "https://github.com/snehasish-tech/chhatrobondhu/blob/main/Script.js"
click node_effects "https://github.com/snehasish-tech/chhatrobondhu/blob/main/Script.js"
click node_notifications "https://github.com/snehasish-tech/chhatrobondhu/blob/main/Script.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_page,node_controller,node_styles toneBlue
class node_storage,node_courses,node_course_search,node_youtube,node_notes,node_google,node_gpa toneAmber
class node_effects,node_notifications toneMint
class node_student toneIndigo
```

## Components

### Student Interface

- [Study Page](https://github.com/snehasish-tech/chhatrobondhu/blob/main/Index.html): `Index.html`
- [App Controller](https://github.com/snehasish-tech/chhatrobondhu/blob/main/Script.js): `Script.js`
- [Page Styling](https://github.com/snehasish-tech/chhatrobondhu/blob/main/Style.css): `Style.css`

### Study Features

- [Sample Data](https://github.com/snehasish-tech/chhatrobondhu/blob/main/Script.js): `Script.js`
- [Course Library](https://github.com/snehasish-tech/chhatrobondhu/blob/main/Script.js): `Script.js`
- [Course Search](https://github.com/snehasish-tech/chhatrobondhu/blob/main/Script.js): `Script.js`
- **YouTube Courses**
- [Notes Library](https://github.com/snehasish-tech/chhatrobondhu/blob/main/Script.js): `Script.js`
- **Google Notes Search**
- **Marku GPA Tool**

### Visual Experience

- [Background Effects](https://github.com/snehasish-tech/chhatrobondhu/blob/main/Script.js): `Script.js`
- [Notifications](https://github.com/snehasish-tech/chhatrobondhu/blob/main/Script.js): `Script.js`

### Other components

- **Student**

## Connections

- Student → Study Page: uses (evidence: `README.md`)
- Study Page → App Controller: hosts (evidence: `README.md`)
- Study Page → Page Styling: styled by (evidence: `README.md`)
- App Controller → Sample Data: initializes (evidence: `Script.js`)
- App Controller → Course Library: loads (evidence: `Script.js`)
- Course Library → Sample Data: reads data (evidence: `Script.js`)
- Course Search → Sample Data: filters data (evidence: `Script.js`)
- Course Search → Course Library: displays results (evidence: `Script.js`)
- Course Library → YouTube Courses: opens search (evidence: `Script.js`)
- App Controller → Notes Library: loads (evidence: `Script.js`)
- Notes Library → Sample Data: reads data (evidence: `Script.js`)
- Notes Library → Google Notes Search: searches materials (evidence: `README.md`)
- Student → Marku GPA Tool: opens calculator (evidence: `README.md`)
- App Controller → Background Effects: creates (evidence: `Script.js`)
- App Controller → Notifications: shows (evidence: `Script.js`)
