# karthikprasanna07/data-wiping-project architecture

> Architecture diagram of the GitHub repository karthikprasanna07/data-wiping-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/karthikprasanna07/data-wiping-project
- Repository: https://github.com/karthikprasanna07/data-wiping-project

## Overview

WipeX is a prototype for selecting storage devices, confirming an irreversible wipe, and viewing progress and erasure certificates. The React app owns device selection and a local Aadhaar/OTP confirmation flow; its progress component streams wipe updates from Flask and offers PDF/JSON certificate downloads. Flask also exposes device discovery and server-side OTP routes, but the sampled frontend excerpt does not establish calls to those routes. The wipe stream and certificate generation are shown in one backend file; finer internal call relationships are omitted where the excerpts do not show them.

Main entry points: [`src/WipeProgress.js`](https://github.com/karthikprasanna07/data-wiping-project/blob/main/src/WipeProgress.js) (Wipe progress), [`src/index.js`](https://github.com/karthikprasanna07/data-wiping-project/blob/main/src/index.js) (React entry), [`src/App.js`](https://github.com/karthikprasanna07/data-wiping-project/blob/main/src/App.js) (Wipe workflow UI), [`app.py`](https://github.com/karthikprasanna07/data-wiping-project/blob/main/app.py) (Device discovery)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["React interface"]
  node_app["Wipe workflow UI<br/>[App.js]"]
  node_progress["Wipe progress<br/>[WipeProgress.js]"]
end

subgraph group_backend["Flask services"]
  node_flask["Flask API<br/>[app.py]"]
  node_discovery["Device discovery<br/>[app.py]"]
  node_otp["Server OTP<br/>[app.py]"]
  node_wipe["Wipe stream<br/>[app.py]"]
  node_cert["Certificate download<br/>[app.py]"]
end

subgraph group_runtime["Application startup"]
  node_entry["React entry<br/>[index.js]"]
  node_vitals["Web vitals<br/>[reportWebVitals.js]"]
end

node_user(("Operator"))
node_disk[("Host storage")]
node_browser(("Browser runtime"))

node_user -->|"operates"| node_app
node_entry -->|"renders"| node_app
node_entry -->|"invokes"| node_vitals
node_app -->|"renders"| node_progress
node_progress -->|"streams from"| node_wipe
node_progress -->|"downloads from"| node_cert
node_browser -->|"runs"| node_entry
node_discovery -->|"inspects"| node_disk

click node_app "https://github.com/karthikprasanna07/data-wiping-project/blob/main/src/App.js"
click node_progress "https://github.com/karthikprasanna07/data-wiping-project/blob/main/src/WipeProgress.js"
click node_entry "https://github.com/karthikprasanna07/data-wiping-project/blob/main/src/index.js"
click node_vitals "https://github.com/karthikprasanna07/data-wiping-project/blob/main/src/reportWebVitals.js"
click node_flask "https://github.com/karthikprasanna07/data-wiping-project/blob/main/app.py"
click node_discovery "https://github.com/karthikprasanna07/data-wiping-project/blob/main/app.py"
click node_otp "https://github.com/karthikprasanna07/data-wiping-project/blob/main/app.py"
click node_wipe "https://github.com/karthikprasanna07/data-wiping-project/blob/main/app.py"
click node_cert "https://github.com/karthikprasanna07/data-wiping-project/blob/main/app.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_progress,node_browser toneBlue
class node_flask,node_discovery,node_otp,node_wipe,node_cert,node_disk toneAmber
class node_entry,node_vitals toneMint
class node_user toneIndigo
```

## Components

### React interface

- [Wipe workflow UI](https://github.com/karthikprasanna07/data-wiping-project/blob/main/src/App.js): `src/App.js`
- [Wipe progress](https://github.com/karthikprasanna07/data-wiping-project/blob/main/src/WipeProgress.js): `src/WipeProgress.js`

### Flask services

- [Flask API](https://github.com/karthikprasanna07/data-wiping-project/blob/main/app.py): `app.py`
- [Device discovery](https://github.com/karthikprasanna07/data-wiping-project/blob/main/app.py): `app.py`
- [Server OTP](https://github.com/karthikprasanna07/data-wiping-project/blob/main/app.py): `app.py`
- [Wipe stream](https://github.com/karthikprasanna07/data-wiping-project/blob/main/app.py): `app.py`
- [Certificate download](https://github.com/karthikprasanna07/data-wiping-project/blob/main/app.py): `app.py`

### Application startup

- [React entry](https://github.com/karthikprasanna07/data-wiping-project/blob/main/src/index.js): `src/index.js`
- [Web vitals](https://github.com/karthikprasanna07/data-wiping-project/blob/main/src/reportWebVitals.js): `src/reportWebVitals.js`

### Other components

- **Operator**
- **Host storage**
- **Browser runtime**

## Connections

- Operator → Wipe workflow UI: operates (evidence: `src/App.js`)
- React entry → Wipe workflow UI: renders (evidence: `src/index.js`)
- React entry → Web vitals: invokes (evidence: `src/index.js`)
- Wipe workflow UI → Wipe progress: renders (evidence: `src/App.js`)
- Wipe progress → Wipe stream: streams from (evidence: `src/WipeProgress.js`)
- Wipe progress → Certificate download: downloads from (evidence: `src/WipeProgress.js`)
- Browser runtime → React entry: runs (evidence: `src/index.js`)
- Device discovery → Host storage: inspects (evidence: `app.py`)
