# vinaya1201/pbl-online-bookstore-insights architecture

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

- Interactive diagram: https://gitdiagram.com/vinaya1201/pbl-online-bookstore-insights
- Repository: https://github.com/vinaya1201/pbl-online-bookstore-insights

## Overview

This is a small book-data analytics project. Its documented workflow uses PySpark to analyze book data and presents insights, including top-rated books and author performance, through Streamlit visualizations. The README says the dataset is hosted in Supabase Storage and users can open the notebook or run the app. The notebook is the only source file shown, so implementation details and the exact data-loading path cannot be verified; documented capabilities are represented without assuming how they are wired.

Main entry points: [`bda_pbl.ipynb`](https://github.com/vinaya1201/pbl-online-bookstore-insights/blob/main/bda_pbl.ipynb) (Book insights)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Dataset hosting"]
  node_storage[("Supabase Storage")]
end

subgraph group_analysis["Book analysis"]
  node_notebook["Analytics notebook<br/>[bda_pbl.ipynb]"]
  node_processing["PySpark processing<br/>[bda_pbl.ipynb]"]
end

subgraph group_presentation["Insights and dashboard"]
  node_insights["Book insights<br/>[bda_pbl.ipynb]"]
  node_dashboard["Streamlit dashboard<br/>[bda_pbl.ipynb]"]
end

node_user(("User"))

node_user -->|"opens"| node_notebook
node_processing -->|"analyzes data"| node_insights
node_insights -->|"visualizes"| node_dashboard

click node_notebook "https://github.com/vinaya1201/pbl-online-bookstore-insights/blob/main/bda_pbl.ipynb"
click node_processing "https://github.com/vinaya1201/pbl-online-bookstore-insights/blob/main/bda_pbl.ipynb"
click node_insights "https://github.com/vinaya1201/pbl-online-bookstore-insights/blob/main/bda_pbl.ipynb"
click node_dashboard "https://github.com/vinaya1201/pbl-online-bookstore-insights/blob/main/bda_pbl.ipynb"

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_storage,node_user toneBlue
class node_notebook,node_processing toneAmber
class node_insights,node_dashboard toneMint
```

## Components

### Dataset hosting

- **Supabase Storage**

### Book analysis

- [Analytics notebook](https://github.com/vinaya1201/pbl-online-bookstore-insights/blob/main/bda_pbl.ipynb): `bda_pbl.ipynb`
- [PySpark processing](https://github.com/vinaya1201/pbl-online-bookstore-insights/blob/main/bda_pbl.ipynb): `bda_pbl.ipynb`

### Insights and dashboard

- [Book insights](https://github.com/vinaya1201/pbl-online-bookstore-insights/blob/main/bda_pbl.ipynb): `bda_pbl.ipynb`
- [Streamlit dashboard](https://github.com/vinaya1201/pbl-online-bookstore-insights/blob/main/bda_pbl.ipynb): `bda_pbl.ipynb`

### Other components

- **User**

## Connections

- User → Analytics notebook: opens (evidence: `README.md`)
- PySpark processing → Book insights: analyzes data (evidence: `README.md`)
- Book insights → Streamlit dashboard: visualizes (evidence: `README.md`)
