# calebscott0/soundbridge architecture

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

- Interactive diagram: https://gitdiagram.com/calebscott0/soundbridge
- Repository: https://github.com/calebscott0/soundbridge

## Overview

SoundBridge is a React application for matching music artists and producers. Users authenticate, choose a role, complete a profile with image/audio uploads, then browse and swipe through the other side’s profiles; the app also exposes deck and profile views. Firebase is the documented backend integration, while the excerpts show Firestore reads and writes and Cloudinary uploads. Several feature components are listed in the source index but not excerpted, so their internal behavior and some connections are not asserted.

Main entry points: [`SoundBridge/src/App.tsx`](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/App.tsx) (App flow), [`SoundBridge/firebase.ts`](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/firebase.ts) (Firebase client), [`SoundBridge/src/components/Cards.tsx`](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/Cards.tsx) (Profile cards), [`SoundBridge/src/components/SigninSignup.tsx`](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/SigninSignup.tsx) (Sign-in and signup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application flow"]
  node_app["App flow<br/>[App.tsx]"]
  node_starter["Welcome screen<br/>[StarterPage.tsx]"]
  node_authentication["Sign-in and signup<br/>[SigninSignup.tsx]"]
  node_role["Role selection<br/>[Role.tsx]"]
  node_footer["Navigation footer<br/>[Footer.tsx]"]
end

subgraph group_profiles["Profiles and discovery"]
  node_setup["Profile setup<br/>[Login.tsx]"]
  node_account["Account setup<br/>[AccountSetup.tsx]"]
  node_artistbrowse["Artist discovery<br/>[SwipableCards.tsx]"]
  node_producerbrowse["Producer discovery"]
  node_cards["Profile cards<br/>[Cards.tsx]"]
  node_decks["Collaboration decks<br/>[Decks.tsx]"]
  node_profile["Profile page<br/>[ProfilePage.tsx]"]
  node_profilecard["Profile card<br/>[ProfileCard.tsx]"]
  node_genres["Genre selection<br/>[Genres.tsx]"]
  node_uploads["Asset upload<br/>[UploadAssets.tsx]"]
  node_sample["Swipe sample<br/>[Sample.tsx]"]
end

subgraph group_services["Backend and media"]
  node_firebase["Firebase client<br/>[firebase.ts]"]
  node_firestore[("Firestore")]
  node_seed["Seed data<br/>[seed.ts]"]
end

subgraph group_ui["Reusable interface"]
  node_badge["Badge component<br/>[badge.tsx]"]
  node_button["Button component<br/>[button.tsx]"]
  node_cardui["Card components<br/>[card.tsx]"]
end

node_visitor(("Visitor"))
node_firebaseplatform["Firebase platform"]
node_cloudinary["Cloudinary media"]

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_starter
node_app -->|"renders"| node_authentication
node_authentication -->|"uses auth and database"| node_firebase
node_firebase -->|"initializes services"| node_firebaseplatform
node_authentication -->|"reads and writes users"| node_firestore
node_app -->|"renders"| node_role
node_app -->|"renders setup steps"| node_setup
node_setup -->|"updates user"| node_firestore
node_app -->|"updates user"| node_firestore
node_app -->|"uploads media"| node_cloudinary
node_setup -->|"uploads media"| node_cloudinary
node_app -->|"renders for artists"| node_artistbrowse
node_app -->|"renders for producers"| node_producerbrowse
node_artistbrowse -.->|"uses Firebase"| node_firebase
node_producerbrowse -.->|"uses Firebase"| node_firebase
node_app -->|"renders"| node_decks
node_app -->|"renders"| node_profile
node_app -->|"renders"| node_footer
node_artistbrowse -.->|"uses cards"| node_cards
node_cards -->|"renders"| node_badge
node_cards -->|"renders"| node_button
node_cards -->|"renders"| node_cardui
node_seed -->|"writes seed users"| node_firestore
node_sample -->|"uses auth"| node_firebase
node_account -.->|"uses Firebase"| node_firebase
node_profilecard -.->|"uses Firebase"| node_firebase
node_genres -.->|"uses Firebase"| node_firebase

click node_app "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/App.tsx"
click node_starter "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/StarterPage.tsx"
click node_authentication "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/SigninSignup.tsx"
click node_role "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/Role.tsx"
click node_setup "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/Login.tsx"
click node_account "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/AccountSetup.tsx"
click node_artistbrowse "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/SwipableCards.tsx"
click node_producerbrowse "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/ProducerSwipableCards.tsx"
click node_cards "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/Cards.tsx"
click node_decks "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/Decks.tsx"
click node_profile "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/ProfilePage.tsx"
click node_profilecard "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/ProfileCard.tsx"
click node_genres "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/Genres.tsx"
click node_uploads "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/UploadAssets.tsx"
click node_firebase "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/firebase.ts"
click node_seed "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/seed.ts"
click node_sample "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/Sample.tsx"
click node_footer "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/Footer.tsx"
click node_badge "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/ui/badge.tsx"
click node_button "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/ui/button.tsx"
click node_cardui "https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/ui/card.tsx"

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_starter,node_authentication,node_role,node_footer toneBlue
class node_setup,node_account,node_artistbrowse,node_producerbrowse,node_cards,node_decks,node_profile,node_profilecard,node_genres,node_uploads,node_sample toneAmber
class node_firebase,node_firestore,node_seed toneMint
class node_badge,node_button,node_cardui toneRose
class node_visitor,node_firebaseplatform,node_cloudinary toneIndigo
```

## Components

### Application flow

- [App flow](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/App.tsx): `SoundBridge/src/App.tsx`
- [Welcome screen](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/StarterPage.tsx): `SoundBridge/src/components/StarterPage.tsx`
- [Sign-in and signup](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/SigninSignup.tsx): `SoundBridge/src/components/SigninSignup.tsx`
- [Role selection](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/Role.tsx): `SoundBridge/src/components/Role.tsx`
- [Navigation footer](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/Footer.tsx): `SoundBridge/src/components/Footer.tsx`

### Profiles and discovery

- [Profile setup](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/Login.tsx): `SoundBridge/src/components/Login.tsx`
- [Account setup](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/AccountSetup.tsx): `SoundBridge/src/components/AccountSetup.tsx`
- [Artist discovery](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/SwipableCards.tsx): `SoundBridge/src/components/SwipableCards.tsx`
- [Producer discovery](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/ProducerSwipableCards.tsx): `SoundBridge/src/components/ProducerSwipableCards.tsx`
- [Profile cards](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/Cards.tsx): `SoundBridge/src/components/Cards.tsx`
- [Collaboration decks](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/Decks.tsx): `SoundBridge/src/components/Decks.tsx`
- [Profile page](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/ProfilePage.tsx): `SoundBridge/src/components/ProfilePage.tsx`
- [Profile card](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/ProfileCard.tsx): `SoundBridge/src/components/ProfileCard.tsx`
- [Genre selection](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/Genres.tsx): `SoundBridge/src/components/Genres.tsx`
- [Asset upload](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/UploadAssets.tsx): `SoundBridge/src/components/UploadAssets.tsx`
- [Swipe sample](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/Sample.tsx): `SoundBridge/src/Sample.tsx`

### Backend and media

- [Firebase client](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/firebase.ts): `SoundBridge/firebase.ts`
- **Firestore**
- [Seed data](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/seed.ts): `SoundBridge/src/seed.ts`

### Reusable interface

- [Badge component](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/ui/badge.tsx): `SoundBridge/src/components/ui/badge.tsx`
- [Button component](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/ui/button.tsx): `SoundBridge/src/components/ui/button.tsx`
- [Card components](https://github.com/calebscott0/soundbridge/blob/main/SoundBridge/src/components/ui/card.tsx): `SoundBridge/src/components/ui/card.tsx`

### Other components

- **Visitor**
- **Firebase platform**
- **Cloudinary media**

## Connections

- Visitor → App flow: opens (evidence: `README.md`)
- App flow → Welcome screen: renders (evidence: `SoundBridge/src/App.tsx`)
- App flow → Sign-in and signup: renders (evidence: `SoundBridge/src/App.tsx`)
- Sign-in and signup → Firebase client: uses auth and database (evidence: `SoundBridge/src/components/SigninSignup.tsx`)
- Firebase client → Firebase platform: initializes services (evidence: `SoundBridge/firebase.ts`)
- Sign-in and signup → Firestore: reads and writes users (evidence: `SoundBridge/src/components/SigninSignup.tsx`)
- App flow → Role selection: renders (evidence: `SoundBridge/src/App.tsx`)
- App flow → Profile setup: renders setup steps (evidence: `SoundBridge/src/App.tsx`)
- Profile setup → Firestore: updates user (evidence: `SoundBridge/src/components/Login.tsx`)
- App flow → Firestore: updates user (evidence: `SoundBridge/src/App.tsx`)
- App flow → Cloudinary media: uploads media (evidence: `SoundBridge/src/App.tsx`)
- Profile setup → Cloudinary media: uploads media (evidence: `SoundBridge/src/components/Login.tsx`)
- App flow → Artist discovery: renders for artists (evidence: `SoundBridge/src/App.tsx`)
- App flow → Producer discovery: renders for producers (evidence: `SoundBridge/src/App.tsx`)
- Artist discovery → Firebase client: uses Firebase (evidence: `SoundBridge/src/components/SwipableCards.tsx`)
- Producer discovery → Firebase client: uses Firebase (evidence: `SoundBridge/src/components/ProducerSwipableCards.tsx`)
- App flow → Collaboration decks: renders (evidence: `SoundBridge/src/App.tsx`)
- App flow → Profile page: renders (evidence: `SoundBridge/src/App.tsx`)
- App flow → Navigation footer: renders (evidence: `SoundBridge/src/App.tsx`)
- Artist discovery → Profile cards: uses cards
- Profile cards → Badge component: renders (evidence: `SoundBridge/src/components/Cards.tsx`)
- Profile cards → Button component: renders (evidence: `SoundBridge/src/components/Cards.tsx`)
- Profile cards → Card components: renders (evidence: `SoundBridge/src/components/Cards.tsx`)
- Seed data → Firestore: writes seed users (evidence: `SoundBridge/src/seed.ts`)
- Swipe sample → Firebase client: uses auth (evidence: `SoundBridge/src/Sample.tsx`)
- Account setup → Firebase client: uses Firebase (evidence: `SoundBridge/src/components/AccountSetup.tsx`)
- Profile card → Firebase client: uses Firebase (evidence: `SoundBridge/src/components/ProfileCard.tsx`)
- Genre selection → Firebase client: uses Firebase (evidence: `SoundBridge/src/components/Genres.tsx`)
