# aryanrao10/vaultguard-sih26265 architecture

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

## Overview

VaultGuard is a client-side portal for submitting native digital FDR or fee-certificate PDFs to a remote verification service and presenting its response. The user selects a PDF, starts verification, and the page posts the file as multipart form data; it then displays structured fields, a SHA-256 hash and confidence score, or an error. The backend’s internal processing is outside this repository. The workflow and response handling are evidenced in the page source; no separate backend implementation is present in the supplied tree.

Main entry points: [`app/page.tsx`](https://github.com/aryanrao10/vaultguard-sih26265/blob/main/app/page.tsx) (Upload workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portal["Verification Portal"]
  node_file_ui["PDF selection<br/>[page.tsx]"]
  node_verify["Upload workflow<br/>[page.tsx]"]
  node_outcome["Results and errors<br/>[page.tsx]"]
end

subgraph group_service["External Service"]
  node_backend["Verification API"]
end

node_user(("Portal user"))

node_user -->|"selects PDF"| node_file_ui
node_file_ui -->|"starts verification"| node_verify
node_verify -->|"posts file"| node_backend
node_backend -->|"returns JSON"| node_verify
node_verify -->|"sets result or error"| node_outcome

click node_file_ui "https://github.com/aryanrao10/vaultguard-sih26265/blob/main/app/page.tsx"
click node_verify "https://github.com/aryanrao10/vaultguard-sih26265/blob/main/app/page.tsx"
click node_outcome "https://github.com/aryanrao10/vaultguard-sih26265/blob/main/app/page.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_file_ui,node_verify,node_outcome,node_user toneBlue
class node_backend toneAmber
```

## Components

### Verification Portal

- [PDF selection](https://github.com/aryanrao10/vaultguard-sih26265/blob/main/app/page.tsx): `app/page.tsx`
- [Upload workflow](https://github.com/aryanrao10/vaultguard-sih26265/blob/main/app/page.tsx): `app/page.tsx`
- [Results and errors](https://github.com/aryanrao10/vaultguard-sih26265/blob/main/app/page.tsx): `app/page.tsx`

### External Service

- **Verification API**

### Other components

- **Portal user**

## Connections

- Portal user → PDF selection: selects PDF (evidence: `app/page.tsx`)
- PDF selection → Upload workflow: starts verification (evidence: `app/page.tsx`)
- Upload workflow → Verification API: posts file (evidence: `app/page.tsx`)
- Verification API → Upload workflow: returns JSON (evidence: `app/page.tsx`)
- Upload workflow → Results and errors: sets result or error (evidence: `app/page.tsx`)
