# himanshudangwal16-gemini/bolo2kaam architecture

> Architecture diagram of the GitHub repository himanshudangwal16-gemini/bolo2kaam, 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/himanshudangwal16-gemini/bolo2kaam
- Repository: https://github.com/himanshudangwal16-gemini/bolo2kaam

## Overview

KhataVani is described as a real-time, code-switched voice copilot for kirana merchants. The documented user workflow is merchant voice interaction through a React PWA with a FastAPI backend, using Gemini Live on Vertex AI and Firestore. The file tree contains no application source, so implementation paths and finer-grained call or data-flow relationships cannot be verified; the graph reflects only README-documented architecture.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client"]
  node_pwa["React PWA"]
end

subgraph group_services["Backend services"]
  node_api["FastAPI backend"]
  node_gemini["Gemini Live on Vertex AI"]
  node_firestore[("Firestore")]
end

node_merchant(("Kirana merchant"))

node_merchant -->|"uses voice"| node_pwa
node_pwa -->|"voice operations"| node_api
node_api -->|"powered by"| node_gemini
node_api -->|"powered by"| node_firestore

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_pwa toneBlue
class node_api,node_gemini,node_firestore toneAmber
class node_merchant toneIndigo
```

## Components

### Client

- **React PWA**

### Backend services

- **FastAPI backend**
- **Gemini Live on Vertex AI**
- **Firestore**

### Other components

- **Kirana merchant**

## Connections

- Kirana merchant → React PWA: uses voice (evidence: `README.md`)
- React PWA → FastAPI backend: voice operations (evidence: `README.md`)
- FastAPI backend → Gemini Live on Vertex AI: powered by (evidence: `README.md`)
- FastAPI backend → Firestore: powered by (evidence: `README.md`)
