# ashutosh-deorukhkar/bridgetalk architecture

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

- Interactive diagram: https://gitdiagram.com/ashutosh-deorukhkar/bridgetalk
- Repository: https://github.com/ashutosh-deorukhkar/bridgetalk

## Overview

BridgeTalk is a prototype web companion for communication practice and caregiver-facing progress views. The principal workflow is login, route into the conversation screen, send a message to the backend, and receive an AI-generated reply. The dashboard currently displays sample activities and profile content rather than computed analytics. README capabilities such as adaptive learning, clinician customization, and family guidance are product goals, but their implementation is not evidenced in the sampled source. The configured PostgreSQL pool has no demonstrated caller.】【：】【“】【graph":{"groups":[{"id":"web","label":"Web application"},{"id":"conversation","label":"Conversation service"},{"id":"insights","label":"Progress views"},{"id":"integrations","label":"External services"}],"nodes":[{"id":"user","label":"User","groupId":null,"path":null,"shape":"circle"},{"id":"login","label":"Login form","groupId":"web","path":"client/src/pages/Login.jsx","shape":"box"},{"id":"router","label":"Route controller","groupId":"web","path":"client/src/App.jsx","shape":"box"},{"id":"shell","label":"Application shell","groupId":"web","path":"client/src/components/Layout.jsx","shape":"box"},{"id":"side-nav","label":"Side navigation","groupId":"web","path":"client/src/components/SideNav.jsx","shape":"box"},{"id":"top-nav","label":"Top navigation","groupId":"web","path":"client/src/components/TopNav.jsx","shape":"box"},{"id":"chat-ui","label":"Conversation UI","groupId":"conversation","path":"client/src/pages/Conversation.jsx","shape":"box"},{"id":"chat-api","label":"Chat API","groupId":"conversation","path":"server/index.js","shape":"box"},{"id":"llm","label":"OpenAI model","groupId":"integrations","path":null,"shape":"hexagon"},{"id":"dashboard","label":"Dashboard view","groupId":"insights","path":"client/src/pages/Dashboard.jsx","shape":"box"},{"id":"db-pool","label":"PostgreSQL pool","groupId":"integrations","path":"server/db/database.js","shape":"database"}],"edges":[{"from":"user","to":"login","label":"enters credentials","style":"solid","evidencePath":"client/src/pages/Login.jsx"},{"from":"login","to":"router","label":"signals login","style":"solid","evidencePath":"client/src/App.jsx"},{"from":"router","to":"shell","label":"renders protected routes","style":"solid","evidencePath":"client/src/App.jsx"},{"from":"router","to":"login","label":"renders login route","style":"solid","evidencePath":"client/src/App.jsx"},{"from":"router","to":"dashboard","label":"routes to","style":"solid","evidencePath":"client/src/App.jsx"},{"from":"router","to":"chat-ui","label":"routes to","style":"solid","evidencePath":"client/src/App.jsx"},{"from":"shell","to":"side-nav","label":"renders","style":"solid","evidencePath":"client/src/components/Layout.jsx"},{"from":"shell","to":"top-nav","label":"renders","style":"solid","evidencePath":"client/src/components/Layout.jsx"},{"from":"user","to":"chat-ui","label":"composes message","style":"solid","evidencePath":"client/src/pages/Conversation.jsx"},{"from":"chat-ui","to":"chat-api","label":"POSTs message","style":"solid","evidencePath":"client/src/pages/Conversation.jsx"},{"from":"chat-api","to":"llm","label":"requests completion","style":"solid","evidencePath":"server/index.js"},{"from":"chat-api","to":"chat-ui","label":"returns reply","style":"solid","evidencePath":"client/src/pages/Conversation.jsx"}]}}}

