# karthi-as-dev/blogging-website architecture

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

- Interactive diagram: https://gitdiagram.com/karthi-as-dev/blogging-website
- Repository: https://github.com/karthi-as-dev/blogging-website

## Overview

Inkwell is a full-stack blogging and social publishing platform. Readers browse feeds, explore and search posts, then open articles; authors authenticate, write or edit drafts, publish, and manage their work. Profiles, comments, likes, bookmarks, follows, notifications, and administration extend that core workflow. The graph follows the documented React-to-Express product split and sampled backend calls; several frontend page-to-service and backend route-to-controller links are only documented or indexed, so uncertain connections are dashed.

Main entry points: [`frontend/src/App.jsx`](https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/App.jsx) (Route experience), [`backend/server.js`](https://github.com/karthi-as-dev/blogging-website/blob/main/backend/server.js) (Express API host), [`backend/controllers/blogController.js`](https://github.com/karthi-as-dev/blogging-website/blob/main/backend/controllers/blogController.js) (Blog operations), [`backend/models/User.js`](https://github.com/karthi-as-dev/blogging-website/blob/main/backend/models/User.js) (User records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Web experience"]
  node_app["Route experience<br/>[App.jsx]"]
  node_home["Feed and explore<br/>[HomePage.jsx]"]
  node_article["Article view<br/>[BlogDetailPage.jsx]"]
  node_editor["Blog editor<br/>[BlogEditor.jsx]"]
  node_dashboard["Author dashboard<br/>[DashboardPage.jsx]"]
  node_admin["Admin panel<br/>[AdminPage.jsx]"]
  node_api["API client<br/>[api.js]"]
  node_spinner["Loading indicator<br/>[LoadingSpinner.jsx]"]
end

subgraph group_identity["Identity and profiles"]
  node_authstate["Auth context<br/>[AuthContext.jsx]"]
  node_authpages["Sign in and register<br/>[LoginPage.jsx]"]
  node_profiles["Profiles and settings<br/>[ProfilePage.jsx]"]
  node_authcontroller["Authentication logic<br/>[authController.js]"]
  node_users["User profiles logic<br/>[userController.js]"]
end

subgraph group_publishing["Publishing and discovery"]
  node_search["Global search<br/>[SearchPage.jsx]"]
  node_blogs["Blog operations<br/>[blogController.js]"]
end

subgraph group_social["Social engagement"]
  node_bookmarks["Bookmarks page<br/>[BookmarksPage.jsx]"]
  node_notifications["Notifications page"]
  node_comments["Comment operations"]
  node_follows["Follow operations"]
  node_notificationhelper["Notification creation"]
end

subgraph group_platform["API and persistence"]
  node_server["Express API host<br/>[server.js]"]
  node_adminlogic["Administration logic<br/>[adminController.js]"]
  node_userstore[("User records<br/>[User.js]")]
  node_blogstore[("Blog records<br/>[Blog.js]")]
  node_commentstore[("Comment records<br/>[Comment.js]")]
  node_followstore[("Follow records<br/>[Follow.js]")]
  node_notificationstore[("Notification records<br/>[Notification.js]")]
  node_cloudinary[("Cloudinary media<br/>[cloudinary.js]")]
end

node_reader(("Reader / author"))

node_reader -->|"uses"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_article
node_app -->|"routes to"| node_editor
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_admin
node_app -->|"routes to"| node_authpages
node_app -->|"checks session"| node_authstate
node_app -->|"renders"| node_spinner
node_app -->|"routes to"| node_profiles
node_app -->|"routes to"| node_search
node_app -->|"routes to"| node_bookmarks
node_app -->|"routes to"| node_notifications
node_authstate -->|"uses"| node_api
node_reader -.->|"requests"| node_api
node_api -.->|"calls API"| node_server
node_server -->|"mounts auth routes"| node_authcontroller
node_server -->|"mounts user routes"| node_users
node_server -->|"mounts blog routes"| node_blogs
node_server -->|"mounts comment routes"| node_comments
node_server -->|"mounts follow routes"| node_follows
node_server -->|"mounts admin routes"| node_adminlogic
node_authcontroller -->|"reads and writes"| node_userstore
node_users -->|"reads and writes"| node_userstore
node_users -->|"reads blogs"| node_blogstore
node_users -->|"reads follows"| node_followstore
node_blogs -->|"reads and writes"| node_blogstore
node_blogs -->|"updates counts"| node_userstore
node_blogs -->|"finds followers"| node_followstore
node_blogs -->|"creates alerts"| node_notificationhelper
node_blogs -->|"uses uploads"| node_cloudinary
node_comments -->|"reads and writes"| node_commentstore
node_comments -->|"updates blog"| node_blogstore
node_comments -->|"creates alerts"| node_notificationhelper
node_follows -->|"reads and writes"| node_followstore
node_follows -->|"updates counts"| node_userstore
node_follows -->|"creates alerts"| node_notificationhelper
node_notificationhelper -->|"creates records"| node_notificationstore
node_adminlogic -->|"manages users"| node_userstore
node_adminlogic -->|"manages posts"| node_blogstore
node_adminlogic -->|"manages comments"| node_commentstore
node_editor -.->|"uploads images"| node_cloudinary

click node_app "https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/App.jsx"
click node_home "https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/pages/HomePage.jsx"
click node_article "https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/pages/BlogDetailPage.jsx"
click node_editor "https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/components/BlogEditor.jsx"
click node_dashboard "https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/pages/DashboardPage.jsx"
click node_admin "https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/pages/AdminPage.jsx"
click node_authstate "https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/context/AuthContext.jsx"
click node_authpages "https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/pages/LoginPage.jsx"
click node_profiles "https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/pages/ProfilePage.jsx"
click node_search "https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/pages/SearchPage.jsx"
click node_bookmarks "https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/pages/BookmarksPage.jsx"
click node_notifications "https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/pages/NotificationsPage.jsx"
click node_api "https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/services/api.js"
click node_server "https://github.com/karthi-as-dev/blogging-website/blob/main/backend/server.js"
click node_authcontroller "https://github.com/karthi-as-dev/blogging-website/blob/main/backend/controllers/authController.js"
click node_users "https://github.com/karthi-as-dev/blogging-website/blob/main/backend/controllers/userController.js"
click node_blogs "https://github.com/karthi-as-dev/blogging-website/blob/main/backend/controllers/blogController.js"
click node_comments "https://github.com/karthi-as-dev/blogging-website/blob/main/backend/controllers/commentController.js"
click node_follows "https://github.com/karthi-as-dev/blogging-website/blob/main/backend/controllers/followController.js"
click node_adminlogic "https://github.com/karthi-as-dev/blogging-website/blob/main/backend/controllers/adminController.js"
click node_notificationhelper "https://github.com/karthi-as-dev/blogging-website/blob/main/backend/utils/notificationHelper.js"
click node_userstore "https://github.com/karthi-as-dev/blogging-website/blob/main/backend/models/User.js"
click node_blogstore "https://github.com/karthi-as-dev/blogging-website/blob/main/backend/models/Blog.js"
click node_commentstore "https://github.com/karthi-as-dev/blogging-website/blob/main/backend/models/Comment.js"
click node_followstore "https://github.com/karthi-as-dev/blogging-website/blob/main/backend/models/Follow.js"
click node_notificationstore "https://github.com/karthi-as-dev/blogging-website/blob/main/backend/models/Notification.js"
click node_cloudinary "https://github.com/karthi-as-dev/blogging-website/blob/main/backend/config/cloudinary.js"
click node_spinner "https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/components/ui/LoadingSpinner.jsx"

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_app,node_home,node_article,node_editor,node_dashboard,node_admin,node_api,node_spinner toneBlue
class node_authstate,node_authpages,node_profiles,node_authcontroller,node_users toneAmber
class node_search,node_blogs toneMint
class node_bookmarks,node_notifications,node_comments,node_follows,node_notificationhelper toneRose
class node_server,node_adminlogic,node_userstore,node_blogstore,node_commentstore,node_followstore,node_notificationstore,node_cloudinary,node_reader toneIndigo
```

## Components

### Web experience

- [Route experience](https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Feed and explore](https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/pages/HomePage.jsx): `frontend/src/pages/HomePage.jsx`
- [Article view](https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/pages/BlogDetailPage.jsx): `frontend/src/pages/BlogDetailPage.jsx`
- [Blog editor](https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/components/BlogEditor.jsx): `frontend/src/components/BlogEditor.jsx`
- [Author dashboard](https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/pages/DashboardPage.jsx): `frontend/src/pages/DashboardPage.jsx`
- [Admin panel](https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/pages/AdminPage.jsx): `frontend/src/pages/AdminPage.jsx`
- [API client](https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/services/api.js): `frontend/src/services/api.js`
- [Loading indicator](https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/components/ui/LoadingSpinner.jsx): `frontend/src/components/ui/LoadingSpinner.jsx`

### Identity and profiles

- [Auth context](https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/context/AuthContext.jsx): `frontend/src/context/AuthContext.jsx`
- [Sign in and register](https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/pages/LoginPage.jsx): `frontend/src/pages/LoginPage.jsx`
- [Profiles and settings](https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/pages/ProfilePage.jsx): `frontend/src/pages/ProfilePage.jsx`
- [Authentication logic](https://github.com/karthi-as-dev/blogging-website/blob/main/backend/controllers/authController.js): `backend/controllers/authController.js`
- [User profiles logic](https://github.com/karthi-as-dev/blogging-website/blob/main/backend/controllers/userController.js): `backend/controllers/userController.js`

### Publishing and discovery

- [Global search](https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/pages/SearchPage.jsx): `frontend/src/pages/SearchPage.jsx`
- [Blog operations](https://github.com/karthi-as-dev/blogging-website/blob/main/backend/controllers/blogController.js): `backend/controllers/blogController.js`

### Social engagement

- [Bookmarks page](https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/pages/BookmarksPage.jsx): `frontend/src/pages/BookmarksPage.jsx`
- [Notifications page](https://github.com/karthi-as-dev/blogging-website/blob/main/frontend/src/pages/NotificationsPage.jsx): `frontend/src/pages/NotificationsPage.jsx`
- [Comment operations](https://github.com/karthi-as-dev/blogging-website/blob/main/backend/controllers/commentController.js): `backend/controllers/commentController.js`
- [Follow operations](https://github.com/karthi-as-dev/blogging-website/blob/main/backend/controllers/followController.js): `backend/controllers/followController.js`
- [Notification creation](https://github.com/karthi-as-dev/blogging-website/blob/main/backend/utils/notificationHelper.js): `backend/utils/notificationHelper.js`

### API and persistence

- [Express API host](https://github.com/karthi-as-dev/blogging-website/blob/main/backend/server.js): `backend/server.js`
- [Administration logic](https://github.com/karthi-as-dev/blogging-website/blob/main/backend/controllers/adminController.js): `backend/controllers/adminController.js`
- [User records](https://github.com/karthi-as-dev/blogging-website/blob/main/backend/models/User.js): `backend/models/User.js`
- [Blog records](https://github.com/karthi-as-dev/blogging-website/blob/main/backend/models/Blog.js): `backend/models/Blog.js`
- [Comment records](https://github.com/karthi-as-dev/blogging-website/blob/main/backend/models/Comment.js): `backend/models/Comment.js`
- [Follow records](https://github.com/karthi-as-dev/blogging-website/blob/main/backend/models/Follow.js): `backend/models/Follow.js`
- [Notification records](https://github.com/karthi-as-dev/blogging-website/blob/main/backend/models/Notification.js): `backend/models/Notification.js`
- [Cloudinary media](https://github.com/karthi-as-dev/blogging-website/blob/main/backend/config/cloudinary.js): `backend/config/cloudinary.js`

### Other components

- **Reader / author**

## Connections

- Reader / author → Route experience: uses (evidence: `README.md`)
- Route experience → Feed and explore: routes to (evidence: `frontend/src/App.jsx`)
- Route experience → Article view: routes to (evidence: `frontend/src/App.jsx`)
- Route experience → Blog editor: routes to (evidence: `frontend/src/App.jsx`)
- Route experience → Author dashboard: routes to (evidence: `frontend/src/App.jsx`)
- Route experience → Admin panel: routes to (evidence: `frontend/src/App.jsx`)
- Route experience → Sign in and register: routes to (evidence: `frontend/src/App.jsx`)
- Route experience → Auth context: checks session (evidence: `frontend/src/App.jsx`)
- Route experience → Loading indicator: renders (evidence: `frontend/src/App.jsx`)
- Route experience → Profiles and settings: routes to (evidence: `frontend/src/App.jsx`)
- Route experience → Global search: routes to (evidence: `frontend/src/App.jsx`)
- Route experience → Bookmarks page: routes to (evidence: `frontend/src/App.jsx`)
- Route experience → Notifications page: routes to (evidence: `frontend/src/App.jsx`)
- Auth context → API client: uses (evidence: `frontend/src/context/AuthContext.jsx`)
- Reader / author → API client: requests
- API client → Express API host: calls API
- Express API host → Authentication logic: mounts auth routes (evidence: `backend/server.js`)
- Express API host → User profiles logic: mounts user routes (evidence: `backend/server.js`)
- Express API host → Blog operations: mounts blog routes (evidence: `backend/server.js`)
- Express API host → Comment operations: mounts comment routes (evidence: `backend/server.js`)
- Express API host → Follow operations: mounts follow routes (evidence: `backend/server.js`)
- Express API host → Administration logic: mounts admin routes (evidence: `backend/server.js`)
- Authentication logic → User records: reads and writes (evidence: `backend/controllers/authController.js`)
- User profiles logic → User records: reads and writes (evidence: `backend/controllers/userController.js`)
- User profiles logic → Blog records: reads blogs (evidence: `backend/controllers/userController.js`)
- User profiles logic → Follow records: reads follows (evidence: `backend/controllers/userController.js`)
- Blog operations → Blog records: reads and writes (evidence: `backend/controllers/blogController.js`)
- Blog operations → User records: updates counts (evidence: `backend/controllers/blogController.js`)
- Blog operations → Follow records: finds followers (evidence: `backend/controllers/blogController.js`)
- Blog operations → Notification creation: creates alerts (evidence: `backend/controllers/blogController.js`)
- Blog operations → Cloudinary media: uses uploads (evidence: `backend/controllers/blogController.js`)
- Comment operations → Comment records: reads and writes (evidence: `backend/controllers/commentController.js`)
- Comment operations → Blog records: updates blog (evidence: `backend/controllers/commentController.js`)
- Comment operations → Notification creation: creates alerts (evidence: `backend/controllers/commentController.js`)
- Follow operations → Follow records: reads and writes (evidence: `backend/controllers/followController.js`)
- Follow operations → User records: updates counts (evidence: `backend/controllers/followController.js`)
- Follow operations → Notification creation: creates alerts (evidence: `backend/controllers/followController.js`)
- Notification creation → Notification records: creates records (evidence: `backend/utils/notificationHelper.js`)
- Administration logic → User records: manages users (evidence: `backend/controllers/adminController.js`)
- Administration logic → Blog records: manages posts (evidence: `backend/controllers/adminController.js`)
- Administration logic → Comment records: manages comments (evidence: `backend/controllers/adminController.js`)
- Blog editor → Cloudinary media: uploads images (evidence: `README.md`)
