# yash5429q/wisper-text architecture

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

## Overview

WhisperText is a React cipher-conversion application with a Node/Express backend. The main workflow is to enter or upload text, select encryption or decryption (including smart decryption), and view, copy, or download the result; signed-in users can also save and review operation history. The README documents registration, login, history, and MySQL-backed services. Frontend calls and chart rendering are supported by the supplied excerpts; backend internals and some page-to-service wiring were not shown, so those links are documented or marked unverified.

Main entry points: [`src/App.jsx`](https://github.com/yash5429q/wisper-text/blob/main/src/App.jsx) (App routing), [`backend/server.js`](https://github.com/yash5429q/wisper-text/blob/main/backend/server.js) (Express API), [`src/AdminDashboard.jsx`](https://github.com/yash5429q/wisper-text/blob/main/src/AdminDashboard.jsx) (Admin dashboard), [`src/DecryptPage.jsx`](https://github.com/yash5429q/wisper-text/blob/main/src/DecryptPage.jsx) (Decrypt page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_conversion["Cipher conversion"]
  node_app["App routing<br/>[App.jsx]"]
  node_encrypt["Encrypt page<br/>[EncryptPage.jsx]"]
  node_decrypt["Decrypt page<br/>[DecryptPage.jsx]"]
  node_smart["Smart decrypt"]
  node_ciphers["Cipher algorithms<br/>[ciphers.js]"]
  node_filehandler["File handling<br/>[FileHandler.jsx]"]
end

subgraph group_identity["Accounts and history"]
  node_signup["Signup<br/>[Signup.jsx]"]
  node_login["Login<br/>[Login.jsx]"]
  node_history["History page<br/>[HistoryPage.jsx]"]
end

subgraph group_services["Backend services"]
  node_api["Express API<br/>[server.js]"]
  node_mysql[("MySQL database")]
end

subgraph group_analytics["Administration"]
  node_admin["Admin dashboard<br/>[AdminDashboard.jsx]"]
  node_piechart["Cipher breakdown<br/>[PieChart.jsx]"]
  node_linechart["Usage trends<br/>[LineChart.jsx]"]
end

node_user(("User"))

node_user -->|"opens app"| node_app
node_app -->|"routes to"| node_encrypt
node_app -->|"routes to"| node_decrypt
node_app -->|"routes to"| node_smart
node_app -->|"routes to"| node_history
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_signup
node_encrypt -->|"encrypts with"| node_ciphers
node_decrypt -->|"decrypts with"| node_ciphers
node_smart -->|"tries algorithms"| node_ciphers
node_smart -->|"uses files"| node_filehandler
node_login -->|"posts login"| node_api
node_signup -->|"posts registration"| node_api
node_decrypt -->|"saves operation"| node_api
node_history -.->|"requests history"| node_api
node_api -.->|"reads and writes"| node_mysql
node_admin -.->|"requests analytics"| node_api
node_admin -->|"renders"| node_piechart
node_admin -->|"renders"| node_linechart

click node_app "https://github.com/yash5429q/wisper-text/blob/main/src/App.jsx"
click node_encrypt "https://github.com/yash5429q/wisper-text/blob/main/src/EncryptPage.jsx"
click node_decrypt "https://github.com/yash5429q/wisper-text/blob/main/src/DecryptPage.jsx"
click node_smart "https://github.com/yash5429q/wisper-text/blob/main/src/SmartDecryptPage.jsx"
click node_ciphers "https://github.com/yash5429q/wisper-text/blob/main/src/ciphers.js"
click node_filehandler "https://github.com/yash5429q/wisper-text/blob/main/src/FileHandler.jsx"
click node_signup "https://github.com/yash5429q/wisper-text/blob/main/src/components/Signup.jsx"
click node_login "https://github.com/yash5429q/wisper-text/blob/main/src/components/Login.jsx"
click node_history "https://github.com/yash5429q/wisper-text/blob/main/src/HistoryPage.jsx"
click node_api "https://github.com/yash5429q/wisper-text/blob/main/backend/server.js"
click node_admin "https://github.com/yash5429q/wisper-text/blob/main/src/AdminDashboard.jsx"
click node_piechart "https://github.com/yash5429q/wisper-text/blob/main/src/components/PieChart.jsx"
click node_linechart "https://github.com/yash5429q/wisper-text/blob/main/src/components/LineChart.jsx"

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_encrypt,node_decrypt,node_smart,node_ciphers,node_filehandler,node_user toneBlue
class node_signup,node_login,node_history toneAmber
class node_api,node_mysql toneMint
class node_admin,node_piechart,node_linechart toneRose
```

## Components

### Cipher conversion

- [App routing](https://github.com/yash5429q/wisper-text/blob/main/src/App.jsx): `src/App.jsx`
- [Encrypt page](https://github.com/yash5429q/wisper-text/blob/main/src/EncryptPage.jsx): `src/EncryptPage.jsx`
- [Decrypt page](https://github.com/yash5429q/wisper-text/blob/main/src/DecryptPage.jsx): `src/DecryptPage.jsx`
- [Smart decrypt](https://github.com/yash5429q/wisper-text/blob/main/src/SmartDecryptPage.jsx): `src/SmartDecryptPage.jsx`
- [Cipher algorithms](https://github.com/yash5429q/wisper-text/blob/main/src/ciphers.js): `src/ciphers.js`
- [File handling](https://github.com/yash5429q/wisper-text/blob/main/src/FileHandler.jsx): `src/FileHandler.jsx`

### Accounts and history

- [Signup](https://github.com/yash5429q/wisper-text/blob/main/src/components/Signup.jsx): `src/components/Signup.jsx`
- [Login](https://github.com/yash5429q/wisper-text/blob/main/src/components/Login.jsx): `src/components/Login.jsx`
- [History page](https://github.com/yash5429q/wisper-text/blob/main/src/HistoryPage.jsx): `src/HistoryPage.jsx`

### Backend services

- [Express API](https://github.com/yash5429q/wisper-text/blob/main/backend/server.js): `backend/server.js`
- **MySQL database**

### Administration

- [Admin dashboard](https://github.com/yash5429q/wisper-text/blob/main/src/AdminDashboard.jsx): `src/AdminDashboard.jsx`
- [Cipher breakdown](https://github.com/yash5429q/wisper-text/blob/main/src/components/PieChart.jsx): `src/components/PieChart.jsx`
- [Usage trends](https://github.com/yash5429q/wisper-text/blob/main/src/components/LineChart.jsx): `src/components/LineChart.jsx`

### Other components

- **User**

## Connections

- User → App routing: opens app (evidence: `README.md`)
- App routing → Encrypt page: routes to (evidence: `src/App.jsx`)
- App routing → Decrypt page: routes to (evidence: `src/App.jsx`)
- App routing → Smart decrypt: routes to (evidence: `src/App.jsx`)
- App routing → History page: routes to (evidence: `src/App.jsx`)
- App routing → Login: routes to (evidence: `src/App.jsx`)
- App routing → Signup: routes to (evidence: `src/App.jsx`)
- Encrypt page → Cipher algorithms: encrypts with (evidence: `src/EncryptPage.jsx`)
- Decrypt page → Cipher algorithms: decrypts with (evidence: `src/DecryptPage.jsx`)
- Smart decrypt → Cipher algorithms: tries algorithms (evidence: `src/SmartDecryptPage.jsx`)
- Smart decrypt → File handling: uses files (evidence: `src/SmartDecryptPage.jsx`)
- Login → Express API: posts login (evidence: `src/components/Login.jsx`)
- Signup → Express API: posts registration (evidence: `src/components/Signup.jsx`)
- Decrypt page → Express API: saves operation (evidence: `src/DecryptPage.jsx`)
- History page → Express API: requests history (evidence: `README.md`)
- Express API → MySQL database: reads and writes (evidence: `README.md`)
- Admin dashboard → Express API: requests analytics
- Admin dashboard → Cipher breakdown: renders (evidence: `src/AdminDashboard.jsx`)
- Admin dashboard → Usage trends: renders (evidence: `src/AdminDashboard.jsx`)
