# notsanta20/zenith-pay-app architecture

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

- Interactive diagram: https://gitdiagram.com/notsanta20/zenith-pay-app
- Repository: https://github.com/notsanta20/zenith-pay-app

## Overview

Zenith Pay is a React frontend for banking tasks, using a backend API gateway for authentication and account data. Users register or log in, then backend bootstrap state directs them through profile and account onboarding before entering the app to view balances, transfer funds, manage transactions, accounts, profile settings, and notifications. The sampled code confirms routing, registration, authentication bootstrap, and selected API calls; several feature implementations were not sampled, so their internal links are limited to documented capabilities.

Main entry points: [`src/app/Router.tsx`](https://github.com/notsanta20/zenith-pay-app/blob/main/src/app/Router.tsx) (Route dispatch), [`src/apis/getRequests.ts`](https://github.com/notsanta20/zenith-pay-app/blob/main/src/apis/getRequests.ts) (API requests), [`src/apis/postRequests.ts`](https://github.com/notsanta20/zenith-pay-app/blob/main/src/apis/postRequests.ts) (Write requests), [`src/context/AuthProvider.tsx`](https://github.com/notsanta20/zenith-pay-app/blob/main/src/context/AuthProvider.tsx) (Auth provider)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and access"]
  node_router["Route dispatch<br/>[Router.tsx]"]
  node_register["Registration<br/>[RegisterForm.tsx]"]
  node_login["Login<br/>[LoginForm.tsx]"]
end

subgraph group_onboard["Onboarding"]
  node_onboarding["Onboarding state<br/>[AuthProvider.tsx]"]
  node_profilecreate["Create profile<br/>[CreateProfile.tsx]"]
  node_accountcreate["Create account<br/>[CreateAccount.tsx]"]
end

subgraph group_banking["Banking workspace"]
  node_dashboard["Dashboard<br/>[Dashboard.tsx]"]
  node_transfer["Fund transfer<br/>[Transact.tsx]"]
  node_transactions["Transactions<br/>[Transactions.tsx]"]
  node_accounts["Accounts<br/>[Accounts.tsx]"]
  node_profile["Profile settings<br/>[Profile.tsx]"]
  node_notifications["Notifications<br/>[Notifications.tsx]"]
end

subgraph group_services["API and state"]
  node_auth["Auth provider<br/>[AuthProvider.tsx]"]
  node_authcontext["Auth context<br/>[AuthContext.ts]"]
  node_api["API requests<br/>[getRequests.ts]"]
  node_mutations["Write requests<br/>[postRequests.ts]"]
  node_api_config["HTTP configuration<br/>[apiConfig.ts]"]
end

node_user(("User"))
node_gateway{{"Backend gateway"}}

node_user -->|"navigates"| node_router
node_router -->|"routes to"| node_register
node_router -->|"routes to"| node_login
node_router -->|"routes to"| node_profilecreate
node_router -->|"routes to"| node_accountcreate
node_router -->|"routes to"| node_dashboard
node_router -->|"routes to"| node_transfer
node_router -->|"routes to"| node_transactions
node_router -->|"routes to"| node_accounts
node_router -->|"routes to"| node_profile
node_router -->|"routes to"| node_notifications
node_register -->|"submits via"| node_mutations
node_auth -->|"verifies with"| node_api
node_auth -->|"loads bootstrap"| node_api
node_auth -->|"provides state"| node_authcontext
node_auth -->|"derives stage"| node_onboarding
node_onboarding -->|"directs to"| node_profilecreate
node_onboarding -->|"directs to"| node_accountcreate
node_onboarding -->|"directs to"| node_dashboard
node_dashboard -->|"loads balance"| node_api
node_transfer -->|"loads data"| node_api
node_transfer -->|"submits transfer"| node_mutations
node_profile -->|"reads profile"| node_api
node_profile -->|"updates profile"| node_mutations
node_api -->|"uses client"| node_api_config
node_mutations -->|"uses client"| node_api_config
node_api_config -->|"sends requests"| node_gateway
node_transactions -.->|"loads transactions"| node_api
node_accounts -.->|"loads accounts"| node_api
node_notifications -.->|"loads inbox"| node_api
node_profile -.->|"changes preferences"| node_mutations

click node_router "https://github.com/notsanta20/zenith-pay-app/blob/main/src/app/Router.tsx"
click node_register "https://github.com/notsanta20/zenith-pay-app/blob/main/src/components/custom/RegisterForm.tsx"
click node_login "https://github.com/notsanta20/zenith-pay-app/blob/main/src/components/custom/LoginForm.tsx"
click node_auth "https://github.com/notsanta20/zenith-pay-app/blob/main/src/context/AuthProvider.tsx"
click node_authcontext "https://github.com/notsanta20/zenith-pay-app/blob/main/src/context/AuthContext.ts"
click node_onboarding "https://github.com/notsanta20/zenith-pay-app/blob/main/src/context/AuthProvider.tsx"
click node_profilecreate "https://github.com/notsanta20/zenith-pay-app/blob/main/src/app/routes/app/CreateProfile.tsx"
click node_accountcreate "https://github.com/notsanta20/zenith-pay-app/blob/main/src/app/routes/app/CreateAccount.tsx"
click node_dashboard "https://github.com/notsanta20/zenith-pay-app/blob/main/src/app/routes/app/Dashboard.tsx"
click node_transfer "https://github.com/notsanta20/zenith-pay-app/blob/main/src/components/custom/Transfer/Transact.tsx"
click node_transactions "https://github.com/notsanta20/zenith-pay-app/blob/main/src/app/routes/app/Transactions.tsx"
click node_accounts "https://github.com/notsanta20/zenith-pay-app/blob/main/src/app/routes/app/Accounts.tsx"
click node_profile "https://github.com/notsanta20/zenith-pay-app/blob/main/src/app/routes/app/Profile.tsx"
click node_notifications "https://github.com/notsanta20/zenith-pay-app/blob/main/src/app/routes/app/Notifications.tsx"
click node_api "https://github.com/notsanta20/zenith-pay-app/blob/main/src/apis/getRequests.ts"
click node_mutations "https://github.com/notsanta20/zenith-pay-app/blob/main/src/apis/postRequests.ts"
click node_api_config "https://github.com/notsanta20/zenith-pay-app/blob/main/src/apis/apiConfig.ts"

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_router,node_register,node_login,node_user toneBlue
class node_onboarding,node_profilecreate,node_accountcreate toneAmber
class node_dashboard,node_transfer,node_transactions,node_accounts,node_profile,node_notifications toneMint
class node_auth,node_authcontext,node_api,node_mutations,node_api_config toneRose
class node_gateway toneIndigo
```

## Components

### Entry and access

- [Route dispatch](https://github.com/notsanta20/zenith-pay-app/blob/main/src/app/Router.tsx): `src/app/Router.tsx`
- [Registration](https://github.com/notsanta20/zenith-pay-app/blob/main/src/components/custom/RegisterForm.tsx): `src/components/custom/RegisterForm.tsx`
- [Login](https://github.com/notsanta20/zenith-pay-app/blob/main/src/components/custom/LoginForm.tsx): `src/components/custom/LoginForm.tsx`

### Onboarding

- [Onboarding state](https://github.com/notsanta20/zenith-pay-app/blob/main/src/context/AuthProvider.tsx): `src/context/AuthProvider.tsx`
- [Create profile](https://github.com/notsanta20/zenith-pay-app/blob/main/src/app/routes/app/CreateProfile.tsx): `src/app/routes/app/CreateProfile.tsx`
- [Create account](https://github.com/notsanta20/zenith-pay-app/blob/main/src/app/routes/app/CreateAccount.tsx): `src/app/routes/app/CreateAccount.tsx`

### Banking workspace

- [Dashboard](https://github.com/notsanta20/zenith-pay-app/blob/main/src/app/routes/app/Dashboard.tsx): `src/app/routes/app/Dashboard.tsx`
- [Fund transfer](https://github.com/notsanta20/zenith-pay-app/blob/main/src/components/custom/Transfer/Transact.tsx): `src/components/custom/Transfer/Transact.tsx`
- [Transactions](https://github.com/notsanta20/zenith-pay-app/blob/main/src/app/routes/app/Transactions.tsx): `src/app/routes/app/Transactions.tsx`
- [Accounts](https://github.com/notsanta20/zenith-pay-app/blob/main/src/app/routes/app/Accounts.tsx): `src/app/routes/app/Accounts.tsx`
- [Profile settings](https://github.com/notsanta20/zenith-pay-app/blob/main/src/app/routes/app/Profile.tsx): `src/app/routes/app/Profile.tsx`
- [Notifications](https://github.com/notsanta20/zenith-pay-app/blob/main/src/app/routes/app/Notifications.tsx): `src/app/routes/app/Notifications.tsx`

### API and state

- [Auth provider](https://github.com/notsanta20/zenith-pay-app/blob/main/src/context/AuthProvider.tsx): `src/context/AuthProvider.tsx`
- [Auth context](https://github.com/notsanta20/zenith-pay-app/blob/main/src/context/AuthContext.ts): `src/context/AuthContext.ts`
- [API requests](https://github.com/notsanta20/zenith-pay-app/blob/main/src/apis/getRequests.ts): `src/apis/getRequests.ts`
- [Write requests](https://github.com/notsanta20/zenith-pay-app/blob/main/src/apis/postRequests.ts): `src/apis/postRequests.ts`
- [HTTP configuration](https://github.com/notsanta20/zenith-pay-app/blob/main/src/apis/apiConfig.ts): `src/apis/apiConfig.ts`

### Other components

- **User**
- **Backend gateway**

## Connections

- User → Route dispatch: navigates (evidence: `src/app/Router.tsx`)
- Route dispatch → Registration: routes to (evidence: `src/app/Router.tsx`)
- Route dispatch → Login: routes to (evidence: `src/app/Router.tsx`)
- Route dispatch → Create profile: routes to (evidence: `src/app/Router.tsx`)
- Route dispatch → Create account: routes to (evidence: `src/app/Router.tsx`)
- Route dispatch → Dashboard: routes to (evidence: `src/app/Router.tsx`)
- Route dispatch → Fund transfer: routes to (evidence: `src/app/Router.tsx`)
- Route dispatch → Transactions: routes to (evidence: `src/app/Router.tsx`)
- Route dispatch → Accounts: routes to (evidence: `src/app/Router.tsx`)
- Route dispatch → Profile settings: routes to (evidence: `src/app/Router.tsx`)
- Route dispatch → Notifications: routes to (evidence: `src/app/Router.tsx`)
- Registration → Write requests: submits via (evidence: `src/components/custom/RegisterForm.tsx`)
- Auth provider → API requests: verifies with (evidence: `src/context/AuthProvider.tsx`)
- Auth provider → API requests: loads bootstrap (evidence: `src/context/AuthProvider.tsx`)
- Auth provider → Auth context: provides state (evidence: `src/context/AuthProvider.tsx`)
- Auth provider → Onboarding state: derives stage (evidence: `src/context/AuthProvider.tsx`)
- Onboarding state → Create profile: directs to (evidence: `README.md`)
- Onboarding state → Create account: directs to (evidence: `README.md`)
- Onboarding state → Dashboard: directs to (evidence: `README.md`)
- Dashboard → API requests: loads balance
- Fund transfer → API requests: loads data (evidence: `src/components/custom/Transfer/Transact.tsx`)
- Fund transfer → Write requests: submits transfer (evidence: `src/components/custom/Transfer/Transact.tsx`)
- Profile settings → API requests: reads profile
- Profile settings → Write requests: updates profile
- API requests → HTTP configuration: uses client (evidence: `src/apis/getRequests.ts`)
- Write requests → HTTP configuration: uses client (evidence: `src/apis/postRequests.ts`)
- HTTP configuration → Backend gateway: sends requests (evidence: `README.md`)
- Transactions → API requests: loads transactions
- Accounts → API requests: loads accounts
- Notifications → API requests: loads inbox
- Profile settings → Write requests: changes preferences
