# aviralb13/aparavi-demo architecture

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

- Interactive diagram: https://gitdiagram.com/aviralb13/aparavi-demo
- Repository: https://github.com/aviralb13/aparavi-demo

## Overview

Aparavi-Demo is a small React interface for checking whether a PDF is AI-generated or human-written. The user selects a PDF and submits it; the app posts its bytes to Aparavi’s external detection service, parses the returned classification, confidence, and reasoning, then displays the result or an error. The evidence shows the app entry point and request/response handling, but not the external service’s internal processing.

Main entry points: [`Aparavi_Project/src/App.jsx`](https://github.com/aviralb13/aparavi-demo/blob/main/Aparavi_Project/src/App.jsx) (Detection Interface), [`Aparavi_Project/src/main.jsx`](https://github.com/aviralb13/aparavi-demo/blob/main/Aparavi_Project/src/main.jsx) (React Entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_entry["React Entry<br/>[main.jsx]"]
node_app["Detection Interface<br/>[App.jsx]"]
node_service{{"Aparavi Detection API"}}

node_entry -->|"renders"| node_app
node_user -->|"submits PDF"| node_app
node_app -->|"posts PDF"| node_service
node_service -->|"returns answer"| node_app

click node_entry "https://github.com/aviralb13/aparavi-demo/blob/main/Aparavi_Project/src/main.jsx"
click node_app "https://github.com/aviralb13/aparavi-demo/blob/main/Aparavi_Project/src/App.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_user toneBlue
class node_entry,node_app toneTeal
class node_service toneMint
```

## Components

### Other components

- **User**
- [React Entry](https://github.com/aviralb13/aparavi-demo/blob/main/Aparavi_Project/src/main.jsx): `Aparavi_Project/src/main.jsx`
- [Detection Interface](https://github.com/aviralb13/aparavi-demo/blob/main/Aparavi_Project/src/App.jsx): `Aparavi_Project/src/App.jsx`
- **Aparavi Detection API**

## Connections

- React Entry → Detection Interface: renders (evidence: `Aparavi_Project/src/main.jsx`)
- User → Detection Interface: submits PDF (evidence: `Aparavi_Project/src/App.jsx`)
- Detection Interface → Aparavi Detection API: posts PDF (evidence: `Aparavi_Project/src/App.jsx`)
- Aparavi Detection API → Detection Interface: returns answer (evidence: `Aparavi_Project/src/App.jsx`)
