# johnv-1/fintech-guard architecture

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

- Interactive diagram: https://gitdiagram.com/johnv-1/fintech-guard
- Repository: https://github.com/johnv-1/fintech-guard

## Overview

FinTech Guard is an early-stage fraud-analysis CLI scaffold. An analyst can view a menu of planned customer/risk, time-history, and relationship-network queries, but selecting most options does not execute a query or return results. Separately, running connect.py attempts connections to MongoDB, Cassandra, and Dgraph. The README and menu describe broader intended capabilities; populate.py contains only a population plan, so those capabilities are not implemented workflows. Edges reflect only the menu call and the connection attempts shown in source.

Main entry points: [`main.py`](https://github.com/johnv-1/fintech-guard/blob/main/main.py) (Interactive CLI), [`connect.py`](https://github.com/johnv-1/fintech-guard/blob/main/connect.py) (Mongo connector)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Analyst interface"]
  node_cli["Interactive CLI<br/>[main.py]"]
  node_query_menu["Query menu<br/>[main.py]"]
end

subgraph group_connectivity["Database connectivity"]
  node_mongo_connect["Mongo connector<br/>[connect.py]"]
  node_cassandra_connect["Cassandra connector<br/>[connect.py]"]
  node_dgraph_connect["Dgraph connector<br/>[connect.py]"]
end

subgraph group_stores["Data stores"]
  node_mongo[("MongoDB")]
  node_cassandra[("Cassandra")]
  node_dgraph[("Dgraph")]
end

subgraph group_planned["Planned data loading"]
  node_population_plan["Population plan<br/>[populate.py]"]
end

node_analyst(("Security analyst"))

node_analyst -->|"uses"| node_cli
node_cli -->|"displays"| node_query_menu
node_mongo_connect -->|"connects"| node_mongo
node_cassandra_connect -->|"connects"| node_cassandra
node_dgraph_connect -->|"connects"| node_dgraph

click node_cli "https://github.com/johnv-1/fintech-guard/blob/main/main.py"
click node_query_menu "https://github.com/johnv-1/fintech-guard/blob/main/main.py"
click node_mongo_connect "https://github.com/johnv-1/fintech-guard/blob/main/connect.py"
click node_cassandra_connect "https://github.com/johnv-1/fintech-guard/blob/main/connect.py"
click node_dgraph_connect "https://github.com/johnv-1/fintech-guard/blob/main/connect.py"
click node_population_plan "https://github.com/johnv-1/fintech-guard/blob/main/populate.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_cli,node_query_menu toneBlue
class node_mongo_connect,node_cassandra_connect,node_dgraph_connect toneAmber
class node_mongo,node_cassandra,node_dgraph toneMint
class node_population_plan toneRose
class node_analyst toneIndigo
```

## Components

### Analyst interface

- [Interactive CLI](https://github.com/johnv-1/fintech-guard/blob/main/main.py): `main.py`
- [Query menu](https://github.com/johnv-1/fintech-guard/blob/main/main.py): `main.py`

### Database connectivity

- [Mongo connector](https://github.com/johnv-1/fintech-guard/blob/main/connect.py): `connect.py`
- [Cassandra connector](https://github.com/johnv-1/fintech-guard/blob/main/connect.py): `connect.py`
- [Dgraph connector](https://github.com/johnv-1/fintech-guard/blob/main/connect.py): `connect.py`

### Data stores

- **MongoDB**
- **Cassandra**
- **Dgraph**

### Planned data loading

- [Population plan](https://github.com/johnv-1/fintech-guard/blob/main/populate.py): `populate.py`

### Other components

- **Security analyst**

## Connections

- Security analyst → Interactive CLI: uses (evidence: `README.md`)
- Interactive CLI → Query menu: displays (evidence: `main.py`)
- Mongo connector → MongoDB: connects (evidence: `connect.py`)
- Cassandra connector → Cassandra: connects (evidence: `connect.py`)
- Dgraph connector → Dgraph: connects (evidence: `connect.py`)