Main entry points: [`client/src/App.jsx`](https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/client/src/App.jsx) (Route controller), [`client/src/pages/Conversation.jsx`](https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/client/src/pages/Conversation.jsx) (Conversation UI), [`client/src/components/Layout.jsx`](https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/client/src/components/Layout.jsx) (Application shell), [`server/index.js`](https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/server/index.js) (Chat API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_login["Login form<br/>[Login.jsx]"]
  node_router["Route controller<br/>[App.jsx]"]
  node_shell["Application shell<br/>[Layout.jsx]"]
  node_side["Side navigation<br/>[SideNav.jsx]"]
  node_top["Top navigation<br/>[TopNav.jsx]"]
end

subgraph group_conversation["Conversation service"]
  node_conversation["Conversation UI<br/>[Conversation.jsx]"]
  node_api["Chat API<br/>[index.js]"]
end

subgraph group_insights["Progress views"]
  node_dashboard["Dashboard view<br/>[Dashboard.jsx]"]
end

subgraph group_integrations["External services"]
  node_llm{{"OpenAI model"}}
  node_pool[("PostgreSQL pool<br/>[database.js]")]
end

node_user(("User"))

node_user -->|"enters credentials"| node_login
node_login -->|"signals login"| node_router
node_router -->|"renders protected routes"| node_shell
node_router -->|"routes to"| node_login
node_router -->|"routes to"| node_dashboard
node_router -->|"routes to"| node_conversation
node_shell -->|"renders"| node_side
node_shell -->|"renders"| node_top
node_user -->|"composes message"| node_conversation
node_conversation -->|"POSTs message"| node_api
node_api -->|"requests completion"| node_llm
node_api -->|"returns reply"| node_conversation

click node_login "https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/client/src/pages/Login.jsx"
click node_router "https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/client/src/App.jsx"
click node_shell "https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/client/src/components/Layout.jsx"
click node_side "https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/client/src/components/SideNav.jsx"
click node_top "https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/client/src/components/TopNav.jsx"
click node_conversation "https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/client/src/pages/Conversation.jsx"
click node_api "https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/server/index.js"
click node_dashboard "https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/client/src/pages/Dashboard.jsx"
click node_pool "https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/server/db/database.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_login,node_router,node_shell,node_side,node_top,node_user toneBlue
class node_conversation,node_api toneAmber
class node_dashboard toneMint
class node_llm,node_pool toneRose
```

## Components

### Web application

- [Login form](https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/client/src/pages/Login.jsx): `client/src/pages/Login.jsx`
- [Route controller](https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/client/src/App.jsx): `client/src/App.jsx`
- [Application shell](https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/client/src/components/Layout.jsx): `client/src/components/Layout.jsx`
- [Side navigation](https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/client/src/components/SideNav.jsx): `client/src/components/SideNav.jsx`
- [Top navigation](https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/client/src/components/TopNav.jsx): `client/src/components/TopNav.jsx`

### Conversation service

- [Conversation UI](https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/client/src/pages/Conversation.jsx): `client/src/pages/Conversation.jsx`
- [Chat API](https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/server/index.js): `server/index.js`

### Progress views

- [Dashboard view](https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/client/src/pages/Dashboard.jsx): `client/src/pages/Dashboard.jsx`

### External services

- **OpenAI model**
- [PostgreSQL pool](https://github.com/ashutosh-deorukhkar/bridgetalk/blob/master/server/db/database.js): `server/db/database.js`

### Other components

- **User**

## Connections

- User → Login form: enters credentials (evidence: `client/src/pages/Login.jsx`)
- Login form → Route controller: signals login (evidence: `client/src/App.jsx`)
- Route controller → Application shell: renders protected routes (evidence: `client/src/App.jsx`)
- Route controller → Login form: routes to (evidence: `client/src/App.jsx`)
- Route controller → Dashboard view: routes to (evidence: `client/src/App.jsx`)
- Route controller → Conversation UI: routes to (evidence: `client/src/App.jsx`)
- Application shell → Side navigation: renders (evidence: `client/src/components/Layout.jsx`)
- Application shell → Top navigation: renders (evidence: `client/src/components/Layout.jsx`)
- User → Conversation UI: composes message (evidence: `client/src/pages/Conversation.jsx`)
- Conversation UI → Chat API: POSTs message (evidence: `client/src/pages/Conversation.jsx`)
- Chat API → OpenAI model: requests completion (evidence: `server/index.js`)
- Chat API → Conversation UI: returns reply (evidence: `client/src/pages/Conversation.jsx`)
