# charanachanta2/whisper architecture

> Architecture diagram of the GitHub repository charanachanta2/whisper, 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/charanachanta2/whisper
- Repository: https://github.com/charanachanta2/whisper

## Overview

This is a small Expo/React Native music-chat client, implemented primarily in App.js. Its user workflow covers sign-in, room selection and chat, with social requests and music/media/file sharing as related capabilities. The excerpts show token restoration, authenticated HTTP requests, and Socket.IO setup; detailed event handling and upload behavior are not shown, so those links are omitted. No server or persistent application database appears in the supplied tree.

Main entry points: [`App.js`](https://github.com/charanachanta2/whisper/blob/main/App.js) (App workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Mobile client"]
  node_app["App workflow<br/>[App.js]"]
  node_auth["Sign-in<br/>[App.js]"]
  node_rooms["Room browser<br/>[App.js]"]
  node_chat["Room chat<br/>[App.js]"]
  node_social["People requests<br/>[App.js]"]
  node_sharing["Music and attachments<br/>[App.js]"]
  node_storage[("Local token storage<br/>[App.js]")]
end

subgraph group_services["External services"]
  node_api{{"Chat API"}}
  node_socket{{"Chat Socket.IO"}}
end

node_user(("User"))

node_user -->|"uses"| node_app
node_app -->|"restores token"| node_storage
node_app -->|"checks session"| node_api
node_auth -->|"submits credentials"| node_api
node_app -->|"connects authenticated"| node_socket
node_app -->|"renders"| node_auth
node_app -->|"renders"| node_rooms
node_app -->|"renders"| node_chat
node_app -->|"renders"| node_social
node_app -->|"renders"| node_sharing
node_rooms -.->|"loads rooms"| node_api
node_chat -.->|"exchanges messages"| node_socket
node_social -.->|"manages requests"| node_api
node_sharing -.->|"sends attachments"| node_api

click node_app "https://github.com/charanachanta2/whisper/blob/main/App.js"
click node_auth "https://github.com/charanachanta2/whisper/blob/main/App.js"
click node_rooms "https://github.com/charanachanta2/whisper/blob/main/App.js"
click node_chat "https://github.com/charanachanta2/whisper/blob/main/App.js"
click node_social "https://github.com/charanachanta2/whisper/blob/main/App.js"
click node_sharing "https://github.com/charanachanta2/whisper/blob/main/App.js"
click node_storage "https://github.com/charanachanta2/whisper/blob/main/App.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_app,node_auth,node_rooms,node_chat,node_social,node_sharing,node_storage,node_user toneBlue
class node_api,node_socket toneAmber
```

## Components

### Mobile client

- [App workflow](https://github.com/charanachanta2/whisper/blob/main/App.js): `App.js`
- [Sign-in](https://github.com/charanachanta2/whisper/blob/main/App.js): `App.js`
- [Room browser](https://github.com/charanachanta2/whisper/blob/main/App.js): `App.js`
- [Room chat](https://github.com/charanachanta2/whisper/blob/main/App.js): `App.js`
- [People requests](https://github.com/charanachanta2/whisper/blob/main/App.js): `App.js`
- [Music and attachments](https://github.com/charanachanta2/whisper/blob/main/App.js): `App.js`
- [Local token storage](https://github.com/charanachanta2/whisper/blob/main/App.js): `App.js`

### External services

- **Chat API**
- **Chat Socket.IO**

### Other components

- **User**

## Connections

- User → App workflow: uses (evidence: `App.js`)
- App workflow → Local token storage: restores token (evidence: `App.js`)
- App workflow → Chat API: checks session (evidence: `App.js`)
- Sign-in → Chat API: submits credentials (evidence: `App.js`)
- App workflow → Chat Socket.IO: connects authenticated (evidence: `App.js`)
- App workflow → Sign-in: renders (evidence: `App.js`)
- App workflow → Room browser: renders (evidence: `App.js`)
- App workflow → Room chat: renders (evidence: `App.js`)
- App workflow → People requests: renders (evidence: `App.js`)
- App workflow → Music and attachments: renders (evidence: `App.js`)
- Room browser → Chat API: loads rooms
- Room chat → Chat Socket.IO: exchanges messages
- People requests → Chat API: manages requests
- Music and attachments → Chat API: sends attachments
