# meetx95/novelstore_project architecture

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

- Interactive diagram: https://gitdiagram.com/meetx95/novelstore_project
- Repository: https://github.com/meetx95/novelstore_project

## Overview

NovelStore is a PHP novel-reading storefront: visitors discover featured titles, sign in, browse a catalog, inspect a novel, then purchase or read chapters. Signed-in users also manage a wishlist, reading history, and profile. The dashboard routes page requests into these views, while each view queries the shared MySQL-backed store. The map preserves those distinct capabilities and the shared session/layout layer. Evidence is limited to the supplied excerpts, SOURCE INDEX references, and README (which is empty); unsampled page behavior is not assumed.

Main entry points: [`Dashboard.php`](https://github.com/meetx95/novelstore_project/blob/main/Dashboard.php) (Dashboard Router), [`config/Reader.sql`](https://github.com/meetx95/novelstore_project/blob/main/config/Reader.sql) (NovelStore Database), [`include/dashboard_start.php`](https://github.com/meetx95/novelstore_project/blob/main/include/dashboard_start.php) (Dashboard Layout), [`novel.php`](https://github.com/meetx95/novelstore_project/blob/main/novel.php) (Novel Detail)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and Accounts"]
  node_landing["Featured Landing<br/>[index.php]"]
  node_auth["Authentication<br/>[Login_register.php]"]
  node_dashboard["Dashboard Router<br/>[Dashboard.php]"]
  node_profile["User Profile<br/>[user.php]"]
end

subgraph group_catalog["Catalog and Discovery"]
  node_home["Home Discovery<br/>[home.php]"]
  node_catalog_view["Novel Library<br/>[Library.php]"]
  node_detail["Novel Detail<br/>[novel.php]"]
end

subgraph group_reading["Reading and Activity"]
  node_wishlist["Wishlist<br/>[Wishlist.php]"]
  node_purchase["Purchase<br/>[purchase.php]"]
  node_reader_view["Chapter Reader<br/>[reader.php]"]
  node_history["Reading History<br/>[History.php]"]
end

subgraph group_shared["Shared Runtime"]
  node_session["Session Guard<br/>[session.php]"]
  node_layout["Dashboard Layout"]
  node_layout_end["Layout Footer<br/>[dashboard_end.php]"]
  node_links["Shared Links<br/>[Links.php]"]
  node_db_config["Database Connector<br/>[db.php]"]
  node_store[("NovelStore Database<br/>[Reader.sql]")]
end

node_reader(("Reader"))

node_reader -->|"visits"| node_landing
node_landing -->|"queries titles"| node_store
node_landing -->|"links to"| node_auth
node_landing -->|"opens title"| node_detail
node_landing -->|"uses connection"| node_db_config
node_auth -->|"uses connection"| node_db_config
node_auth -->|"redirects to"| node_dashboard
node_dashboard -->|"requires"| node_session
node_dashboard -->|"requires"| node_db_config
node_dashboard -->|"includes"| node_layout
node_dashboard -->|"routes to"| node_home
node_dashboard -->|"routes to"| node_catalog_view
node_dashboard -->|"routes to"| node_wishlist
node_dashboard -->|"routes to"| node_history
node_dashboard -->|"routes to"| node_profile
node_dashboard -->|"includes"| node_layout_end
node_layout -->|"requires"| node_session
node_layout -->|"queries profile"| node_db_config
node_layout -->|"includes"| node_links
node_layout -->|"reads user"| node_store
node_catalog_view -->|"links to"| node_detail
node_wishlist -->|"links to"| node_detail
node_detail -->|"reads and updates"| node_store
node_detail -->|"links to purchase"| node_purchase
node_detail -->|"links to reading"| node_reader_view
node_purchase -->|"requires"| node_session
node_purchase -->|"requires"| node_db_config
node_purchase -->|"uses purchase data"| node_store
node_reader_view -->|"requires"| node_session
node_reader_view -->|"requires"| node_db_config
node_reader_view -->|"uses reading data"| node_store
node_history -->|"reads history"| node_store
node_history -->|"links to continue"| node_reader_view
node_profile -->|"reads account counts"| node_store
node_profile -->|"includes layout"| node_layout

click node_landing "https://github.com/meetx95/novelstore_project/blob/main/index.php"
click node_auth "https://github.com/meetx95/novelstore_project/blob/main/Login_register.php"
click node_dashboard "https://github.com/meetx95/novelstore_project/blob/main/Dashboard.php"
click node_home "https://github.com/meetx95/novelstore_project/blob/main/home.php"
click node_catalog_view "https://github.com/meetx95/novelstore_project/blob/main/Library.php"
click node_detail "https://github.com/meetx95/novelstore_project/blob/main/novel.php"
click node_wishlist "https://github.com/meetx95/novelstore_project/blob/main/Wishlist.php"
click node_purchase "https://github.com/meetx95/novelstore_project/blob/main/purchase.php"
click node_reader_view "https://github.com/meetx95/novelstore_project/blob/main/reader.php"
click node_history "https://github.com/meetx95/novelstore_project/blob/main/History.php"
click node_profile "https://github.com/meetx95/novelstore_project/blob/main/user.php"
click node_session "https://github.com/meetx95/novelstore_project/blob/main/include/session.php"
click node_layout "https://github.com/meetx95/novelstore_project/blob/main/include/dashboard_start.php"
click node_layout_end "https://github.com/meetx95/novelstore_project/blob/main/include/dashboard_end.php"
click node_links "https://github.com/meetx95/novelstore_project/blob/main/include/Links.php"
click node_db_config "https://github.com/meetx95/novelstore_project/blob/main/config/db.php"
click node_store "https://github.com/meetx95/novelstore_project/blob/main/config/Reader.sql"

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_auth,node_dashboard,node_profile toneBlue
class node_home,node_catalog_view,node_detail toneAmber
class node_wishlist,node_purchase,node_reader_view,node_history toneMint
class node_session,node_layout,node_layout_end,node_links,node_db_config,node_store toneRose
class node_reader toneIndigo
```

## Components

### Entry and Accounts

- [Featured Landing](https://github.com/meetx95/novelstore_project/blob/main/index.php): `index.php`
- [Authentication](https://github.com/meetx95/novelstore_project/blob/main/Login_register.php): `Login_register.php`
- [Dashboard Router](https://github.com/meetx95/novelstore_project/blob/main/Dashboard.php): `Dashboard.php`
- [User Profile](https://github.com/meetx95/novelstore_project/blob/main/user.php): `user.php`

### Catalog and Discovery

- [Home Discovery](https://github.com/meetx95/novelstore_project/blob/main/home.php): `home.php`
- [Novel Library](https://github.com/meetx95/novelstore_project/blob/main/Library.php): `Library.php`
- [Novel Detail](https://github.com/meetx95/novelstore_project/blob/main/novel.php): `novel.php`

### Reading and Activity

- [Wishlist](https://github.com/meetx95/novelstore_project/blob/main/Wishlist.php): `Wishlist.php`
- [Purchase](https://github.com/meetx95/novelstore_project/blob/main/purchase.php): `purchase.php`
- [Chapter Reader](https://github.com/meetx95/novelstore_project/blob/main/reader.php): `reader.php`
- [Reading History](https://github.com/meetx95/novelstore_project/blob/main/History.php): `History.php`

### Shared Runtime

- [Session Guard](https://github.com/meetx95/novelstore_project/blob/main/include/session.php): `include/session.php`
- [Dashboard Layout](https://github.com/meetx95/novelstore_project/blob/main/include/dashboard_start.php): `include/dashboard_start.php`
- [Layout Footer](https://github.com/meetx95/novelstore_project/blob/main/include/dashboard_end.php): `include/dashboard_end.php`
- [Shared Links](https://github.com/meetx95/novelstore_project/blob/main/include/Links.php): `include/Links.php`
- [Database Connector](https://github.com/meetx95/novelstore_project/blob/main/config/db.php): `config/db.php`
- [NovelStore Database](https://github.com/meetx95/novelstore_project/blob/main/config/Reader.sql): `config/Reader.sql`

### Other components

- **Reader**

## Connections

- Reader → Featured Landing: visits (evidence: `index.php`)
- Featured Landing → NovelStore Database: queries titles (evidence: `index.php`)
- Featured Landing → Authentication: links to (evidence: `index.php`)
- Featured Landing → Novel Detail: opens title (evidence: `index.php`)
- Featured Landing → Database Connector: uses connection (evidence: `index.php`)
- Authentication → Database Connector: uses connection (evidence: `Login_register.php`)
- Authentication → Dashboard Router: redirects to (evidence: `Login_register.php`)
- Dashboard Router → Session Guard: requires (evidence: `Dashboard.php`)
- Dashboard Router → Database Connector: requires (evidence: `Dashboard.php`)
- Dashboard Router → Dashboard Layout: includes (evidence: `Dashboard.php`)
- Dashboard Router → Home Discovery: routes to (evidence: `Dashboard.php`)
- Dashboard Router → Novel Library: routes to (evidence: `Dashboard.php`)
- Dashboard Router → Wishlist: routes to (evidence: `Dashboard.php`)
- Dashboard Router → Reading History: routes to (evidence: `Dashboard.php`)
- Dashboard Router → User Profile: routes to (evidence: `Dashboard.php`)
- Dashboard Router → Layout Footer: includes (evidence: `Dashboard.php`)
- Dashboard Layout → Session Guard: requires (evidence: `include/dashboard_start.php`)
- Dashboard Layout → Database Connector: queries profile (evidence: `include/dashboard_start.php`)
- Dashboard Layout → Shared Links: includes (evidence: `include/dashboard_start.php`)
- Dashboard Layout → NovelStore Database: reads user (evidence: `include/dashboard_start.php`)
- Novel Library → Novel Detail: links to (evidence: `Library.php`)
- Wishlist → Novel Detail: links to (evidence: `Wishlist.php`)
- Novel Detail → NovelStore Database: reads and updates (evidence: `novel.php`)
- Novel Detail → Purchase: links to purchase (evidence: `novel.php`)
- Novel Detail → Chapter Reader: links to reading (evidence: `novel.php`)
- Purchase → Session Guard: requires (evidence: `purchase.php`)
- Purchase → Database Connector: requires (evidence: `purchase.php`)
- Purchase → NovelStore Database: uses purchase data (evidence: `purchase.php`)
- Chapter Reader → Session Guard: requires (evidence: `reader.php`)
- Chapter Reader → Database Connector: requires (evidence: `reader.php`)
- Chapter Reader → NovelStore Database: uses reading data (evidence: `reader.php`)
- Reading History → NovelStore Database: reads history (evidence: `History.php`)
- Reading History → Chapter Reader: links to continue (evidence: `History.php`)
- User Profile → NovelStore Database: reads account counts (evidence: `user.php`)
- User Profile → Dashboard Layout: includes layout (evidence: `user.php`)
