# toaster124/cs-capstone architecture

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

- Interactive diagram: https://gitdiagram.com/toaster124/cs-capstone
- Repository: https://github.com/toaster124/cs-capstone

## Overview

CollaBand is a collaborative music and project web application with a React frontend and Django backend. Its visible user workflow is routed through public sign-in/registration and protected dashboard, project, profile, and music-editor pages; the tree also indicates chat and socket features. Frontend excerpts establish route ownership and a few utility dependencies. Backend feature modules are identifiable from the tree, but their implementation and wiring were not sampled, and the README is empty, so those relationships are intentionally not asserted.

Main entry points: [`collaband_frontend/src/App.js`](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/App.js) (App routes), [`collaband_frontend/src/utils/chatHandler.js`](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/utils/chatHandler.js) (Chat handler), [`collaband_frontend/src/utils/api.js`](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/utils/api.js) (API client), [`collaband_frontend/src/redux/actions/authActions.js`](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/redux/actions/authActions.js) (Auth actions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Frontend navigation"]
  node_app["App routes<br/>[App.js]"]
  node_login["Login<br/>[Login.js]"]
  node_register["Register<br/>[Register.js]"]
  node_dashboard["Dashboard<br/>[Dashboard.js]"]
  node_profile["Profile<br/>[Profile.js]"]
  node_projectdetails["Project details<br/>[ProjectDetails.js]"]
  node_protected["Protected route<br/>[ProtectedRoute.js]"]
end

subgraph group_music["Music workspace"]
  node_editor["Music editor<br/>[MusicEditor.js]"]
  node_notation["Music notation<br/>[MusicNotation.js]"]
  node_pianoroll["Piano roll<br/>[PianoRoll.js]"]
  node_keyboard["Virtual keyboard<br/>[VirtualKeyboard.js]"]
end

subgraph group_collaboration["Collaboration"]
  node_chat["Chat view<br/>[Chat.js]"]
  node_chat_handler["Chat handler<br/>[chatHandler.js]"]
  node_pubnub["PubNub client<br/>[pubnubClient.js]"]
  node_socket_page["Socket page<br/>[Socket.js]"]
  node_websocket["WebSocket client<br/>[websocket.js]"]
  node_sockets["Socket handlers<br/>[sockets.py]"]
end

subgraph group_backend["Backend services"]
  node_api["API client<br/>[api.js]"]
  node_auth_actions["Auth actions<br/>[authActions.js]"]
  node_project_actions["Project actions<br/>[projectActions.js]"]
  node_auth_reducer["Auth state<br/>[authReducer.js]"]
  node_project_reducer["Project state<br/>[projectReducer.js]"]
  node_views["HTTP views<br/>[views.py]"]
  node_serializers["Serializers<br/>[serializers.py]"]
  node_models[("Domain models<br/>[models.py]")]
  node_settings["Django settings<br/>[settings.py]"]
  node_server["ASGI server<br/>[server.py]"]
end

node_user(("User"))

node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_register
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_profile
node_app -->|"routes to"| node_projectdetails
node_app -->|"routes to"| node_editor
node_app -->|"guards with"| node_protected
node_auth_actions -->|"calls"| node_api
node_chat_handler -->|"uses"| node_pubnub
node_chat_handler -->|"calls"| node_api

click node_app "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/App.js"
click node_login "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/pages/Login.js"
click node_register "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/pages/Register.js"
click node_dashboard "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/pages/Dashboard.js"
click node_profile "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/pages/Profile.js"
click node_projectdetails "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/pages/ProjectDetails.js"
click node_protected "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/components/ProtectedRoute.js"
click node_editor "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/pages/MusicEditor.js"
click node_notation "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/components/MusicNotation.js"
click node_pianoroll "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/components/PianoRoll.js"
click node_keyboard "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/components/VirtualKeyboard.js"
click node_chat "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/components/Chat.js"
click node_chat_handler "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/utils/chatHandler.js"
click node_pubnub "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/utils/pubnubClient.js"
click node_socket_page "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/pages/Socket.js"
click node_websocket "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/utils/websocket.js"
click node_api "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/utils/api.js"
click node_auth_actions "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/redux/actions/authActions.js"
click node_project_actions "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/redux/actions/projectActions.js"
click node_auth_reducer "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/redux/reducers/authReducer.js"
click node_project_reducer "https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/redux/reducers/projectReducer.js"
click node_views "https://github.com/toaster124/cs-capstone/blob/main/CollaBand_BackEnd/CollaBand_Project/CollaBand_App/views.py"
click node_serializers "https://github.com/toaster124/cs-capstone/blob/main/CollaBand_BackEnd/CollaBand_Project/CollaBand_App/serializers.py"
click node_models "https://github.com/toaster124/cs-capstone/blob/main/CollaBand_BackEnd/CollaBand_Project/CollaBand_App/models.py"
click node_sockets "https://github.com/toaster124/cs-capstone/blob/main/CollaBand_BackEnd/CollaBand_Project/CollaBand_App/sockets.py"
click node_settings "https://github.com/toaster124/cs-capstone/blob/main/CollaBand_BackEnd/CollaBand_Project/CollaBand_Project/settings.py"
click node_server "https://github.com/toaster124/cs-capstone/blob/main/CollaBand_BackEnd/CollaBand_Project/server.py"

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_login,node_register,node_dashboard,node_profile,node_projectdetails,node_protected,node_user toneBlue
class node_editor,node_notation,node_pianoroll,node_keyboard toneAmber
class node_chat,node_chat_handler,node_pubnub,node_socket_page,node_websocket,node_sockets toneMint
class node_api,node_auth_actions,node_project_actions,node_auth_reducer,node_project_reducer,node_views,node_serializers,node_models,node_settings,node_server toneRose
```

## Components

### Frontend navigation

- [App routes](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/App.js): `collaband_frontend/src/App.js`
- [Login](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/pages/Login.js): `collaband_frontend/src/pages/Login.js`
- [Register](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/pages/Register.js): `collaband_frontend/src/pages/Register.js`
- [Dashboard](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/pages/Dashboard.js): `collaband_frontend/src/pages/Dashboard.js`
- [Profile](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/pages/Profile.js): `collaband_frontend/src/pages/Profile.js`
- [Project details](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/pages/ProjectDetails.js): `collaband_frontend/src/pages/ProjectDetails.js`
- [Protected route](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/components/ProtectedRoute.js): `collaband_frontend/src/components/ProtectedRoute.js`

### Music workspace

- [Music editor](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/pages/MusicEditor.js): `collaband_frontend/src/pages/MusicEditor.js`
- [Music notation](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/components/MusicNotation.js): `collaband_frontend/src/components/MusicNotation.js`
- [Piano roll](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/components/PianoRoll.js): `collaband_frontend/src/components/PianoRoll.js`
- [Virtual keyboard](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/components/VirtualKeyboard.js): `collaband_frontend/src/components/VirtualKeyboard.js`

### Collaboration

- [Chat view](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/components/Chat.js): `collaband_frontend/src/components/Chat.js`
- [Chat handler](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/utils/chatHandler.js): `collaband_frontend/src/utils/chatHandler.js`
- [PubNub client](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/utils/pubnubClient.js): `collaband_frontend/src/utils/pubnubClient.js`
- [Socket page](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/pages/Socket.js): `collaband_frontend/src/pages/Socket.js`
- [WebSocket client](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/utils/websocket.js): `collaband_frontend/src/utils/websocket.js`
- [Socket handlers](https://github.com/toaster124/cs-capstone/blob/main/CollaBand_BackEnd/CollaBand_Project/CollaBand_App/sockets.py): `CollaBand_BackEnd/CollaBand_Project/CollaBand_App/sockets.py`

### Backend services

- [API client](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/utils/api.js): `collaband_frontend/src/utils/api.js`
- [Auth actions](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/redux/actions/authActions.js): `collaband_frontend/src/redux/actions/authActions.js`
- [Project actions](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/redux/actions/projectActions.js): `collaband_frontend/src/redux/actions/projectActions.js`
- [Auth state](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/redux/reducers/authReducer.js): `collaband_frontend/src/redux/reducers/authReducer.js`
- [Project state](https://github.com/toaster124/cs-capstone/blob/main/collaband_frontend/src/redux/reducers/projectReducer.js): `collaband_frontend/src/redux/reducers/projectReducer.js`
- [HTTP views](https://github.com/toaster124/cs-capstone/blob/main/CollaBand_BackEnd/CollaBand_Project/CollaBand_App/views.py): `CollaBand_BackEnd/CollaBand_Project/CollaBand_App/views.py`
- [Serializers](https://github.com/toaster124/cs-capstone/blob/main/CollaBand_BackEnd/CollaBand_Project/CollaBand_App/serializers.py): `CollaBand_BackEnd/CollaBand_Project/CollaBand_App/serializers.py`
- [Domain models](https://github.com/toaster124/cs-capstone/blob/main/CollaBand_BackEnd/CollaBand_Project/CollaBand_App/models.py): `CollaBand_BackEnd/CollaBand_Project/CollaBand_App/models.py`
- [Django settings](https://github.com/toaster124/cs-capstone/blob/main/CollaBand_BackEnd/CollaBand_Project/CollaBand_Project/settings.py): `CollaBand_BackEnd/CollaBand_Project/CollaBand_Project/settings.py`
- [ASGI server](https://github.com/toaster124/cs-capstone/blob/main/CollaBand_BackEnd/CollaBand_Project/server.py): `CollaBand_BackEnd/CollaBand_Project/server.py`

### Other components

- **User**

## Connections

- App routes → Login: routes to (evidence: `collaband_frontend/src/App.js`)
- App routes → Register: routes to (evidence: `collaband_frontend/src/App.js`)
- App routes → Dashboard: routes to (evidence: `collaband_frontend/src/App.js`)
- App routes → Profile: routes to (evidence: `collaband_frontend/src/App.js`)
- App routes → Project details: routes to (evidence: `collaband_frontend/src/App.js`)
- App routes → Music editor: routes to (evidence: `collaband_frontend/src/App.js`)
- App routes → Protected route: guards with (evidence: `collaband_frontend/src/App.js`)
- Auth actions → API client: calls (evidence: `collaband_frontend/src/redux/actions/authActions.js`)
- Chat handler → PubNub client: uses (evidence: `collaband_frontend/src/utils/chatHandler.js`)
- Chat handler → API client: calls (evidence: `collaband_frontend/src/utils/chatHandler.js`)
