# chinmoydeb/blog-project architecture

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

- Interactive diagram: https://gitdiagram.com/chinmoydeb/blog-project
- Repository: https://github.com/chinmoydeb/blog-project

## Overview

Blog.com is a lightweight browser-based blogging platform. A visitor opens the homepage, where the client supports Google sign-in, post creation, searching, likes, and author-only deletion; selecting a post opens a separate full-post page. Both client scripts use Firebase Firestore for post data, while the homepage also uses Firebase Authentication. The README documents these capabilities; the graph’s implementation links are limited to the sampled JavaScript excerpts and those documented page responsibilities.

Main entry points: [`script.js`](https://github.com/chinmoydeb/blog-project/blob/main/script.js) (Homepage client), [`index.html`](https://github.com/chinmoydeb/blog-project/blob/main/index.html) (Homepage), [`post.html`](https://github.com/chinmoydeb/blog-project/blob/main/post.html) (Full post page), [`postScript.js`](https://github.com/chinmoydeb/blog-project/blob/main/postScript.js) (Post detail loader)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Browser experience"]
  node_home["Homepage<br/>[index.html]"]
  node_detail_page["Full post page<br/>[post.html]"]
end

subgraph group_actions["Post interactions"]
  node_homepage_client["Homepage client<br/>[script.js]"]
  node_feed_search["Feed and search<br/>[script.js]"]
  node_post_actions["Post actions<br/>[script.js]"]
  node_detail_loader["Post detail loader<br/>[postScript.js]"]
end

subgraph group_services["Firebase services"]
  node_firestore[("Firestore posts")]
  node_google_auth["Google authentication"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_home -->|"uses client"| node_homepage_client
node_homepage_client -->|"authenticates with"| node_google_auth
node_homepage_client -->|"starts feed"| node_feed_search
node_homepage_client -->|"handles actions"| node_post_actions
node_feed_search -->|"listens to posts"| node_firestore
node_post_actions -->|"writes post changes"| node_firestore
node_post_actions -->|"opens post"| node_detail_page
node_detail_page -->|"uses loader"| node_detail_loader
node_detail_loader -->|"reads post"| node_firestore

click node_home "https://github.com/chinmoydeb/blog-project/blob/main/index.html"
click node_homepage_client "https://github.com/chinmoydeb/blog-project/blob/main/script.js"
click node_feed_search "https://github.com/chinmoydeb/blog-project/blob/main/script.js"
click node_post_actions "https://github.com/chinmoydeb/blog-project/blob/main/script.js"
click node_detail_page "https://github.com/chinmoydeb/blog-project/blob/main/post.html"
click node_detail_loader "https://github.com/chinmoydeb/blog-project/blob/main/postScript.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_home,node_detail_page toneBlue
class node_homepage_client,node_feed_search,node_post_actions,node_detail_loader toneAmber
class node_firestore,node_google_auth toneMint
class node_visitor toneIndigo
```

## Components

### Browser experience

- [Homepage](https://github.com/chinmoydeb/blog-project/blob/main/index.html): `index.html`
- [Full post page](https://github.com/chinmoydeb/blog-project/blob/main/post.html): `post.html`

### Post interactions

- [Homepage client](https://github.com/chinmoydeb/blog-project/blob/main/script.js): `script.js`
- [Feed and search](https://github.com/chinmoydeb/blog-project/blob/main/script.js): `script.js`
- [Post actions](https://github.com/chinmoydeb/blog-project/blob/main/script.js): `script.js`
- [Post detail loader](https://github.com/chinmoydeb/blog-project/blob/main/postScript.js): `postScript.js`

### Firebase services

- **Firestore posts**
- **Google authentication**

### Other components

- **Visitor**

## Connections

- Visitor → Homepage: opens (evidence: `README.md`)
- Homepage → Homepage client: uses client (evidence: `README.md`)
- Homepage client → Google authentication: authenticates with (evidence: `script.js`)
- Homepage client → Feed and search: starts feed (evidence: `script.js`)
- Homepage client → Post actions: handles actions (evidence: `script.js`)
- Feed and search → Firestore posts: listens to posts (evidence: `script.js`)
- Post actions → Firestore posts: writes post changes (evidence: `script.js`)
- Post actions → Full post page: opens post (evidence: `script.js`)
- Full post page → Post detail loader: uses loader (evidence: `README.md`)
- Post detail loader → Firestore posts: reads post (evidence: `postScript.js`)
