# adriankiv/real-time-collaborative-kanban architecture

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

- Interactive diagram: https://gitdiagram.com/adriankiv/real-time-collaborative-kanban
- Repository: https://github.com/adriankiv/real-time-collaborative-kanban

## Overview

This is a collaborative Kanban workspace: users authenticate, browse or create boards, then manage columns and tasks; REST mutations persist state and board-scoped WebSocket events keep collaborators current. The graph includes the documented Go handler/service/repository layers and the sampled React routes, board interactions, authentication, and event hook. Backend implementation excerpts were not supplied, so internal backend links reflect README-level architecture rather than inspected calls; unsampled links are omitted where the relationship is not documented.

Main entry points: [`frontend/src/pages/BoardView.jsx`](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/pages/BoardView.jsx) (Board workspace), [`frontend/src/App.jsx`](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/App.jsx) (Route shell), [`frontend/src/context/AuthContext.jsx`](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/context/AuthContext.jsx) (Session auth), [`frontend/src/api/axios.js`](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/api/axios.js) (HTTP client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["React client"]
  node_app["Route shell<br/>[App.jsx]"]
  node_auth["Session auth<br/>[AuthContext.jsx]"]
  node_api_client["HTTP client<br/>[axios.js]"]
  node_login["Login and register<br/>[Login.jsx]"]
  node_register["Registration<br/>[Register.jsx]"]
  node_dashboard["Board dashboard<br/>[Dashboard.jsx]"]
  node_board_view["Board workspace<br/>[BoardView.jsx]"]
  node_board_settings["Board settings"]
  node_member_invite["Member invitations"]
  node_column_ui["Kanban columns<br/>[KanbanColumn.jsx]"]
  node_task_card["Task cards<br/>[TaskCard.jsx]"]
  node_task_modal["Task editing<br/>[TaskModal.jsx]"]
  node_ws_hook["Board event hook"]
end

subgraph group_api["REST services"]
  node_api_server["Go API<br/>[main.go]"]
  node_http_handlers["HTTP handlers"]
  node_domain_services["Domain services"]
  node_repositories["Data repositories"]
  node_auth_tokens["JWT utilities<br/>[jwt.go]"]
end

subgraph group_realtime["Realtime collaboration"]
  node_ws_handler["WebSocket handler<br/>[handler.go]"]
  node_ws_hub["Board event hub<br/>[hub.go]"]
end

subgraph group_data["Persistence"]
  node_postgres[("PostgreSQL")]
  node_models["GORM models"]
end

node_user(("Workspace user"))

node_user -->|"uses"| node_app
node_app -->|"provides session"| node_auth
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_register
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_board_view
node_auth -->|"requests auth"| node_api_client
node_login -->|"signs in"| node_auth
node_register -->|"creates account"| node_auth
node_dashboard -->|"loads boards"| node_api_client
node_board_view -->|"mutates board"| node_api_client
node_board_view -->|"opens settings"| node_board_settings
node_board_view -->|"opens invitations"| node_member_invite
node_board_view -->|"renders columns"| node_column_ui
node_column_ui -->|"renders tasks"| node_task_card
node_board_view -->|"edits tasks"| node_task_modal
node_board_view -->|"subscribes events"| node_ws_hook
node_api_client -->|"HTTP with JWT"| node_api_server
node_ws_hook -->|"WebSocket with JWT"| node_ws_handler
node_api_server -->|"serves routes"| node_http_handlers
node_http_handlers -->|"invokes services"| node_domain_services
node_domain_services -->|"checks then changes"| node_repositories
node_repositories -->|"persists through GORM"| node_postgres
node_models -->|"defines migrations"| node_postgres
node_ws_handler -->|"registers clients"| node_ws_hub
node_domain_services -->|"broadcasts mutations"| node_ws_hub
node_api_server -.->|"validates JWT"| node_auth_tokens

click node_app "https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/App.jsx"
click node_auth "https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/context/AuthContext.jsx"
click node_api_client "https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/api/axios.js"
click node_login "https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/pages/Login.jsx"
click node_register "https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/pages/Register.jsx"
click node_dashboard "https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/pages/Dashboard.jsx"
click node_board_view "https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/pages/BoardView.jsx"
click node_board_settings "https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/components/BoardSettingsModal.jsx"
click node_member_invite "https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/components/InviteMemberModal.jsx"
click node_column_ui "https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/components/KanbanColumn.jsx"
click node_task_card "https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/components/TaskCard.jsx"
click node_task_modal "https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/components/TaskModal.jsx"
click node_ws_hook "https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/hooks/useBoardWebSocket.js"
click node_api_server "https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/backend/cmd/api/main.go"
click node_http_handlers "https://github.com/adriankiv/real-time-collaborative-kanban/tree/main/backend/internal/handler"
click node_domain_services "https://github.com/adriankiv/real-time-collaborative-kanban/tree/main/backend/internal/service"
click node_repositories "https://github.com/adriankiv/real-time-collaborative-kanban/tree/main/backend/internal/repository"
click node_auth_tokens "https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/backend/internal/utils/jwt.go"
click node_ws_handler "https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/backend/internal/ws/handler.go"
click node_ws_hub "https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/backend/internal/ws/hub.go"
click node_models "https://github.com/adriankiv/real-time-collaborative-kanban/tree/main/backend/internal/models"

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_auth,node_api_client,node_login,node_register,node_dashboard,node_board_view,node_board_settings,node_member_invite,node_column_ui,node_task_card,node_task_modal,node_ws_hook,node_user toneBlue
class node_api_server,node_http_handlers,node_domain_services,node_repositories,node_auth_tokens toneAmber
class node_ws_handler,node_ws_hub toneMint
class node_postgres,node_models toneRose
```

## Components

### React client

- [Route shell](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Session auth](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/context/AuthContext.jsx): `frontend/src/context/AuthContext.jsx`
- [HTTP client](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/api/axios.js): `frontend/src/api/axios.js`
- [Login and register](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/pages/Login.jsx): `frontend/src/pages/Login.jsx`
- [Registration](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/pages/Register.jsx): `frontend/src/pages/Register.jsx`
- [Board dashboard](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/pages/Dashboard.jsx): `frontend/src/pages/Dashboard.jsx`
- [Board workspace](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/pages/BoardView.jsx): `frontend/src/pages/BoardView.jsx`
- [Board settings](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/components/BoardSettingsModal.jsx): `frontend/src/components/BoardSettingsModal.jsx`
- [Member invitations](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/components/InviteMemberModal.jsx): `frontend/src/components/InviteMemberModal.jsx`
- [Kanban columns](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/components/KanbanColumn.jsx): `frontend/src/components/KanbanColumn.jsx`
- [Task cards](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/components/TaskCard.jsx): `frontend/src/components/TaskCard.jsx`
- [Task editing](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/components/TaskModal.jsx): `frontend/src/components/TaskModal.jsx`
- [Board event hook](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/frontend/src/hooks/useBoardWebSocket.js): `frontend/src/hooks/useBoardWebSocket.js`

### REST services

- [Go API](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/backend/cmd/api/main.go): `backend/cmd/api/main.go`
- [HTTP handlers](https://github.com/adriankiv/real-time-collaborative-kanban/tree/main/backend/internal/handler): `backend/internal/handler`
- [Domain services](https://github.com/adriankiv/real-time-collaborative-kanban/tree/main/backend/internal/service): `backend/internal/service`
- [Data repositories](https://github.com/adriankiv/real-time-collaborative-kanban/tree/main/backend/internal/repository): `backend/internal/repository`
- [JWT utilities](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/backend/internal/utils/jwt.go): `backend/internal/utils/jwt.go`

### Realtime collaboration

- [WebSocket handler](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/backend/internal/ws/handler.go): `backend/internal/ws/handler.go`
- [Board event hub](https://github.com/adriankiv/real-time-collaborative-kanban/blob/main/backend/internal/ws/hub.go): `backend/internal/ws/hub.go`

### Persistence

- **PostgreSQL**
- [GORM models](https://github.com/adriankiv/real-time-collaborative-kanban/tree/main/backend/internal/models): `backend/internal/models`

### Other components

- **Workspace user**

## Connections

- Workspace user → Route shell: uses (evidence: `README.md`)
- Route shell → Session auth: provides session (evidence: `frontend/src/App.jsx`)
- Route shell → Login and register: routes to (evidence: `frontend/src/App.jsx`)
- Route shell → Registration: routes to (evidence: `frontend/src/App.jsx`)
- Route shell → Board dashboard: routes to (evidence: `frontend/src/App.jsx`)
- Route shell → Board workspace: routes to (evidence: `frontend/src/App.jsx`)
- Session auth → HTTP client: requests auth (evidence: `frontend/src/context/AuthContext.jsx`)
- Login and register → Session auth: signs in (evidence: `frontend/src/pages/Login.jsx`)
- Registration → Session auth: creates account (evidence: `frontend/src/pages/Register.jsx`)
- Board dashboard → HTTP client: loads boards (evidence: `frontend/src/pages/Dashboard.jsx`)
- Board workspace → HTTP client: mutates board (evidence: `frontend/src/pages/BoardView.jsx`)
- Board workspace → Board settings: opens settings (evidence: `frontend/src/pages/BoardView.jsx`)
- Board workspace → Member invitations: opens invitations (evidence: `frontend/src/pages/BoardView.jsx`)
- Board workspace → Kanban columns: renders columns (evidence: `frontend/src/pages/BoardView.jsx`)
- Kanban columns → Task cards: renders tasks (evidence: `frontend/src/components/KanbanColumn.jsx`)
- Board workspace → Task editing: edits tasks (evidence: `frontend/src/pages/BoardView.jsx`)
- Board workspace → Board event hook: subscribes events (evidence: `frontend/src/pages/BoardView.jsx`)
- HTTP client → Go API: HTTP with JWT (evidence: `README.md`)
- Board event hook → WebSocket handler: WebSocket with JWT (evidence: `README.md`)
- Go API → HTTP handlers: serves routes (evidence: `README.md`)
- HTTP handlers → Domain services: invokes services (evidence: `README.md`)
- Domain services → Data repositories: checks then changes (evidence: `README.md`)
- Data repositories → PostgreSQL: persists through GORM (evidence: `README.md`)
- GORM models → PostgreSQL: defines migrations (evidence: `README.md`)
- WebSocket handler → Board event hub: registers clients (evidence: `README.md`)
- Domain services → Board event hub: broadcasts mutations (evidence: `README.md`)
- Go API → JWT utilities: validates JWT
