# pavansuryabadugu/bvc_lost_found architecture

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

- Interactive diagram: https://gitdiagram.com/pavansuryabadugu/bvc_lost_found
- Repository: https://github.com/pavansuryabadugu/bvc_lost_found

## Overview

BVC Campus Lost & Found lets students register and log in, report lost or found items, find potential matches, and submit claims for poster review. Reports can include photos; new reports generate in-app alerts and WhatsApp messages, while claim decisions notify claimants. Admins can view dashboard statistics and remove reports. The graph follows the documented features and shown router calls; the frontend-to-API interaction is not visible in the sampled JavaScript, so that connection is marked unverified.

Main entry points: [`app/routers/items.py`](https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/routers/items.py) (Item Reports), [`static/app.js`](https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/static/app.js) (Web Interface), [`app/main.py`](https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/main.py) (App Setup), [`app/database.py`](https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/database.py) (Database Session)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and Interface"]
  node_web["Web Interface<br/>[app.js]"]
  node_auth["Registration and Login<br/>[auth.py]"]
  node_security["Authentication<br/>[security.py]"]
  node_schemas["Input Validation<br/>[schemas.py]"]
  node_admin_api["Admin Dashboard API<br/>[admin.py]"]
end

subgraph group_reports["Reports and Matching"]
  node_items["Item Reports<br/>[items.py]"]
  node_matching["Match Scoring<br/>[matching.py]"]
  node_photo["Photo Uploads<br/>[items.py]"]
end

subgraph group_claims["Claims and Alerts"]
  node_claims["Claim Review<br/>[claims.py]"]
  node_notifications["Notification Inbox<br/>[notifications.py]"]
  node_notify["Alert Delivery<br/>[notify.py]"]
  node_whatsapp["WhatsApp via Twilio"]
end

subgraph group_platform["Platform and Data"]
  node_app["App Setup<br/>[main.py]"]
  node_database["Database Session<br/>[database.py]"]
  node_models["Domain Records<br/>[models.py]"]
  node_store[("SQL Database")]
end

node_student(("Student"))
node_admin(("Admin"))

node_student -->|"uses"| node_web
node_admin -->|"uses"| node_web
node_web -.->|"calls API"| node_auth
node_web -.->|"calls API"| node_items
node_web -.->|"calls API"| node_claims
node_web -.->|"calls API"| node_notifications
node_web -.->|"calls API"| node_admin_api
node_app -->|"registers"| node_auth
node_app -->|"registers"| node_items
node_app -->|"registers"| node_claims
node_app -->|"registers"| node_notifications
node_app -->|"registers"| node_admin_api
node_app -->|"creates tables"| node_database
node_app -->|"serves files"| node_web
node_auth -->|"validates input"| node_schemas
node_auth -->|"hashes and issues tokens"| node_security
node_auth -->|"queries and saves"| node_database
node_items -->|"authenticates"| node_security
node_items -->|"queries and saves"| node_database
node_items -->|"saves photo"| node_photo
node_items -->|"finds matches"| node_matching
node_items -->|"sends alerts"| node_notify
node_items -->|"broadcasts messages"| node_whatsapp
node_claims -->|"authenticates"| node_security
node_claims -->|"queries and saves"| node_database
node_claims -->|"validates input"| node_schemas
node_claims -->|"sends alerts"| node_notify
node_claims -->|"sends messages"| node_whatsapp
node_notifications -->|"authenticates"| node_security
node_notifications -->|"reads and updates"| node_database
node_admin_api -->|"checks admin"| node_security
node_admin_api -->|"queries statistics"| node_database
node_database -->|"connects"| node_store
node_models -->|"uses base"| node_database
node_notify -.->|"sends via Twilio"| node_whatsapp

