# r1vasa/recycle---pam architecture

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

- Interactive diagram: https://gitdiagram.com/r1vasa/recycle---pam
- Repository: https://github.com/r1vasa/recycle---pam

## Overview

ReCycle is an Android app for collecting and distributing waste. Its user-facing workflow spans sign-in, the home screen, and feature areas for pickup requests, drop-point discovery, waste-price catalogs, education, and profile management; feature folders pair repositories, view models, and Compose screens. Shared navigation and Supabase-backed data support those flows. The README documents this structure, but the sampled source contains no application implementation, so detailed call paths and backend wiring cannot be verified.

Main entry points: [`app/src/main/java/com/example/recycle/ui/navigation`](https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/ui/navigation) (App navigation), [`app/src/main/java/com/example/recycle/core/data/remote`](https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/core/data/remote) (Supabase API services), [`app/src/main/java/com/example/recycle/core/data/model`](https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/core/data/model) (Domain models), [`app/src/main/java/com/example/recycle/feature/auth`](https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/feature/auth) (Sign-in and registration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_activity["Android entry<br/>[MainActivity.kt]"]
  node_navigation["App navigation"]
  node_home["Home"]
end

subgraph group_identity["Identity and profile"]
  node_auth["Sign-in and registration"]
  node_profile["User profile"]
end

subgraph group_waste["Waste services"]
  node_pickup["Pickup requests"]
  node_droppoint["Drop-point directory"]
  node_catalog["Waste price catalog"]
  node_education["Sorting education"]
end

subgraph group_shared["Shared data"]
  node_models["Domain models"]
  node_remote["Supabase API services"]
  node_session[("Session storage<br/>[SessionManager.kt]")]
end

node_user(("App user"))

node_user -->|"opens"| node_activity
node_activity -.->|"starts"| node_navigation
node_navigation -->|"routes"| node_auth
node_navigation -->|"routes"| node_home
node_navigation -->|"routes"| node_profile
node_navigation -->|"routes"| node_pickup
node_navigation -->|"routes"| node_droppoint
node_navigation -->|"routes"| node_catalog
node_navigation -->|"routes"| node_education
node_auth -.->|"manages session"| node_session
node_auth -->|"accesses Supabase"| node_remote
node_profile -->|"accesses Supabase"| node_remote
node_pickup -->|"accesses Supabase"| node_remote
node_droppoint -->|"accesses Supabase"| node_remote
node_catalog -->|"accesses Supabase"| node_remote
node_education -->|"accesses Supabase"| node_remote
node_pickup -->|"uses models"| node_models
node_droppoint -->|"uses models"| node_models
node_catalog -->|"uses models"| node_models
node_education -->|"uses models"| node_models

click node_activity "https://github.com/r1vasa/recycle---pam/blob/main/app/src/main/java/com/example/recycle/MainActivity.kt"
click node_navigation "https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/ui/navigation"
click node_home "https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/feature/home"
click node_auth "https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/feature/auth"
click node_profile "https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/feature/profile"
click node_pickup "https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/feature/pickup"
click node_droppoint "https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/feature/droppoint"
click node_catalog "https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/feature/catalog"
click node_education "https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/feature/education"
click node_models "https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/core/data/model"
click node_remote "https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/core/data/remote"
click node_session "https://github.com/r1vasa/recycle---pam/blob/main/app/src/main/java/com/example/recycle/core/data/local/SessionManager.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_activity,node_navigation,node_home,node_user toneBlue
class node_auth,node_profile toneAmber
class node_pickup,node_droppoint,node_catalog,node_education toneMint
class node_models,node_remote,node_session toneRose
```

## Components

### App shell

- [Android entry](https://github.com/r1vasa/recycle---pam/blob/main/app/src/main/java/com/example/recycle/MainActivity.kt): `app/src/main/java/com/example/recycle/MainActivity.kt`
- [App navigation](https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/ui/navigation): `app/src/main/java/com/example/recycle/ui/navigation`
- [Home](https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/feature/home): `app/src/main/java/com/example/recycle/feature/home`

### Identity and profile

- [Sign-in and registration](https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/feature/auth): `app/src/main/java/com/example/recycle/feature/auth`
- [User profile](https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/feature/profile): `app/src/main/java/com/example/recycle/feature/profile`

### Waste services

- [Pickup requests](https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/feature/pickup): `app/src/main/java/com/example/recycle/feature/pickup`
- [Drop-point directory](https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/feature/droppoint): `app/src/main/java/com/example/recycle/feature/droppoint`
- [Waste price catalog](https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/feature/catalog): `app/src/main/java/com/example/recycle/feature/catalog`
- [Sorting education](https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/feature/education): `app/src/main/java/com/example/recycle/feature/education`

### Shared data

- [Domain models](https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/core/data/model): `app/src/main/java/com/example/recycle/core/data/model`
- [Supabase API services](https://github.com/r1vasa/recycle---pam/tree/main/app/src/main/java/com/example/recycle/core/data/remote): `app/src/main/java/com/example/recycle/core/data/remote`
- [Session storage](https://github.com/r1vasa/recycle---pam/blob/main/app/src/main/java/com/example/recycle/core/data/local/SessionManager.kt): `app/src/main/java/com/example/recycle/core/data/local/SessionManager.kt`

### Other components

- **App user**

## Connections

- App user → Android entry: opens (evidence: `README.md`)
- Android entry → App navigation: starts
- App navigation → Sign-in and registration: routes (evidence: `README.md`)
- App navigation → Home: routes (evidence: `README.md`)
- App navigation → User profile: routes (evidence: `README.md`)
- App navigation → Pickup requests: routes (evidence: `README.md`)
- App navigation → Drop-point directory: routes (evidence: `README.md`)
- App navigation → Waste price catalog: routes (evidence: `README.md`)
- App navigation → Sorting education: routes (evidence: `README.md`)
- Sign-in and registration → Session storage: manages session
- Sign-in and registration → Supabase API services: accesses Supabase (evidence: `README.md`)
- User profile → Supabase API services: accesses Supabase (evidence: `README.md`)
- Pickup requests → Supabase API services: accesses Supabase (evidence: `README.md`)
- Drop-point directory → Supabase API services: accesses Supabase (evidence: `README.md`)
- Waste price catalog → Supabase API services: accesses Supabase (evidence: `README.md`)
- Sorting education → Supabase API services: accesses Supabase (evidence: `README.md`)
- Pickup requests → Domain models: uses models (evidence: `README.md`)
- Drop-point directory → Domain models: uses models (evidence: `README.md`)
- Waste price catalog → Domain models: uses models (evidence: `README.md`)
- Sorting education → Domain models: uses models (evidence: `README.md`)
