# veenashree-b/nammavastra architecture

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

- Interactive diagram: https://gitdiagram.com/veenashree-b/nammavastra
- Repository: https://github.com/veenashree-b/nammavastra

## Overview

Namma Vastra is an Android platform for connecting Karnataka handloom weavers with buyers. The documented workflow lets weavers create profiles, calculate fair prices, and list sarees; buyers browse listings and contact weavers, while both can explore trends and heritage content. Trend caching is the only documented local persistence flow; listing sync and authentication are described as Firebase-backed, with phone authentication noted as mocked. Paths identify the relevant source areas, but implementation files were not sampled, so edges reflect README claims rather than inspected calls.

Main entry points: [`app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/upload`](https://github.com/veenashree-b/nammavastra/tree/master/app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/upload) (Saree Upload), [`app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/gallery`](https://github.com/veenashree-b/nammavastra/tree/master/app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/gallery) (Loom Gallery), [`app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/trends`](https://github.com/veenashree-b/nammavastra/tree/master/app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/trends) (Trend Board), [`app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/login`](https://github.com/veenashree-b/nammavastra/tree/master/app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/login) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_market["Marketplace"]
  node_upload["Saree Upload"]
  node_gallery["Loom Gallery"]
  node_contact["WhatsApp"]
end

subgraph group_weaver["Weaver Tools"]
  node_profile["Profile Management"]
  node_pricing["Fair Price Calculator"]
end

subgraph group_discovery["Discovery"]
  node_trends["Trend Board"]
  node_trend_cache[("Trend Cache")]
  node_heritage["Weaver Heritage"]
end

subgraph group_platform["App Platform"]
  node_auth["Authentication"]
  node_firestore[("Firebase Firestore")]
  node_storage[("Firebase Storage")]
  node_domain_contracts["Repository Contracts"]
end

node_weaver_actor(("Weaver"))
node_buyer_actor(("Buyer"))

node_weaver_actor -->|"manages profile"| node_profile
node_weaver_actor -->|"calculates price"| node_pricing
node_weaver_actor -->|"lists sarees"| node_upload
node_buyer_actor -->|"browses sarees"| node_gallery
node_gallery -->|"opens contact"| node_contact
node_weaver_actor -->|"explores trends"| node_trends
node_weaver_actor -->|"reads stories"| node_heritage
node_upload -->|"syncs listings"| node_firestore
node_upload -->|"stores images"| node_storage
node_trends -->|"caches trends"| node_trend_cache
node_auth -.->|"authenticates by phone"| node_firestore

click node_profile "https://github.com/veenashree-b/nammavastra/tree/master/app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/profile"
click node_pricing "https://github.com/veenashree-b/nammavastra/blob/master/app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/pricing/PricingCalculatorScreen.kt"
click node_upload "https://github.com/veenashree-b/nammavastra/tree/master/app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/upload"
click node_gallery "https://github.com/veenashree-b/nammavastra/tree/master/app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/gallery"
click node_trends "https://github.com/veenashree-b/nammavastra/tree/master/app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/trends"
click node_trend_cache "https://github.com/veenashree-b/nammavastra/tree/master/app/src/main/java/com/example/namma_vastraself_employment/data/local"
click node_heritage "https://github.com/veenashree-b/nammavastra/blob/master/app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/story/WeaverStoryScreen.kt"
click node_auth "https://github.com/veenashree-b/nammavastra/tree/master/app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/login"
click node_domain_contracts "https://github.com/veenashree-b/nammavastra/tree/master/app/src/main/java/com/example/namma_vastraself_employment/domain/repository"

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_upload,node_gallery,node_contact toneBlue
class node_profile,node_pricing toneAmber
class node_trends,node_trend_cache,node_heritage toneMint
class node_auth,node_firestore,node_storage,node_domain_contracts toneRose
class node_weaver_actor,node_buyer_actor toneIndigo
```

## Components

### Marketplace

- [Saree Upload](https://github.com/veenashree-b/nammavastra/tree/master/app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/upload): `app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/upload`
- [Loom Gallery](https://github.com/veenashree-b/nammavastra/tree/master/app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/gallery): `app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/gallery`
- **WhatsApp**

### Weaver Tools

- [Profile Management](https://github.com/veenashree-b/nammavastra/tree/master/app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/profile): `app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/profile`
- [Fair Price Calculator](https://github.com/veenashree-b/nammavastra/blob/master/app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/pricing/PricingCalculatorScreen.kt): `app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/pricing/PricingCalculatorScreen.kt`

### Discovery

- [Trend Board](https://github.com/veenashree-b/nammavastra/tree/master/app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/trends): `app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/trends`
- [Trend Cache](https://github.com/veenashree-b/nammavastra/tree/master/app/src/main/java/com/example/namma_vastraself_employment/data/local): `app/src/main/java/com/example/namma_vastraself_employment/data/local`
- [Weaver Heritage](https://github.com/veenashree-b/nammavastra/blob/master/app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/story/WeaverStoryScreen.kt): `app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/story/WeaverStoryScreen.kt`

### App Platform

- [Authentication](https://github.com/veenashree-b/nammavastra/tree/master/app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/login): `app/src/main/java/com/example/namma_vastraself_employment/presentation/screens/login`
- **Firebase Firestore**
- **Firebase Storage**
- [Repository Contracts](https://github.com/veenashree-b/nammavastra/tree/master/app/src/main/java/com/example/namma_vastraself_employment/domain/repository): `app/src/main/java/com/example/namma_vastraself_employment/domain/repository`

### Other components

- **Weaver**
- **Buyer**

## Connections

- Weaver → Profile Management: manages profile (evidence: `README.md`)
- Weaver → Fair Price Calculator: calculates price (evidence: `README.md`)
- Weaver → Saree Upload: lists sarees (evidence: `README.md`)
- Buyer → Loom Gallery: browses sarees (evidence: `README.md`)
- Loom Gallery → WhatsApp: opens contact (evidence: `README.md`)
- Weaver → Trend Board: explores trends (evidence: `README.md`)
- Weaver → Weaver Heritage: reads stories (evidence: `README.md`)
- Saree Upload → Firebase Firestore: syncs listings (evidence: `README.md`)
- Saree Upload → Firebase Storage: stores images (evidence: `README.md`)
- Trend Board → Trend Cache: caches trends (evidence: `README.md`)
- Authentication → Firebase Firestore: authenticates by phone (evidence: `README.md`)
