# aggarwalsrishti/recollect architecture

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

- Interactive diagram: https://gitdiagram.com/aggarwalsrishti/recollect
- Repository: https://github.com/aggarwalsrishti/recollect

## Overview

Recollect is an Android app for capturing and organizing notes, links, snippets, and images. The principal workflow is to enter through authentication-based navigation, manage saved items in the Compose interface, and persist them locally or use cloud-backed functionality. Its documented capabilities include searching, filtering, archiving, restoring, editing, and deleting items. The README describes the main architectural roles, but application source was not sampled; dashed edges mark likely runtime connections that cannot be verified from the available evidence.

Main entry points: [`app/src/main/java/com/example/recollect/ui/screens/SaveScreen.kt`](https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/ui/screens/SaveScreen.kt) (Saved items screen), [`app/src/main/java/com/example/recollect/MainActivity.kt`](https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/MainActivity.kt) (App entry and navigation), [`app/src/main/java/com/example/recollect/repository/SaveRepository.kt`](https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/repository/SaveRepository.kt) (Save data access), [`app/src/main/java/com/example/recollect/data/room_database/SaveItemDao.kt`](https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/data/room_database/SaveItemDao.kt) (Saved item queries)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app_ui["App and interface"]
  node_main_activity["App entry and navigation<br/>[MainActivity.kt]"]
  node_auth_screen["Authentication screen<br/>[AuthScreen.kt]"]
  node_save_screen["Saved items screen<br/>[SaveScreen.kt]"]
  node_editor["Item editor"]
  node_item_card["Saved item card<br/>[SaveItemCard.kt]"]
end

subgraph group_logic["Application logic"]
  node_auth_logic["Authentication logic<br/>[AuthViewModel.kt]"]
  node_save_logic["Saved item logic<br/>[SaveViewModel.kt]"]
  node_save_repository["Save data access<br/>[SaveRepository.kt]"]
end

subgraph group_local["Local persistence"]
  node_save_item["Saved item model<br/>[SaveItem.kt]"]
  node_save_dao["Saved item queries<br/>[SaveItemDao.kt]"]
  node_save_database[("Room database<br/>[SaveDatabase.kt]")]
end

subgraph group_cloud["Cloud services"]
  node_cloud_repository["Cloud data access<br/>[CloudRepository.kt]"]
  node_firebase_auth{{"Firebase Authentication"}}
  node_firestore[("Cloud Firestore")]
end

node_user(("User"))

node_user -->|"opens app"| node_main_activity
node_main_activity -->|"routes by authentication"| node_auth_screen
node_auth_screen -.->|"delegates authentication"| node_auth_logic
node_auth_logic -.->|"authenticates"| node_firebase_auth
node_main_activity -.->|"opens saved items"| node_save_screen
node_user -->|"manages items"| node_save_screen
node_save_screen -.->|"requests item state"| node_save_logic
node_save_screen -.->|"opens editor"| node_editor
node_save_screen -.->|"shows items"| node_item_card
node_save_logic -.->|"requests data"| node_save_repository
node_save_repository -.->|"accesses local data"| node_save_dao
node_save_dao -.->|"queries items"| node_save_item
node_save_database -.->|"provides database"| node_save_dao
node_save_repository -.->|"uses cloud data"| node_cloud_repository
node_cloud_repository -.->|"stores cloud data"| node_firestore

click node_main_activity "https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/MainActivity.kt"
click node_auth_screen "https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/ui/screens/AuthScreen.kt"
click node_save_screen "https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/ui/screens/SaveScreen.kt"
click node_editor "https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/ui/screens/ItemEditorDialog.kt"
click node_item_card "https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/ui/screens/SaveItemCard.kt"
click node_auth_logic "https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/viewmodel/AuthViewModel.kt"
click node_save_logic "https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/viewmodel/SaveViewModel.kt"
click node_save_repository "https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/repository/SaveRepository.kt"
click node_cloud_repository "https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/data/cloud/CloudRepository.kt"
click node_save_item "https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/data/room_database/SaveItem.kt"
click node_save_dao "https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/data/room_database/SaveItemDao.kt"
click node_save_database "https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/data/room_database/SaveDatabase.kt"

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_main_activity,node_auth_screen,node_save_screen,node_editor,node_item_card,node_user toneBlue
class node_auth_logic,node_save_logic,node_save_repository toneAmber
class node_save_item,node_save_dao,node_save_database toneMint
class node_cloud_repository,node_firebase_auth,node_firestore toneRose
```

## Components

### App and interface

- [App entry and navigation](https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/MainActivity.kt): `app/src/main/java/com/example/recollect/MainActivity.kt`
- [Authentication screen](https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/ui/screens/AuthScreen.kt): `app/src/main/java/com/example/recollect/ui/screens/AuthScreen.kt`
- [Saved items screen](https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/ui/screens/SaveScreen.kt): `app/src/main/java/com/example/recollect/ui/screens/SaveScreen.kt`
- [Item editor](https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/ui/screens/ItemEditorDialog.kt): `app/src/main/java/com/example/recollect/ui/screens/ItemEditorDialog.kt`
- [Saved item card](https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/ui/screens/SaveItemCard.kt): `app/src/main/java/com/example/recollect/ui/screens/SaveItemCard.kt`

### Application logic

- [Authentication logic](https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/viewmodel/AuthViewModel.kt): `app/src/main/java/com/example/recollect/viewmodel/AuthViewModel.kt`
- [Saved item logic](https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/viewmodel/SaveViewModel.kt): `app/src/main/java/com/example/recollect/viewmodel/SaveViewModel.kt`
- [Save data access](https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/repository/SaveRepository.kt): `app/src/main/java/com/example/recollect/repository/SaveRepository.kt`

### Local persistence

- [Saved item model](https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/data/room_database/SaveItem.kt): `app/src/main/java/com/example/recollect/data/room_database/SaveItem.kt`
- [Saved item queries](https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/data/room_database/SaveItemDao.kt): `app/src/main/java/com/example/recollect/data/room_database/SaveItemDao.kt`
- [Room database](https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/data/room_database/SaveDatabase.kt): `app/src/main/java/com/example/recollect/data/room_database/SaveDatabase.kt`

### Cloud services

- [Cloud data access](https://github.com/aggarwalsrishti/recollect/blob/main/app/src/main/java/com/example/recollect/data/cloud/CloudRepository.kt): `app/src/main/java/com/example/recollect/data/cloud/CloudRepository.kt`
- **Firebase Authentication**
- **Cloud Firestore**

### Other components

- **User**

## Connections

- User → App entry and navigation: opens app (evidence: `README.md`)
- App entry and navigation → Authentication screen: routes by authentication (evidence: `README.md`)
- Authentication screen → Authentication logic: delegates authentication
- Authentication logic → Firebase Authentication: authenticates
- App entry and navigation → Saved items screen: opens saved items
- User → Saved items screen: manages items (evidence: `README.md`)
- Saved items screen → Saved item logic: requests item state
- Saved items screen → Item editor: opens editor
- Saved items screen → Saved item card: shows items
- Saved item logic → Save data access: requests data
- Save data access → Saved item queries: accesses local data
- Saved item queries → Saved item model: queries items
- Room database → Saved item queries: provides database
- Save data access → Cloud data access: uses cloud data
- Cloud data access → Cloud Firestore: stores cloud data
