# openmf/mifos-gazelle architecture

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

- Interactive diagram: https://gitdiagram.com/openmf/mifos-gazelle
- Repository: https://github.com/openmf/mifos-gazelle

## Overview

Mifos Gazelle is a Kubernetes deployment tool for a digital public-finance stack. Its principal workflow is configuring an environment, then deploying the core banking, payment orchestration, and payment-switch services. Documented extensions include OpenG2P and OpenSPP deployments, bulk disbursements, and Mastercard cross-border payments. The tree and README support the deployment map; sampled utility excerpts support batch submission and demo flows. Deployment internals were not sampled, so links among deployment components reflect README-level documentation rather than inspected calls.

Main entry points: [`src/deployer/deployer.sh`](https://github.com/openmf/mifos-gazelle/blob/dev/src/deployer/deployer.sh) (Deploy Coordinator), [`src/deployer/paymenthub.sh`](https://github.com/openmf/mifos-gazelle/blob/dev/src/deployer/paymenthub.sh) (Payment Hub EE), [`src/utils/openspp/openspp-agri-demo.py`](https://github.com/openmf/mifos-gazelle/blob/dev/src/utils/openspp/openspp-agri-demo.py) (OpenSPP Agri Demo), [`src/deployer/mifosx.sh`](https://github.com/openmf/mifos-gazelle/blob/dev/src/deployer/mifosx.sh) (MifosX Banking)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_deployment["Deployment Control"]
  node_env_setup["Environment Setup"]
  node_run_entry["Command Entry<br/>[run.sh]"]
  node_deployer["Deploy Coordinator<br/>[deployer.sh]"]
  node_config["Stack Configuration<br/>[config.ini]"]
  node_helm["Helm Deployments"]
end

subgraph group_payment["Payment Stack"]
  node_mifos["MifosX Banking<br/>[mifosx.sh]"]
  node_paymenthub["Payment Hub EE<br/>[paymenthub.sh]"]
  node_vnext["Mojaloop vNext<br/>[vnext.sh]"]
  node_orchestration["Payment Workflows"]
  node_mastercard["Mastercard Connector<br/>[mastercard.sh]"]
end

subgraph group_extensions["Optional Platforms"]
  node_openg2p["OpenG2P Platform<br/>[openg2p.sh]"]
  node_openspp["OpenSPP Platform<br/>[openspp.sh]"]
end

subgraph group_operations["Payment Operations"]
  node_bulk_submit["Bulk Submission<br/>[submit-batch.py]"]
  node_batch_verify["Batch Verification<br/>[verify-batches.py]"]
  node_agri_demo["OpenSPP Agri Demo"]
  node_beneficiary_loader["Beneficiary Loading"]
end

node_operator(("Operator"))
node_k8s["Kubernetes"]

node_operator -->|"prepares environment"| node_env_setup
node_operator -->|"starts deployment"| node_run_entry
node_run_entry -.->|"dispatches deployment"| node_deployer
node_deployer -.->|"reads settings"| node_config
node_deployer -.->|"deploys"| node_mifos
node_deployer -.->|"deploys"| node_paymenthub
node_deployer -.->|"deploys"| node_vnext
node_deployer -.->|"uses charts"| node_helm
node_deployer -->|"deploys stack"| node_k8s
node_mifos -->|"runs on"| node_k8s
node_paymenthub -->|"runs on"| node_k8s
node_vnext -->|"runs on"| node_k8s
node_paymenthub -.->|"uses workflows"| node_orchestration
node_operator -->|"enables optionally"| node_openg2p
node_operator -->|"deploys optionally"| node_openspp
node_operator -->|"deploys connector"| node_mastercard
node_operator -->|"submits batch"| node_bulk_submit
node_bulk_submit -->|"posts batch"| node_paymenthub
node_operator -->|"checks batches"| node_batch_verify
node_operator -->|"loads registry data"| node_beneficiary_loader
node_operator -->|"runs subsidy demo"| node_agri_demo
node_agri_demo -->|"routes disbursement"| node_paymenthub
node_agri_demo -->|"disburses loans"| node_mifos

click node_env_setup "https://github.com/openmf/mifos-gazelle/blob/dev/src/environmentSetup/environmentSetup.sh"
click node_run_entry "https://github.com/openmf/mifos-gazelle/blob/dev/run.sh"
click node_deployer "https://github.com/openmf/mifos-gazelle/blob/dev/src/deployer/deployer.sh"
click node_config "https://github.com/openmf/mifos-gazelle/blob/dev/config/config.ini"
click node_helm "https://github.com/openmf/mifos-gazelle/tree/dev/src/deployer/helm"
click node_mifos "https://github.com/openmf/mifos-gazelle/blob/dev/src/deployer/mifosx.sh"
click node_paymenthub "https://github.com/openmf/mifos-gazelle/blob/dev/src/deployer/paymenthub.sh"
click node_vnext "https://github.com/openmf/mifos-gazelle/blob/dev/src/deployer/vnext.sh"
click node_orchestration "https://github.com/openmf/mifos-gazelle/tree/dev/orchestration/feel"
click node_mastercard "https://github.com/openmf/mifos-gazelle/blob/dev/src/deployer/mastercard.sh"
click node_openg2p "https://github.com/openmf/mifos-gazelle/blob/dev/src/deployer/openg2p.sh"
click node_openspp "https://github.com/openmf/mifos-gazelle/blob/dev/src/deployer/openspp.sh"
click node_bulk_submit "https://github.com/openmf/mifos-gazelle/blob/dev/src/utils/batch/submit-batch.py"
click node_batch_verify "https://github.com/openmf/mifos-gazelle/blob/dev/src/utils/batch/verify-batches.py"
click node_agri_demo "https://github.com/openmf/mifos-gazelle/blob/dev/src/utils/openspp/openspp-agri-demo.py"
click node_beneficiary_loader "https://github.com/openmf/mifos-gazelle/blob/dev/src/utils/openspp/load-openspp-agri-data.py"

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_env_setup,node_run_entry,node_deployer,node_config,node_helm toneBlue
class node_mifos,node_paymenthub,node_vnext,node_orchestration,node_mastercard toneAmber
class node_openg2p,node_openspp toneMint
class node_bulk_submit,node_batch_verify,node_agri_demo,node_beneficiary_loader toneRose
class node_operator,node_k8s toneIndigo
```

## Components

### Deployment Control

- [Environment Setup](https://github.com/openmf/mifos-gazelle/blob/dev/src/environmentSetup/environmentSetup.sh): `src/environmentSetup/environmentSetup.sh`
- [Command Entry](https://github.com/openmf/mifos-gazelle/blob/dev/run.sh): `run.sh`
- [Deploy Coordinator](https://github.com/openmf/mifos-gazelle/blob/dev/src/deployer/deployer.sh): `src/deployer/deployer.sh`
- [Stack Configuration](https://github.com/openmf/mifos-gazelle/blob/dev/config/config.ini): `config/config.ini`
- [Helm Deployments](https://github.com/openmf/mifos-gazelle/tree/dev/src/deployer/helm): `src/deployer/helm`

### Payment Stack

- [MifosX Banking](https://github.com/openmf/mifos-gazelle/blob/dev/src/deployer/mifosx.sh): `src/deployer/mifosx.sh`
- [Payment Hub EE](https://github.com/openmf/mifos-gazelle/blob/dev/src/deployer/paymenthub.sh): `src/deployer/paymenthub.sh`
- [Mojaloop vNext](https://github.com/openmf/mifos-gazelle/blob/dev/src/deployer/vnext.sh): `src/deployer/vnext.sh`
- [Payment Workflows](https://github.com/openmf/mifos-gazelle/tree/dev/orchestration/feel): `orchestration/feel`
- [Mastercard Connector](https://github.com/openmf/mifos-gazelle/blob/dev/src/deployer/mastercard.sh): `src/deployer/mastercard.sh`

### Optional Platforms

- [OpenG2P Platform](https://github.com/openmf/mifos-gazelle/blob/dev/src/deployer/openg2p.sh): `src/deployer/openg2p.sh`
- [OpenSPP Platform](https://github.com/openmf/mifos-gazelle/blob/dev/src/deployer/openspp.sh): `src/deployer/openspp.sh`

### Payment Operations

- [Bulk Submission](https://github.com/openmf/mifos-gazelle/blob/dev/src/utils/batch/submit-batch.py): `src/utils/batch/submit-batch.py`
- [Batch Verification](https://github.com/openmf/mifos-gazelle/blob/dev/src/utils/batch/verify-batches.py): `src/utils/batch/verify-batches.py`
- [OpenSPP Agri Demo](https://github.com/openmf/mifos-gazelle/blob/dev/src/utils/openspp/openspp-agri-demo.py): `src/utils/openspp/openspp-agri-demo.py`
- [Beneficiary Loading](https://github.com/openmf/mifos-gazelle/blob/dev/src/utils/openspp/load-openspp-agri-data.py): `src/utils/openspp/load-openspp-agri-data.py`

### Other components

- **Operator**
- **Kubernetes**

## Connections

- Operator → Environment Setup: prepares environment (evidence: `README.md`)
- Operator → Command Entry: starts deployment (evidence: `README.md`)
- Command Entry → Deploy Coordinator: dispatches deployment
- Deploy Coordinator → Stack Configuration: reads settings
- Deploy Coordinator → MifosX Banking: deploys
- Deploy Coordinator → Payment Hub EE: deploys
- Deploy Coordinator → Mojaloop vNext: deploys
- Deploy Coordinator → Helm Deployments: uses charts
- Deploy Coordinator → Kubernetes: deploys stack (evidence: `README.md`)
- MifosX Banking → Kubernetes: runs on (evidence: `README.md`)
- Payment Hub EE → Kubernetes: runs on (evidence: `README.md`)
- Mojaloop vNext → Kubernetes: runs on (evidence: `README.md`)
- Payment Hub EE → Payment Workflows: uses workflows
- Operator → OpenG2P Platform: enables optionally (evidence: `README.md`)
- Operator → OpenSPP Platform: deploys optionally (evidence: `README.md`)
- Operator → Mastercard Connector: deploys connector (evidence: `README.md`)
- Operator → Bulk Submission: submits batch (evidence: `src/utils/batch/submit-batch.py`)
- Bulk Submission → Payment Hub EE: posts batch (evidence: `src/utils/batch/submit-batch.py`)
- Operator → Batch Verification: checks batches (evidence: `src/utils/batch/verify-batches.py`)
- Operator → Beneficiary Loading: loads registry data (evidence: `README.md`)
- Operator → OpenSPP Agri Demo: runs subsidy demo (evidence: `README.md`)
- OpenSPP Agri Demo → Payment Hub EE: routes disbursement (evidence: `README.md`)
- OpenSPP Agri Demo → MifosX Banking: disburses loans (evidence: `README.md`)
