# pg-cashflow/pg-go architecture

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

- Interactive diagram: https://gitdiagram.com/pg-cashflow/pg-go
- Repository: https://github.com/pg-cashflow/pg-go

## Overview

pg-go is described as a Go API and React PWA for PG/hostel rent collection. Its documented capabilities cover anniversary-based tenant billing, per-due QR collection, UPI payment matching, and automated reminders and escalation. The README does not specify users, module paths, or how the API and PWA connect to those capabilities; the graph therefore preserves the product stages without asserting undocumented calls or data flows. No source excerpts were available to verify implementation details.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_pwa["React PWA"]
  node_api["Go API"]
end

subgraph group_billing["Rent billing"]
  node_tenant["Tenant"]
  node_anniversary["Anniversary billing"]
  node_due["Rent due"]
end

subgraph group_collection["Payments"]
  node_qr["Per-due QR"]
  node_upi["UPI matching"]
end

subgraph group_engagement["Reminders"]
  node_reminders["Reminders"]
  node_escalation["Escalation"]
end

node_operator(("PG/hostel operator"))

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,node_api toneBlue
class node_tenant,node_anniversary,node_due toneAmber
class node_qr,node_upi toneMint
class node_reminders,node_escalation toneRose
class node_operator toneIndigo
```

## Components

### Application

- **React PWA**
- **Go API**

### Rent billing

- **Tenant**
- **Anniversary billing**
- **Rent due**

### Payments

- **Per-due QR**
- **UPI matching**

### Reminders

- **Reminders**
- **Escalation**

### Other components

- **PG/hostel operator**
