# neobank-organization/neobank architecture

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

- Interactive diagram: https://gitdiagram.com/neobank-organization/neobank
- Repository: https://github.com/neobank-organization/neobank

## Overview

NeoBank is a retail internet-banking frontend. Users enter through public authentication or protected routes, then use account, beneficiary, transfer, scheduling, statement, and loan workflows; branch administrators have a separate approval dashboard. The README also documents advisory AI capabilities and an integration/UAT harness. The graph reflects route wiring and sampled calls; several product branches are documented but their internal implementation and connections were not sampled, so those links are omitted.

Main entry points: [`src/routes/AppRoutes.tsx`](https://github.com/neobank-organization/neobank/blob/main/src/routes/AppRoutes.tsx) (Route dispatcher), [`src/components/layout/AppLayout.tsx`](https://github.com/neobank-organization/neobank/blob/main/src/components/layout/AppLayout.tsx) (Banking shell), [`src/App.tsx`](https://github.com/neobank-organization/neobank/blob/main/src/App.tsx) (Application wrapper), [`src/features/beneficiaries/AddBeneficiaryForm.tsx`](https://github.com/neobank-organization/neobank/blob/main/src/features/beneficiaries/AddBeneficiaryForm.tsx) (Add beneficiary)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundation["App and security"]
  node_app["Application wrapper<br/>[App.tsx]"]
  node_routes["Route dispatcher<br/>[AppRoutes.tsx]"]
  node_auth["Login and signup"]
  node_guard["Protected routes<br/>[ProtectedRoute.tsx]"]
  node_layout["Banking shell<br/>[AppLayout.tsx]"]
  node_session["Session timeout"]
  node_authservice["Auth service<br/>[authService.ts]"]
  node_apiclient["API client<br/>[apiClient.ts]"]
end

subgraph group_banking["Retail banking"]
  node_accounts["Accounts dashboard"]
  node_spend["Spend insights"]
  node_beneficiaries["Beneficiary management"]
  node_beneficiaryform["Add beneficiary"]
  node_ifsc["IFSC lookup<br/>[IFSCLookup.tsx]"]
  node_transfers["Fund transfers"]
  node_upi["UPI and verification"]
  node_scheduling["Scheduled transfers"]
  node_statements["Statements"]
  node_loans["Loan applications"]
  node_emi["EMI calculator<br/>[EMICalculator.tsx]"]
end

subgraph group_assistance["AI and advisory"]
  node_spendai["Spend AI advisory"]
  node_fraud["Transfer fraud advisory"]
  node_kyc["KYC document check"]
  node_loanai["Loan eligibility advisory"]
  node_assistant["Banking assistant"]
end

subgraph group_operations["Admin and integration"]
  node_branchadmin["Branch approvals"]
  node_uat["UAT scenarios"]
  node_globalstate["Shared integration state"]
end

node_customer(("Bank customer"))
node_adminuser(("Branch administrator"))

node_customer -->|"opens banking"| node_routes
node_adminuser -->|"opens admin"| node_routes
node_app -->|"renders routes"| node_routes
node_app -->|"wraps state"| node_globalstate
node_app -.->|"wraps security"| node_guard
node_routes -->|"routes public access"| node_auth
node_routes -->|"protects pages"| node_guard
node_routes -->|"renders shell"| node_layout
node_routes -->|"routes accounts"| node_accounts
node_routes -->|"routes insights"| node_spend
node_routes -->|"routes beneficiaries"| node_beneficiaries
node_routes -->|"routes add form"| node_beneficiaryform
node_beneficiaryform -->|"renders lookup"| node_ifsc
node_routes -->|"routes transfers"| node_transfers
node_routes -->|"routes schedules"| node_scheduling
node_routes -->|"routes statements"| node_statements
node_routes -->|"routes loans"| node_loans
node_routes -->|"routes calculator"| node_emi
node_routes -->|"routes admin"| node_branchadmin
node_routes -->|"routes UAT"| node_uat
node_layout -->|"starts timeout"| node_session
node_layout -->|"calls logout"| node_authservice
node_authservice -->|"sends auth requests"| node_apiclient
node_spend -.->|"provides advisory"| node_spendai
node_transfers -.->|"provides risk checks"| node_fraud
node_beneficiaryform -.->|"supports document checks"| node_kyc
node_loans -.->|"provides eligibility advice"| node_loanai
node_layout -.->|"offers assistant"| node_assistant
node_transfers -.->|"supports secured UPI"| node_upi

click node_app "https://github.com/neobank-organization/neobank/blob/main/src/App.tsx"
click node_routes "https://github.com/neobank-organization/neobank/blob/main/src/routes/AppRoutes.tsx"
click node_auth "https://github.com/neobank-organization/neobank/tree/main/src/features/auth"
click node_guard "https://github.com/neobank-organization/neobank/blob/main/src/routes/ProtectedRoute.tsx"
click node_layout "https://github.com/neobank-organization/neobank/blob/main/src/components/layout/AppLayout.tsx"
click node_session "https://github.com/neobank-organization/neobank/blob/main/src/hooks/useSessionTimeout.ts"
click node_authservice "https://github.com/neobank-organization/neobank/blob/main/src/services/authService.ts"
click node_apiclient "https://github.com/neobank-organization/neobank/blob/main/src/services/apiClient.ts"
click node_accounts "https://github.com/neobank-organization/neobank/blob/main/src/features/accounts/AccountsDashboard.tsx"
click node_spend "https://github.com/neobank-organization/neobank/blob/main/src/features/accounts/spend-insights/SpendInsightsDashboard.tsx"
click node_beneficiaries "https://github.com/neobank-organization/neobank/tree/main/src/features/beneficiaries"
click node_beneficiaryform "https://github.com/neobank-organization/neobank/blob/main/src/features/beneficiaries/AddBeneficiaryForm.tsx"
click node_ifsc "https://github.com/neobank-organization/neobank/blob/main/src/features/beneficiaries/IFSCLookup.tsx"
click node_transfers "https://github.com/neobank-organization/neobank/tree/main/src/features/fund-transfer"
click node_upi "https://github.com/neobank-organization/neobank/tree/main/src/features/transfer-security-upi"
click node_scheduling "https://github.com/neobank-organization/neobank/blob/main/src/features/scheduling-statements/ScheduledTransfersList.tsx"
click node_statements "https://github.com/neobank-organization/neobank/blob/main/src/features/scheduling-statements/StatementsDashboard.tsx"
click node_loans "https://github.com/neobank-organization/neobank/blob/main/src/features/loans/LoanApplicationForm.tsx"
click node_emi "https://github.com/neobank-organization/neobank/blob/main/src/features/loans/EMICalculator.tsx"
click node_branchadmin "https://github.com/neobank-organization/neobank/blob/main/src/features/branch-admin/BranchAdminDashboard.tsx"
click node_uat "https://github.com/neobank-organization/neobank/blob/main/src/features/integration-uat/UATScenarioRunner.tsx"
click node_globalstate "https://github.com/neobank-organization/neobank/blob/main/src/features/integration-uat/GlobalStateProvider.tsx"
click node_spendai "https://github.com/neobank-organization/neobank/tree/main/src/features/accounts/spend-insights"
click node_fraud "https://github.com/neobank-organization/neobank/tree/main/src/features/fund-transfer/fraud-detection"
click node_kyc "https://github.com/neobank-organization/neobank/tree/main/src/features/beneficiaries/kyc-document-check"
click node_loanai "https://github.com/neobank-organization/neobank/tree/main/src/features/loans/ai-loan-eligibility"
click node_assistant "https://github.com/neobank-organization/neobank/tree/main/src/features/transfer-security-upi/banking-assistant"

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_routes,node_auth,node_guard,node_layout,node_session,node_authservice,node_apiclient toneBlue
class node_accounts,node_spend,node_beneficiaries,node_beneficiaryform,node_ifsc,node_transfers,node_upi,node_scheduling,node_statements,node_loans,node_emi toneAmber
class node_spendai,node_fraud,node_kyc,node_loanai,node_assistant toneMint
class node_branchadmin,node_uat,node_globalstate toneRose
class node_customer,node_adminuser toneIndigo
```

## Components

### App and security

- [Application wrapper](https://github.com/neobank-organization/neobank/blob/main/src/App.tsx): `src/App.tsx`
- [Route dispatcher](https://github.com/neobank-organization/neobank/blob/main/src/routes/AppRoutes.tsx): `src/routes/AppRoutes.tsx`
- [Login and signup](https://github.com/neobank-organization/neobank/tree/main/src/features/auth): `src/features/auth`
- [Protected routes](https://github.com/neobank-organization/neobank/blob/main/src/routes/ProtectedRoute.tsx): `src/routes/ProtectedRoute.tsx`
- [Banking shell](https://github.com/neobank-organization/neobank/blob/main/src/components/layout/AppLayout.tsx): `src/components/layout/AppLayout.tsx`
- [Session timeout](https://github.com/neobank-organization/neobank/blob/main/src/hooks/useSessionTimeout.ts): `src/hooks/useSessionTimeout.ts`
- [Auth service](https://github.com/neobank-organization/neobank/blob/main/src/services/authService.ts): `src/services/authService.ts`
- [API client](https://github.com/neobank-organization/neobank/blob/main/src/services/apiClient.ts): `src/services/apiClient.ts`

### Retail banking

- [Accounts dashboard](https://github.com/neobank-organization/neobank/blob/main/src/features/accounts/AccountsDashboard.tsx): `src/features/accounts/AccountsDashboard.tsx`
- [Spend insights](https://github.com/neobank-organization/neobank/blob/main/src/features/accounts/spend-insights/SpendInsightsDashboard.tsx): `src/features/accounts/spend-insights/SpendInsightsDashboard.tsx`
- [Beneficiary management](https://github.com/neobank-organization/neobank/tree/main/src/features/beneficiaries): `src/features/beneficiaries`
- [Add beneficiary](https://github.com/neobank-organization/neobank/blob/main/src/features/beneficiaries/AddBeneficiaryForm.tsx): `src/features/beneficiaries/AddBeneficiaryForm.tsx`
- [IFSC lookup](https://github.com/neobank-organization/neobank/blob/main/src/features/beneficiaries/IFSCLookup.tsx): `src/features/beneficiaries/IFSCLookup.tsx`
- [Fund transfers](https://github.com/neobank-organization/neobank/tree/main/src/features/fund-transfer): `src/features/fund-transfer`
- [UPI and verification](https://github.com/neobank-organization/neobank/tree/main/src/features/transfer-security-upi): `src/features/transfer-security-upi`
- [Scheduled transfers](https://github.com/neobank-organization/neobank/blob/main/src/features/scheduling-statements/ScheduledTransfersList.tsx): `src/features/scheduling-statements/ScheduledTransfersList.tsx`
- [Statements](https://github.com/neobank-organization/neobank/blob/main/src/features/scheduling-statements/StatementsDashboard.tsx): `src/features/scheduling-statements/StatementsDashboard.tsx`
- [Loan applications](https://github.com/neobank-organization/neobank/blob/main/src/features/loans/LoanApplicationForm.tsx): `src/features/loans/LoanApplicationForm.tsx`
- [EMI calculator](https://github.com/neobank-organization/neobank/blob/main/src/features/loans/EMICalculator.tsx): `src/features/loans/EMICalculator.tsx`

### AI and advisory

- [Spend AI advisory](https://github.com/neobank-organization/neobank/tree/main/src/features/accounts/spend-insights): `src/features/accounts/spend-insights`
- [Transfer fraud advisory](https://github.com/neobank-organization/neobank/tree/main/src/features/fund-transfer/fraud-detection): `src/features/fund-transfer/fraud-detection`
- [KYC document check](https://github.com/neobank-organization/neobank/tree/main/src/features/beneficiaries/kyc-document-check): `src/features/beneficiaries/kyc-document-check`
- [Loan eligibility advisory](https://github.com/neobank-organization/neobank/tree/main/src/features/loans/ai-loan-eligibility): `src/features/loans/ai-loan-eligibility`
- [Banking assistant](https://github.com/neobank-organization/neobank/tree/main/src/features/transfer-security-upi/banking-assistant): `src/features/transfer-security-upi/banking-assistant`

### Admin and integration

- [Branch approvals](https://github.com/neobank-organization/neobank/blob/main/src/features/branch-admin/BranchAdminDashboard.tsx): `src/features/branch-admin/BranchAdminDashboard.tsx`
- [UAT scenarios](https://github.com/neobank-organization/neobank/blob/main/src/features/integration-uat/UATScenarioRunner.tsx): `src/features/integration-uat/UATScenarioRunner.tsx`
- [Shared integration state](https://github.com/neobank-organization/neobank/blob/main/src/features/integration-uat/GlobalStateProvider.tsx): `src/features/integration-uat/GlobalStateProvider.tsx`

### Other components

- **Bank customer**
- **Branch administrator**

## Connections

- Bank customer → Route dispatcher: opens banking (evidence: `src/routes/AppRoutes.tsx`)
- Branch administrator → Route dispatcher: opens admin (evidence: `src/routes/AppRoutes.tsx`)
- Application wrapper → Route dispatcher: renders routes (evidence: `src/App.tsx`)
- Application wrapper → Shared integration state: wraps state (evidence: `src/App.tsx`)
- Application wrapper → Protected routes: wraps security
- Route dispatcher → Login and signup: routes public access (evidence: `src/routes/AppRoutes.tsx`)
- Route dispatcher → Protected routes: protects pages (evidence: `src/routes/AppRoutes.tsx`)
- Route dispatcher → Banking shell: renders shell (evidence: `src/routes/AppRoutes.tsx`)
- Route dispatcher → Accounts dashboard: routes accounts (evidence: `src/routes/AppRoutes.tsx`)
- Route dispatcher → Spend insights: routes insights (evidence: `src/routes/AppRoutes.tsx`)
- Route dispatcher → Beneficiary management: routes beneficiaries (evidence: `src/routes/AppRoutes.tsx`)
- Route dispatcher → Add beneficiary: routes add form (evidence: `src/routes/AppRoutes.tsx`)
- Add beneficiary → IFSC lookup: renders lookup (evidence: `src/features/beneficiaries/AddBeneficiaryForm.tsx`)
- Route dispatcher → Fund transfers: routes transfers (evidence: `src/routes/AppRoutes.tsx`)
- Route dispatcher → Scheduled transfers: routes schedules (evidence: `src/routes/AppRoutes.tsx`)
- Route dispatcher → Statements: routes statements (evidence: `src/routes/AppRoutes.tsx`)
- Route dispatcher → Loan applications: routes loans (evidence: `src/routes/AppRoutes.tsx`)
- Route dispatcher → EMI calculator: routes calculator (evidence: `src/routes/AppRoutes.tsx`)
- Route dispatcher → Branch approvals: routes admin (evidence: `src/routes/AppRoutes.tsx`)
- Route dispatcher → UAT scenarios: routes UAT (evidence: `src/routes/AppRoutes.tsx`)
- Banking shell → Session timeout: starts timeout (evidence: `src/components/layout/AppLayout.tsx`)
- Banking shell → Auth service: calls logout (evidence: `src/components/layout/AppLayout.tsx`)
- Auth service → API client: sends auth requests (evidence: `src/services/authService.ts`)
- Spend insights → Spend AI advisory: provides advisory
- Fund transfers → Transfer fraud advisory: provides risk checks
- Add beneficiary → KYC document check: supports document checks
- Loan applications → Loan eligibility advisory: provides eligibility advice
- Banking shell → Banking assistant: offers assistant
- Fund transfers → UPI and verification: supports secured UPI
