# y0y9/campus-lost-and-found-aiu architecture

> Architecture diagram of the GitHub repository y0y9/campus-lost-and-found-aiu, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/y0y9/campus-lost-and-found-aiu
- Repository: https://github.com/y0y9/campus-lost-and-found-aiu

## Overview

This repository contains the runtime logic for an in-memory lost-and-found application: items can be recorded, searched and listed, while claims are queued, reviewed and verified. The excerpts show service and data-structure behavior, but the entry point and GUI excerpts are empty, and there is no README. Thus the initiating interface and any database-backed behavior cannot be confirmed; the database and GUI directories are not represented as connected runtime components. Edges reflect excerpted calls or SOURCE INDEX references.

Main entry points: [`src/services/claim_services.py`](https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/services/claim_services.py) (Claim handling), [`src/services/item_services.py`](https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/services/item_services.py) (Item management), [`src/services/search_services.py`](https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/services/search_services.py) (Item search), [`src/data_structure/linked_list.py`](https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/data_structure/linked_list.py) (Linked list)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_services["Application services"]
  node_item_service["Item management<br/>[item_services.py]"]
  node_claim_service["Claim handling<br/>[claim_services.py]"]
  node_search_service["Item search<br/>[search_services.py]"]
end

subgraph group_models["Domain models"]
  node_item_model["Item record<br/>[item.py]"]
  node_claim_model["Claim record<br/>[claim.py]"]
  node_user_model["User record<br/>[user.py]"]
end

subgraph group_structures["Data structures"]
  node_item_tree["Item index tree<br/>[bst.py]"]
  node_claim_tree["Claim index tree<br/>[bst.py]"]
  node_claim_queue["Review queue<br/>[queue.py]"]
  node_linked_list["Linked list<br/>[linked_list.py]"]
end

subgraph group_algorithms["Sorting algorithms"]
  node_sort_algorithms["Item sorting<br/>[sort.py]"]
end

node_user(("User or staff"))

node_claim_service -->|"gets and updates items"| node_item_service
node_claim_service -->|"searches and stores claims"| node_claim_tree
node_claim_service -->|"enqueues and dequeues"| node_claim_queue
node_claim_service -->|"records history"| node_linked_list
node_claim_service -->|"creates claims"| node_claim_model
node_claim_service -->|"reads item status"| node_item_model
node_item_service -->|"indexes items"| node_item_tree
node_item_service -->|"creates items"| node_item_model
node_item_service -->|"sorts item lists"| node_sort_algorithms
node_search_service -->|"queries items"| node_item_service
node_search_service -->|"builds result lists"| node_linked_list
node_search_service -->|"sorts unresolved items"| node_sort_algorithms
node_claim_queue -->|"uses node type"| node_linked_list
node_user -.->|"manages items"| node_item_service
node_user -.->|"searches items"| node_search_service
node_user -.->|"submits or reviews claims"| node_claim_service

click node_item_service "https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/services/item_services.py"
click node_claim_service "https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/services/claim_services.py"
click node_search_service "https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/services/search_services.py"
click node_item_model "https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/models/item.py"
click node_claim_model "https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/models/claim.py"
click node_user_model "https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/models/user.py"
click node_item_tree "https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/data_structure/bst.py"
click node_claim_tree "https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/data_structure/bst.py"
click node_claim_queue "https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/data_structure/queue.py"
click node_linked_list "https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/data_structure/linked_list.py"
click node_sort_algorithms "https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/algorithms/sort.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_item_service,node_claim_service,node_search_service,node_user toneBlue
class node_item_model,node_claim_model,node_user_model toneAmber
class node_item_tree,node_claim_tree,node_claim_queue,node_linked_list toneMint
class node_sort_algorithms toneRose
```

## Components

### Application services

- [Item management](https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/services/item_services.py): `src/services/item_services.py`
- [Claim handling](https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/services/claim_services.py): `src/services/claim_services.py`
- [Item search](https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/services/search_services.py): `src/services/search_services.py`

### Domain models

- [Item record](https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/models/item.py): `src/models/item.py`
- [Claim record](https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/models/claim.py): `src/models/claim.py`
- [User record](https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/models/user.py): `src/models/user.py`

### Data structures

- [Item index tree](https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/data_structure/bst.py): `src/data_structure/bst.py`
- [Claim index tree](https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/data_structure/bst.py): `src/data_structure/bst.py`
- [Review queue](https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/data_structure/queue.py): `src/data_structure/queue.py`
- [Linked list](https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/data_structure/linked_list.py): `src/data_structure/linked_list.py`

### Sorting algorithms

- [Item sorting](https://github.com/y0y9/campus-lost-and-found-aiu/blob/main/src/algorithms/sort.py): `src/algorithms/sort.py`

### Other components

- **User or staff**

## Connections

- Claim handling → Item management: gets and updates items (evidence: `src/services/claim_services.py`)
- Claim handling → Claim index tree: searches and stores claims (evidence: `src/services/claim_services.py`)
- Claim handling → Review queue: enqueues and dequeues (evidence: `src/services/claim_services.py`)
- Claim handling → Linked list: records history (evidence: `src/services/claim_services.py`)
- Claim handling → Claim record: creates claims (evidence: `src/services/claim_services.py`)
- Claim handling → Item record: reads item status (evidence: `src/services/claim_services.py`)
- Item management → Item index tree: indexes items (evidence: `src/services/item_services.py`)
- Item management → Item record: creates items (evidence: `src/services/item_services.py`)
- Item management → Item sorting: sorts item lists (evidence: `src/services/item_services.py`)
- Item search → Item management: queries items (evidence: `src/services/search_services.py`)
- Item search → Linked list: builds result lists (evidence: `src/services/search_services.py`)
- Item search → Item sorting: sorts unresolved items (evidence: `src/services/search_services.py`)
- Review queue → Linked list: uses node type (evidence: `src/data_structure/queue.py`)
- User or staff → Item management: manages items
- User or staff → Item search: searches items
- User or staff → Claim handling: submits or reviews claims