click node_web "https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/static/app.js"
click node_app "https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/main.py"
click node_auth "https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/routers/auth.py"
click node_security "https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/security.py"
click node_schemas "https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/schemas.py"
click node_items "https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/routers/items.py"
click node_matching "https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/matching.py"
click node_photo "https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/routers/items.py"
click node_claims "https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/routers/claims.py"
click node_notifications "https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/routers/notifications.py"
click node_notify "https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/notify.py"
click node_admin_api "https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/routers/admin.py"
click node_database "https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/database.py"
click node_models "https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/models.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_web,node_auth,node_security,node_schemas,node_admin_api toneBlue
class node_items,node_matching,node_photo toneAmber
class node_claims,node_notifications,node_notify,node_whatsapp toneMint
class node_app,node_database,node_models,node_store toneRose
class node_student,node_admin toneIndigo
```

## Components

### Access and Interface

- [Web Interface](https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/static/app.js): `static/app.js`
- [Registration and Login](https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/routers/auth.py): `app/routers/auth.py`
- [Authentication](https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/security.py): `app/security.py`
- [Input Validation](https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/schemas.py): `app/schemas.py`
- [Admin Dashboard API](https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/routers/admin.py): `app/routers/admin.py`

### Reports and Matching

- [Item Reports](https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/routers/items.py): `app/routers/items.py`
- [Match Scoring](https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/matching.py): `app/matching.py`
- [Photo Uploads](https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/routers/items.py): `app/routers/items.py`

### Claims and Alerts

- [Claim Review](https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/routers/claims.py): `app/routers/claims.py`
- [Notification Inbox](https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/routers/notifications.py): `app/routers/notifications.py`
- [Alert Delivery](https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/notify.py): `app/notify.py`
- **WhatsApp via Twilio**

### Platform and Data

- [App Setup](https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/main.py): `app/main.py`
- [Database Session](https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/database.py): `app/database.py`
- [Domain Records](https://github.com/pavansuryabadugu/bvc_lost_found/blob/main/app/models.py): `app/models.py`
- **SQL Database**

### Other components

- **Student**
- **Admin**

## Connections

- Student → Web Interface: uses (evidence: `README.md`)
- Admin → Web Interface: uses (evidence: `README.md`)
- Web Interface → Registration and Login: calls API
- Web Interface → Item Reports: calls API
- Web Interface → Claim Review: calls API
- Web Interface → Notification Inbox: calls API
- Web Interface → Admin Dashboard API: calls API
- App Setup → Registration and Login: registers (evidence: `app/main.py`)
- App Setup → Item Reports: registers (evidence: `app/main.py`)
- App Setup → Claim Review: registers (evidence: `app/main.py`)
- App Setup → Notification Inbox: registers (evidence: `app/main.py`)
- App Setup → Admin Dashboard API: registers (evidence: `app/main.py`)
- App Setup → Database Session: creates tables (evidence: `app/main.py`)
- App Setup → Web Interface: serves files (evidence: `app/main.py`)
- Registration and Login → Input Validation: validates input (evidence: `app/routers/auth.py`)
- Registration and Login → Authentication: hashes and issues tokens (evidence: `app/routers/auth.py`)
- Registration and Login → Database Session: queries and saves (evidence: `app/routers/auth.py`)
- Item Reports → Authentication: authenticates (evidence: `app/routers/items.py`)
- Item Reports → Database Session: queries and saves (evidence: `app/routers/items.py`)
- Item Reports → Photo Uploads: saves photo (evidence: `app/routers/items.py`)
- Item Reports → Match Scoring: finds matches (evidence: `app/routers/items.py`)
- Item Reports → Alert Delivery: sends alerts (evidence: `app/routers/items.py`)
- Item Reports → WhatsApp via Twilio: broadcasts messages
- Claim Review → Authentication: authenticates (evidence: `app/routers/claims.py`)
- Claim Review → Database Session: queries and saves (evidence: `app/routers/claims.py`)
- Claim Review → Input Validation: validates input (evidence: `app/routers/claims.py`)
- Claim Review → Alert Delivery: sends alerts (evidence: `app/routers/claims.py`)
- Claim Review → WhatsApp via Twilio: sends messages (evidence: `app/routers/claims.py`)
- Notification Inbox → Authentication: authenticates (evidence: `app/routers/notifications.py`)
- Notification Inbox → Database Session: reads and updates (evidence: `app/routers/notifications.py`)
- Admin Dashboard API → Authentication: checks admin (evidence: `app/routers/admin.py`)
- Admin Dashboard API → Database Session: queries statistics (evidence: `app/routers/admin.py`)
- Database Session → SQL Database: connects (evidence: `app/database.py`)
- Domain Records → Database Session: uses base (evidence: `app/models.py`)
- Alert Delivery → WhatsApp via Twilio: sends via Twilio (evidence: `app/notify.py`)
