# thegitguy-56/snapfind architecture

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

- Interactive diagram: https://gitdiagram.com/thegitguy-56/snapfind
- Repository: https://github.com/thegitguy-56/snapfind

## Overview

SnapFind is a Flutter lost-and-found app: users report found items with photos and AI-assisted tags, report lost items manually, then browse a unified feed and search for matches. The map preserves those distinct stages, detail views, authentication, and the additional screens visible in the tree. The README documents the product capabilities and technology stack, but Dart implementation excerpts were not provided, so internal screen-to-service calls are not asserted.

Main entry points: [`lib/screens/home_screen.dart`](https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/home_screen.dart) (Unified feed), [`lib/main.dart`](https://github.com/thegitguy-56/snapfind/blob/main/lib/main.dart) (App entry), [`lib/screens/upload_screen.dart`](https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/upload_screen.dart) (Found item post), [`lib/services/gemini_service.dart`](https://github.com/thegitguy-56/snapfind/blob/main/lib/services/gemini_service.dart) (AI tagging)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["App shell"]
  node_app["App entry<br/>[main.dart]"]
  node_login["Sign-in screen<br/>[login_screen.dart]"]
end

subgraph group_workflows["Item workflows"]
  node_home["Unified feed<br/>[home_screen.dart]"]
  node_found["Found item post<br/>[upload_screen.dart]"]
  node_lost["Lost item report"]
  node_search["Item search<br/>[search_screen.dart]"]
  node_founddetail["Found detail"]
  node_lostdetail["Lost detail"]
  node_returned["Returned items"]
  node_history["Item history"]
end

subgraph group_support["User support"]
  node_alerts["Alerts screen<br/>[alerts_screen.dart]"]
  node_chat["Chat screen<br/>[chat_screen.dart]"]
  node_feedback["Feedback screen"]
  node_about["About screen<br/>[about_screen.dart]"]
end

subgraph group_services["App services"]
  node_auth["Authentication<br/>[auth_service.dart]"]
  node_data["Firebase data"]
  node_ai["AI tagging"]
  node_location["Location service"]
  node_notifications["Notifications service"]
end

subgraph group_platform["External platforms"]
  node_firebase[("Firebase")]
  node_gemini["Gemini AI"]
end

node_user(("User"))

node_user -->|"opens"| node_app
node_app -->|"shows feed"| node_home
node_user -->|"posts photo"| node_found
node_user -->|"reports item"| node_lost
node_user -->|"searches items"| node_search
node_home -->|"opens found"| node_founddetail
node_home -->|"opens lost"| node_lostdetail
node_user -->|"authenticates"| node_login
node_found -->|"requests tags"| node_ai
node_ai -->|"uses"| node_gemini
node_auth -->|"uses"| node_firebase
node_data -->|"uses"| node_firebase

click node_app "https://github.com/thegitguy-56/snapfind/blob/main/lib/main.dart"
click node_home "https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/home_screen.dart"
click node_found "https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/upload_screen.dart"
click node_lost "https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/lost_item_screen.dart"
click node_search "https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/search_screen.dart"
click node_founddetail "https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/item_detail_screen.dart"
click node_lostdetail "https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/lost_item_detail_screen.dart"
click node_returned "https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/returned_items_screen.dart"
click node_history "https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/history_screen.dart"
click node_login "https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/login_screen.dart"
click node_alerts "https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/alerts_screen.dart"
click node_chat "https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/chat_screen.dart"
click node_feedback "https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/feedback_screen.dart"
click node_about "https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/about_screen.dart"
click node_auth "https://github.com/thegitguy-56/snapfind/blob/main/lib/services/auth_service.dart"
click node_data "https://github.com/thegitguy-56/snapfind/blob/main/lib/services/firebase_service.dart"
click node_ai "https://github.com/thegitguy-56/snapfind/blob/main/lib/services/gemini_service.dart"
click node_location "https://github.com/thegitguy-56/snapfind/blob/main/lib/services/location_service.dart"
click node_notifications "https://github.com/thegitguy-56/snapfind/blob/main/lib/services/notifications_service.dart"

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_login,node_user toneBlue
class node_home,node_found,node_lost,node_search,node_founddetail,node_lostdetail,node_returned,node_history toneAmber
class node_alerts,node_chat,node_feedback,node_about toneMint
class node_auth,node_data,node_ai,node_location,node_notifications toneRose
class node_firebase,node_gemini toneIndigo
```

## Components

### App shell

- [App entry](https://github.com/thegitguy-56/snapfind/blob/main/lib/main.dart): `lib/main.dart`
- [Sign-in screen](https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/login_screen.dart): `lib/screens/login_screen.dart`

### Item workflows

- [Unified feed](https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/home_screen.dart): `lib/screens/home_screen.dart`
- [Found item post](https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/upload_screen.dart): `lib/screens/upload_screen.dart`
- [Lost item report](https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/lost_item_screen.dart): `lib/screens/lost_item_screen.dart`
- [Item search](https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/search_screen.dart): `lib/screens/search_screen.dart`
- [Found detail](https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/item_detail_screen.dart): `lib/screens/item_detail_screen.dart`
- [Lost detail](https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/lost_item_detail_screen.dart): `lib/screens/lost_item_detail_screen.dart`
- [Returned items](https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/returned_items_screen.dart): `lib/screens/returned_items_screen.dart`
- [Item history](https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/history_screen.dart): `lib/screens/history_screen.dart`

### User support

- [Alerts screen](https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/alerts_screen.dart): `lib/screens/alerts_screen.dart`
- [Chat screen](https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/chat_screen.dart): `lib/screens/chat_screen.dart`
- [Feedback screen](https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/feedback_screen.dart): `lib/screens/feedback_screen.dart`
- [About screen](https://github.com/thegitguy-56/snapfind/blob/main/lib/screens/about_screen.dart): `lib/screens/about_screen.dart`

### App services

- [Authentication](https://github.com/thegitguy-56/snapfind/blob/main/lib/services/auth_service.dart): `lib/services/auth_service.dart`
- [Firebase data](https://github.com/thegitguy-56/snapfind/blob/main/lib/services/firebase_service.dart): `lib/services/firebase_service.dart`
- [AI tagging](https://github.com/thegitguy-56/snapfind/blob/main/lib/services/gemini_service.dart): `lib/services/gemini_service.dart`
- [Location service](https://github.com/thegitguy-56/snapfind/blob/main/lib/services/location_service.dart): `lib/services/location_service.dart`
- [Notifications service](https://github.com/thegitguy-56/snapfind/blob/main/lib/services/notifications_service.dart): `lib/services/notifications_service.dart`

### External platforms

- **Firebase**
- **Gemini AI**

### Other components

- **User**

## Connections

- User → App entry: opens (evidence: `README.md`)
- App entry → Unified feed: shows feed (evidence: `README.md`)
- User → Found item post: posts photo (evidence: `README.md`)
- User → Lost item report: reports item (evidence: `README.md`)
- User → Item search: searches items (evidence: `README.md`)
- Unified feed → Found detail: opens found (evidence: `README.md`)
- Unified feed → Lost detail: opens lost (evidence: `README.md`)
- User → Sign-in screen: authenticates (evidence: `README.md`)
- Found item post → AI tagging: requests tags (evidence: `README.md`)
- AI tagging → Gemini AI: uses (evidence: `README.md`)
- Authentication → Firebase: uses (evidence: `README.md`)
- Firebase data → Firebase: uses (evidence: `README.md`)
