# chandusenpathi/neosite architecture

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

- Interactive diagram: https://gitdiagram.com/chandusenpathi/neosite
- Repository: https://github.com/chandusenpathi/neosite

## Overview

This is a Next.js agency-style website with informational pages, a product-listing page presented under Blogs, a cart, and placeholder authentication routes. The principal interactive workflow loads products from DummyJSON, lets a visitor add them to the cart, and manages cart quantities and totals through Redux. The root layout supplies shared navigation and footer around page content. Several routes were not excerpted, so their behavior and connections are not inferred.

Main entry points: [`src/app/layout.tsx`](https://github.com/chandusenpathi/neosite/blob/main/src/app/layout.tsx) (Root layout), [`src/app/store.tsx`](https://github.com/chandusenpathi/neosite/blob/main/src/app/store.tsx) (Redux cart state), [`src/app/blog/page.tsx`](https://github.com/chandusenpathi/neosite/blob/main/src/app/blog/page.tsx) (Product listing), [`src/components/navbar/Navbar.tsx`](https://github.com/chandusenpathi/neosite/blob/main/src/components/navbar/Navbar.tsx) (Navigation and cart UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Shared site shell"]
  node_root_layout["Root layout<br/>[layout.tsx]"]
  node_navbar["Navigation and cart UI<br/>[Navbar.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
end

subgraph group_pages["Site pages"]
  node_home["Home page<br/>[page.tsx]"]
  node_about["About page<br/>[page.tsx]"]
  node_blog_detail["Blog detail route<br/>[page.tsx]"]
  node_contact["Contact page<br/>[page.tsx]"]
  node_login["Login page<br/>[page.tsx]"]
  node_register["Registration page<br/>[page.tsx]"]
  node_forgot_password["Password recovery<br/>[page.tsx]"]
end

subgraph group_commerce["Product and cart"]
  node_blog["Product listing<br/>[page.tsx]"]
  node_cart_store[("Redux cart state<br/>[store.tsx]")]
end

node_visitor(("Visitor"))
node_product_api["DummyJSON products API"]

node_root_layout -->|"renders"| node_navbar
node_root_layout -->|"renders"| node_footer
node_root_layout -->|"provides state"| node_cart_store
node_navbar -->|"reads and dispatches"| node_cart_store
node_blog -->|"fetches products"| node_product_api
node_blog -->|"dispatches add"| node_cart_store
node_visitor -.->|"opens site"| node_root_layout

click node_root_layout "https://github.com/chandusenpathi/neosite/blob/main/src/app/layout.tsx"
click node_navbar "https://github.com/chandusenpathi/neosite/blob/main/src/components/navbar/Navbar.tsx"
click node_footer "https://github.com/chandusenpathi/neosite/blob/main/src/components/Footer.tsx"
click node_home "https://github.com/chandusenpathi/neosite/blob/main/src/app/page.tsx"
click node_about "https://github.com/chandusenpathi/neosite/blob/main/src/app/about/page.tsx"
click node_blog "https://github.com/chandusenpathi/neosite/blob/main/src/app/blog/page.tsx"
click node_blog_detail "https://github.com/chandusenpathi/neosite/blob/main/src/app/blog/%5Bslug%5D/page.tsx"
click node_contact "https://github.com/chandusenpathi/neosite/blob/main/src/app/contact/page.tsx"
click node_login "https://github.com/chandusenpathi/neosite/blob/main/src/app/(auth)/login/page.tsx"
click node_register "https://github.com/chandusenpathi/neosite/blob/main/src/app/(auth)/register/page.tsx"
click node_forgot_password "https://github.com/chandusenpathi/neosite/blob/main/src/app/(auth)/forgot-password/page.tsx"
click node_cart_store "https://github.com/chandusenpathi/neosite/blob/main/src/app/store.tsx"

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_root_layout,node_navbar,node_footer toneBlue
class node_home,node_about,node_blog_detail,node_contact,node_login,node_register,node_forgot_password toneAmber
class node_blog,node_cart_store,node_product_api toneMint
class node_visitor toneIndigo
```

## Components

### Shared site shell

- [Root layout](https://github.com/chandusenpathi/neosite/blob/main/src/app/layout.tsx): `src/app/layout.tsx`
- [Navigation and cart UI](https://github.com/chandusenpathi/neosite/blob/main/src/components/navbar/Navbar.tsx): `src/components/navbar/Navbar.tsx`
- [Footer](https://github.com/chandusenpathi/neosite/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`

### Site pages

- [Home page](https://github.com/chandusenpathi/neosite/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [About page](https://github.com/chandusenpathi/neosite/blob/main/src/app/about/page.tsx): `src/app/about/page.tsx`
- [Blog detail route](https://github.com/chandusenpathi/neosite/blob/main/src/app/blog/%5Bslug%5D/page.tsx): `src/app/blog/[slug]/page.tsx`
- [Contact page](https://github.com/chandusenpathi/neosite/blob/main/src/app/contact/page.tsx): `src/app/contact/page.tsx`
- [Login page](https://github.com/chandusenpathi/neosite/blob/main/src/app/(auth)/login/page.tsx): `src/app/(auth)/login/page.tsx`
- [Registration page](https://github.com/chandusenpathi/neosite/blob/main/src/app/(auth)/register/page.tsx): `src/app/(auth)/register/page.tsx`
- [Password recovery](https://github.com/chandusenpathi/neosite/blob/main/src/app/(auth)/forgot-password/page.tsx): `src/app/(auth)/forgot-password/page.tsx`

### Product and cart

- [Product listing](https://github.com/chandusenpathi/neosite/blob/main/src/app/blog/page.tsx): `src/app/blog/page.tsx`
- [Redux cart state](https://github.com/chandusenpathi/neosite/blob/main/src/app/store.tsx): `src/app/store.tsx`

### Other components

- **Visitor**
- **DummyJSON products API**

## Connections

- Root layout → Navigation and cart UI: renders (evidence: `src/app/layout.tsx`)
- Root layout → Footer: renders (evidence: `src/app/layout.tsx`)
- Root layout → Redux cart state: provides state (evidence: `src/app/layout.tsx`)
- Navigation and cart UI → Redux cart state: reads and dispatches (evidence: `src/components/navbar/Navbar.tsx`)
- Product listing → DummyJSON products API: fetches products (evidence: `src/app/blog/page.tsx`)
- Product listing → Redux cart state: dispatches add (evidence: `src/app/blog/page.tsx`)
- Visitor → Root layout: opens site
