# abhijeetsengar-dev/free-book-library architecture

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

- Interactive diagram: https://gitdiagram.com/abhijeetsengar-dev/free-book-library
- Repository: https://github.com/abhijeetsengar-dev/free-book-library

## Overview

This is a browser-based engineering book catalog and study aid. Users browse and filter books by category, branch, semester, level, and saved/read status; the site also presents learning roadmaps and GPA calculators. Catalog metadata is represented in both bookdata.js and script.js, but the available excerpts do not establish how those files relate at runtime. The excerpts show browser-local persistence and theme initialization. index.html and style.css are present, but their contents were not provided, so page wiring and presentation details are omitted.

Main entry points: [`script.js`](https://github.com/abhijeetsengar-dev/free-book-library/blob/main/script.js) (Catalog interface), [`theme.js`](https://github.com/abhijeetsengar-dev/free-book-library/blob/main/theme.js) (Theme initialization), [`bookdata.js`](https://github.com/abhijeetsengar-dev/free-book-library/blob/main/bookdata.js) (Book metadata)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Book catalog"]
  node_catalog_data["Book metadata<br/>[bookdata.js]"]
  node_catalog_app["Catalog interface<br/>[script.js]"]
  node_learning_resources["Learning resources"]
  node_saved_read["Saved and read lists<br/>[script.js]"]
end

subgraph group_study["Study tools"]
  node_roadmaps["Learning roadmaps<br/>[script.js]"]
  node_gpa_tools["GPA calculators<br/>[script.js]"]
end

subgraph group_preferences["Browser preferences"]
  node_theme_init["Theme initialization<br/>[theme.js]"]
end

node_student(("Student"))
node_browser_storage[("Local storage")]
node_system_theme["System color preference"]

node_student -->|"browses and filters"| node_catalog_app
node_catalog_app -->|"updates lists"| node_saved_read
node_saved_read -->|"loads and stores"| node_browser_storage
node_catalog_app -->|"displays"| node_roadmaps
node_catalog_app -->|"calculates GPA"| node_gpa_tools
node_theme_init -->|"reads theme"| node_browser_storage
node_theme_init -->|"checks preference"| node_system_theme
node_catalog_data -->|"lists resources"| node_learning_resources

click node_catalog_data "https://github.com/abhijeetsengar-dev/free-book-library/blob/main/bookdata.js"
click node_catalog_app "https://github.com/abhijeetsengar-dev/free-book-library/blob/main/script.js"
click node_saved_read "https://github.com/abhijeetsengar-dev/free-book-library/blob/main/script.js"
click node_roadmaps "https://github.com/abhijeetsengar-dev/free-book-library/blob/main/script.js"
click node_gpa_tools "https://github.com/abhijeetsengar-dev/free-book-library/blob/main/script.js"
click node_theme_init "https://github.com/abhijeetsengar-dev/free-book-library/blob/main/theme.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_catalog_data,node_catalog_app,node_learning_resources,node_saved_read toneBlue
class node_roadmaps,node_gpa_tools,node_browser_storage toneAmber
class node_theme_init toneMint
class node_student,node_system_theme toneIndigo
```

## Components

### Book catalog

- [Book metadata](https://github.com/abhijeetsengar-dev/free-book-library/blob/main/bookdata.js): `bookdata.js`
- [Catalog interface](https://github.com/abhijeetsengar-dev/free-book-library/blob/main/script.js): `script.js`
- **Learning resources**
- [Saved and read lists](https://github.com/abhijeetsengar-dev/free-book-library/blob/main/script.js): `script.js`

### Study tools

- [Learning roadmaps](https://github.com/abhijeetsengar-dev/free-book-library/blob/main/script.js): `script.js`
- [GPA calculators](https://github.com/abhijeetsengar-dev/free-book-library/blob/main/script.js): `script.js`

### Browser preferences

- [Theme initialization](https://github.com/abhijeetsengar-dev/free-book-library/blob/main/theme.js): `theme.js`

### Other components

- **Student**
- **Local storage**
- **System color preference**

## Connections

- Student → Catalog interface: browses and filters (evidence: `script.js`)
- Catalog interface → Saved and read lists: updates lists (evidence: `script.js`)
- Saved and read lists → Local storage: loads and stores (evidence: `script.js`)
- Catalog interface → Learning roadmaps: displays (evidence: `script.js`)
- Catalog interface → GPA calculators: calculates GPA (evidence: `script.js`)
- Theme initialization → Local storage: reads theme (evidence: `theme.js`)
- Theme initialization → System color preference: checks preference (evidence: `theme.js`)
- Book metadata → Learning resources: lists resources (evidence: `bookdata.js`)
