# raj-priyanshu45/micro-1 architecture

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

- Interactive diagram: https://gitdiagram.com/raj-priyanshu45/micro-1
- Repository: https://github.com/raj-priyanshu45/micro-1

## Overview

Lumen Bank is a frontend-only React mobile banking demo. Users navigate from the dashboard to send, receive, bill-payment, or top-up flows; each confirmed operation updates shared balance and activity state, which the dashboard and transaction views display. Profile supports settings and demo reset, while activity can be filtered. State persists in localStorage; the README explicitly rules out backend, authentication, and real payments. Some page and shell implementations were not excerpted, so their internal links are limited to documented routing or omitted where call ownership is not visible.

Main entry points: [`src/App.jsx`](https://github.com/raj-priyanshu45/micro-1/blob/master/src/App.jsx) (Route application), [`src/context/BankContext.jsx`](https://github.com/raj-priyanshu45/micro-1/blob/master/src/context/BankContext.jsx) (Bank state provider), [`src/pages/Payments.jsx`](https://github.com/raj-priyanshu45/micro-1/blob/master/src/pages/Payments.jsx) (Payment hub), [`src/pages/ReceiveMoney.jsx`](https://github.com/raj-priyanshu45/micro-1/blob/master/src/pages/ReceiveMoney.jsx) (Receive request)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App navigation"]
  node_app["Route application<br/>[App.jsx]"]
  node_shell["Screen shell<br/>[Shell.jsx]"]
  node_header["Screen header<br/>[ScreenHeader.jsx]"]
end

subgraph group_money["Money movement"]
  node_payments["Payment hub<br/>[Payments.jsx]"]
  node_send["Send money<br/>[SendMoney.jsx]"]
  node_receive["Receive request<br/>[ReceiveMoney.jsx]"]
  node_qr["Demo QR<br/>[DemoQr.jsx]"]
  node_bills["Bill payment<br/>[PayBills.jsx]"]
  node_add["Add money<br/>[AddMoney.jsx]"]
  node_success["Success display<br/>[SuccessState.jsx]"]
end

subgraph group_account["Account activity"]
  node_home["Dashboard<br/>[Home.jsx]"]
  node_transactions["Activity history<br/>[Transactions.jsx]"]
  node_transactionitem["Transaction row"]
  node_profile["Profile settings<br/>[Profile.jsx]"]
end

subgraph group_state["Demo state"]
  node_bank["Bank state provider<br/>[BankContext.jsx]"]
  node_storage[("Browser local storage")]
  node_mock["Demo account data<br/>[mock.js]"]
  node_format["Currency and date utilities<br/>[format.js]"]
end

node_customer(("Banking demo user"))

node_customer -->|"opens demo"| node_app
node_app -->|"provides state"| node_bank
node_app -->|"renders routes"| node_shell
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_payments
node_app -->|"routes to"| node_transactions
node_app -->|"routes to"| node_profile
node_app -->|"routes to"| node_send
node_app -->|"routes to"| node_receive
node_app -->|"routes to"| node_bills
node_app -->|"routes to"| node_add
node_receive -->|"renders QR"| node_qr
node_receive -->|"credits account"| node_bank
node_add -->|"credits account"| node_bank
node_add -->|"renders result"| node_success
node_receive -->|"renders result"| node_success
node_profile -->|"updates settings"| node_bank
node_home -->|"reads balance"| node_bank
node_home -->|"renders activity"| node_transactionitem
node_transactionitem -->|"formats values"| node_format
node_bank -->|"loads defaults"| node_mock
node_bank -->|"creates identifiers"| node_format
node_bank -->|"reads and writes"| node_storage
node_customer -.->|"initiates transfer"| node_send
node_send -.->|"debits account"| node_bank
node_customer -.->|"pays bill"| node_bills
node_bills -.->|"records debit"| node_bank
node_payments -.->|"offers transfer"| node_send
node_payments -.->|"offers request"| node_receive
node_payments -.->|"offers bills"| node_bills
node_payments -.->|"offers top-up"| node_add
node_transactions -.->|"reads activity"| node_bank
node_transactions -.->|"renders rows"| node_transactionitem

click node_app "https://github.com/raj-priyanshu45/micro-1/blob/master/src/App.jsx"
click node_shell "https://github.com/raj-priyanshu45/micro-1/blob/master/src/components/Shell.jsx"
click node_home "https://github.com/raj-priyanshu45/micro-1/blob/master/src/pages/Home.jsx"
click node_payments "https://github.com/raj-priyanshu45/micro-1/blob/master/src/pages/Payments.jsx"
click node_send "https://github.com/raj-priyanshu45/micro-1/blob/master/src/pages/SendMoney.jsx"
click node_receive "https://github.com/raj-priyanshu45/micro-1/blob/master/src/pages/ReceiveMoney.jsx"
click node_qr "https://github.com/raj-priyanshu45/micro-1/blob/master/src/components/DemoQr.jsx"
click node_bills "https://github.com/raj-priyanshu45/micro-1/blob/master/src/pages/PayBills.jsx"
click node_add "https://github.com/raj-priyanshu45/micro-1/blob/master/src/pages/AddMoney.jsx"
click node_success "https://github.com/raj-priyanshu45/micro-1/blob/master/src/components/SuccessState.jsx"
click node_transactions "https://github.com/raj-priyanshu45/micro-1/blob/master/src/pages/Transactions.jsx"
click node_transactionitem "https://github.com/raj-priyanshu45/micro-1/blob/master/src/components/TransactionItem.jsx"
click node_profile "https://github.com/raj-priyanshu45/micro-1/blob/master/src/pages/Profile.jsx"
click node_header "https://github.com/raj-priyanshu45/micro-1/blob/master/src/components/ScreenHeader.jsx"
click node_bank "https://github.com/raj-priyanshu45/micro-1/blob/master/src/context/BankContext.jsx"
click node_mock "https://github.com/raj-priyanshu45/micro-1/blob/master/src/data/mock.js"
click node_format "https://github.com/raj-priyanshu45/micro-1/blob/master/src/utils/format.js"

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_app,node_shell,node_header,node_customer toneBlue
class node_payments,node_send,node_receive,node_qr,node_bills,node_add,node_success toneAmber
class node_home,node_transactions,node_transactionitem,node_profile toneMint
class node_bank,node_storage,node_mock,node_format toneRose
```

## Components

### App navigation

- [Route application](https://github.com/raj-priyanshu45/micro-1/blob/master/src/App.jsx): `src/App.jsx`
- [Screen shell](https://github.com/raj-priyanshu45/micro-1/blob/master/src/components/Shell.jsx): `src/components/Shell.jsx`
- [Screen header](https://github.com/raj-priyanshu45/micro-1/blob/master/src/components/ScreenHeader.jsx): `src/components/ScreenHeader.jsx`

### Money movement

- [Payment hub](https://github.com/raj-priyanshu45/micro-1/blob/master/src/pages/Payments.jsx): `src/pages/Payments.jsx`
- [Send money](https://github.com/raj-priyanshu45/micro-1/blob/master/src/pages/SendMoney.jsx): `src/pages/SendMoney.jsx`
- [Receive request](https://github.com/raj-priyanshu45/micro-1/blob/master/src/pages/ReceiveMoney.jsx): `src/pages/ReceiveMoney.jsx`
- [Demo QR](https://github.com/raj-priyanshu45/micro-1/blob/master/src/components/DemoQr.jsx): `src/components/DemoQr.jsx`
- [Bill payment](https://github.com/raj-priyanshu45/micro-1/blob/master/src/pages/PayBills.jsx): `src/pages/PayBills.jsx`
- [Add money](https://github.com/raj-priyanshu45/micro-1/blob/master/src/pages/AddMoney.jsx): `src/pages/AddMoney.jsx`
- [Success display](https://github.com/raj-priyanshu45/micro-1/blob/master/src/components/SuccessState.jsx): `src/components/SuccessState.jsx`

### Account activity

- [Dashboard](https://github.com/raj-priyanshu45/micro-1/blob/master/src/pages/Home.jsx): `src/pages/Home.jsx`
- [Activity history](https://github.com/raj-priyanshu45/micro-1/blob/master/src/pages/Transactions.jsx): `src/pages/Transactions.jsx`
- [Transaction row](https://github.com/raj-priyanshu45/micro-1/blob/master/src/components/TransactionItem.jsx): `src/components/TransactionItem.jsx`
- [Profile settings](https://github.com/raj-priyanshu45/micro-1/blob/master/src/pages/Profile.jsx): `src/pages/Profile.jsx`

### Demo state

- [Bank state provider](https://github.com/raj-priyanshu45/micro-1/blob/master/src/context/BankContext.jsx): `src/context/BankContext.jsx`
- **Browser local storage**
- [Demo account data](https://github.com/raj-priyanshu45/micro-1/blob/master/src/data/mock.js): `src/data/mock.js`
- [Currency and date utilities](https://github.com/raj-priyanshu45/micro-1/blob/master/src/utils/format.js): `src/utils/format.js`

### Other components

- **Banking demo user**

## Connections

- Banking demo user → Route application: opens demo (evidence: `README.md`)
- Route application → Bank state provider: provides state (evidence: `src/App.jsx`)
- Route application → Screen shell: renders routes (evidence: `src/App.jsx`)
- Route application → Dashboard: routes to (evidence: `src/App.jsx`)
- Route application → Payment hub: routes to (evidence: `src/App.jsx`)
- Route application → Activity history: routes to (evidence: `src/App.jsx`)
- Route application → Profile settings: routes to (evidence: `src/App.jsx`)
- Route application → Send money: routes to (evidence: `src/App.jsx`)
- Route application → Receive request: routes to (evidence: `src/App.jsx`)
- Route application → Bill payment: routes to (evidence: `src/App.jsx`)
- Route application → Add money: routes to (evidence: `src/App.jsx`)
- Receive request → Demo QR: renders QR (evidence: `src/pages/ReceiveMoney.jsx`)
- Receive request → Bank state provider: credits account (evidence: `src/pages/ReceiveMoney.jsx`)
- Add money → Bank state provider: credits account (evidence: `src/pages/AddMoney.jsx`)
- Add money → Success display: renders result (evidence: `src/pages/AddMoney.jsx`)
- Receive request → Success display: renders result (evidence: `src/pages/ReceiveMoney.jsx`)
- Profile settings → Bank state provider: updates settings (evidence: `src/pages/Profile.jsx`)
- Dashboard → Bank state provider: reads balance (evidence: `src/pages/Home.jsx`)
- Dashboard → Transaction row: renders activity (evidence: `src/pages/Home.jsx`)
- Transaction row → Currency and date utilities: formats values (evidence: `src/components/TransactionItem.jsx`)
- Bank state provider → Demo account data: loads defaults (evidence: `src/context/BankContext.jsx`)
- Bank state provider → Currency and date utilities: creates identifiers (evidence: `src/context/BankContext.jsx`)
- Bank state provider → Browser local storage: reads and writes (evidence: `src/context/BankContext.jsx`)
- Banking demo user → Send money: initiates transfer
- Send money → Bank state provider: debits account
- Banking demo user → Bill payment: pays bill
- Bill payment → Bank state provider: records debit
- Payment hub → Send money: offers transfer
- Payment hub → Receive request: offers request
- Payment hub → Bill payment: offers bills
- Payment hub → Add money: offers top-up
- Activity history → Bank state provider: reads activity
- Activity history → Transaction row: renders rows
