# verifywise-ai/verifywise architecture

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

- Interactive diagram: https://gitdiagram.com/verifywise-ai/verifywise
- Repository: https://github.com/verifywise-ai/verifywise

## Overview

VerifyWise is a multi-tenant AI governance platform for managing compliance, AI risks, models, vendors, policies, evidence, and audits. Users work through a web client and backend APIs to organize governance records and review compliance and risk; the README also highlights AI-assisted assessments, evaluations, and an AI gateway. The graph preserves these product areas and their major services. Several subsystem paths come from the tree or README rather than sampled implementation, so uncertain connections are omitted or marked dashed.

Main entry points: [`Clients/src/application/repository`](https://github.com/verifywise-ai/verifywise/tree/develop/Clients/src/application/repository) (Governance workspace), [`Clients/src/App.tsx`](https://github.com/verifywise-ai/verifywise/blob/develop/Clients/src/App.tsx) (Web client), [`Servers/controllers/fileManager.ctrl.ts`](https://github.com/verifywise-ai/verifywise/blob/develop/Servers/controllers/fileManager.ctrl.ts) (File management), [`Servers/repositories/file.repository.ts`](https://github.com/verifywise-ai/verifywise/blob/develop/Servers/repositories/file.repository.ts) (File persistence)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_governance["Governance workflows"]
  node_governance_features["Governance workspace"]
  node_compliance["Compliance assessments"]
  node_risk["Risk management"]
  node_inventory["Model inventory"]
  node_policies["Policy management"]
  node_trust["AI Trust Center"]
  node_reporting["Reporting"]
end

subgraph group_platform["Application platform"]
  node_web["Web client<br/>[App.tsx]"]
  node_api["Backend API<br/>[app.ts]"]
  node_files["File management"]
  node_file_repo["File persistence<br/>[file.repository.ts]"]
  node_database[("Governance database<br/>[db.ts]")]
end

subgraph group_ai["AI services"]
  node_gateway["AI Gateway<br/>[app.py]"]
  node_gateway_llm["LLM service<br/>[llm_service.py]"]
  node_mcp["MCP integration<br/>[mcp_proxy.py]"]
end

subgraph group_evaluation["Evaluation tools"]
  node_eval_server["Evaluation API<br/>[app.py]"]
  node_bias_audit["Bias audit engine<br/>[engine.py]"]
  node_evaluation_module["LLM evaluation runner<br/>[main.py]"]
end

node_user(("Governance user"))

node_user -.->|"uses"| node_web
node_web -.->|"presents"| node_governance_features
node_governance_features -.->|"supports"| node_compliance
node_governance_features -.->|"supports"| node_risk
node_governance_features -.->|"supports"| node_inventory
node_governance_features -.->|"supports"| node_policies
node_governance_features -.->|"supports"| node_trust
node_governance_features -.->|"supports"| node_reporting
node_api -->|"routes requests"| node_files
node_files -->|"calls"| node_file_repo
node_file_repo -->|"queries"| node_database
node_gateway_llm -.->|"serves"| node_gateway
node_eval_server -.->|"runs audits"| node_bias_audit
node_evaluation_module -.->|"integrates"| node_eval_server

click node_web "https://github.com/verifywise-ai/verifywise/blob/develop/Clients/src/App.tsx"
click node_governance_features "https://github.com/verifywise-ai/verifywise/tree/develop/Clients/src/application/repository"
click node_compliance "https://github.com/verifywise-ai/verifywise/blob/develop/Clients/src/application/repository/assesment.repository.ts"
click node_risk "https://github.com/verifywise-ai/verifywise/blob/develop/Clients/src/application/repository/projectRisk.repository.ts"
click node_inventory "https://github.com/verifywise-ai/verifywise/blob/develop/Clients/src/application/repository/modelInventory.repository.ts"
click node_policies "https://github.com/verifywise-ai/verifywise/blob/develop/Clients/src/application/repository/policy.repository.ts"
click node_trust "https://github.com/verifywise-ai/verifywise/blob/develop/Clients/src/application/repository/aiTrustCentre.repository.ts"
click node_reporting "https://github.com/verifywise-ai/verifywise/blob/develop/Clients/src/application/repository/reporting.repository.ts"
click node_api "https://github.com/verifywise-ai/verifywise/blob/develop/Servers/app.ts"
click node_files "https://github.com/verifywise-ai/verifywise/blob/develop/Servers/controllers/fileManager.ctrl.ts"
click node_file_repo "https://github.com/verifywise-ai/verifywise/blob/develop/Servers/repositories/file.repository.ts"
click node_database "https://github.com/verifywise-ai/verifywise/blob/develop/Servers/database/db.ts"
click node_gateway "https://github.com/verifywise-ai/verifywise/blob/develop/AIGateway/src/app.py"
click node_gateway_llm "https://github.com/verifywise-ai/verifywise/blob/develop/AIGateway/src/services/llm_service.py"
click node_eval_server "https://github.com/verifywise-ai/verifywise/blob/develop/EvalServer/src/app.py"
click node_bias_audit "https://github.com/verifywise-ai/verifywise/blob/develop/EvalServer/src/engines/bias_audit/engine.py"
click node_evaluation_module "https://github.com/verifywise-ai/verifywise/blob/develop/EvaluationModule/main.py"
click node_mcp "https://github.com/verifywise-ai/verifywise/blob/develop/AIGateway/src/routers/mcp_proxy.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_governance_features,node_compliance,node_risk,node_inventory,node_policies,node_trust,node_reporting,node_user toneBlue
class node_web,node_api,node_files,node_file_repo,node_database toneAmber
class node_gateway,node_gateway_llm,node_mcp toneMint
class node_eval_server,node_bias_audit,node_evaluation_module toneRose
```

## Components

### Governance workflows

- [Governance workspace](https://github.com/verifywise-ai/verifywise/tree/develop/Clients/src/application/repository): `Clients/src/application/repository`
- [Compliance assessments](https://github.com/verifywise-ai/verifywise/blob/develop/Clients/src/application/repository/assesment.repository.ts): `Clients/src/application/repository/assesment.repository.ts`
- [Risk management](https://github.com/verifywise-ai/verifywise/blob/develop/Clients/src/application/repository/projectRisk.repository.ts): `Clients/src/application/repository/projectRisk.repository.ts`
- [Model inventory](https://github.com/verifywise-ai/verifywise/blob/develop/Clients/src/application/repository/modelInventory.repository.ts): `Clients/src/application/repository/modelInventory.repository.ts`
- [Policy management](https://github.com/verifywise-ai/verifywise/blob/develop/Clients/src/application/repository/policy.repository.ts): `Clients/src/application/repository/policy.repository.ts`
- [AI Trust Center](https://github.com/verifywise-ai/verifywise/blob/develop/Clients/src/application/repository/aiTrustCentre.repository.ts): `Clients/src/application/repository/aiTrustCentre.repository.ts`
- [Reporting](https://github.com/verifywise-ai/verifywise/blob/develop/Clients/src/application/repository/reporting.repository.ts): `Clients/src/application/repository/reporting.repository.ts`

### Application platform

- [Web client](https://github.com/verifywise-ai/verifywise/blob/develop/Clients/src/App.tsx): `Clients/src/App.tsx`
- [Backend API](https://github.com/verifywise-ai/verifywise/blob/develop/Servers/app.ts): `Servers/app.ts`
- [File management](https://github.com/verifywise-ai/verifywise/blob/develop/Servers/controllers/fileManager.ctrl.ts): `Servers/controllers/fileManager.ctrl.ts`
- [File persistence](https://github.com/verifywise-ai/verifywise/blob/develop/Servers/repositories/file.repository.ts): `Servers/repositories/file.repository.ts`
- [Governance database](https://github.com/verifywise-ai/verifywise/blob/develop/Servers/database/db.ts): `Servers/database/db.ts`

### AI services

- [AI Gateway](https://github.com/verifywise-ai/verifywise/blob/develop/AIGateway/src/app.py): `AIGateway/src/app.py`
- [LLM service](https://github.com/verifywise-ai/verifywise/blob/develop/AIGateway/src/services/llm_service.py): `AIGateway/src/services/llm_service.py`
- [MCP integration](https://github.com/verifywise-ai/verifywise/blob/develop/AIGateway/src/routers/mcp_proxy.py): `AIGateway/src/routers/mcp_proxy.py`

### Evaluation tools

- [Evaluation API](https://github.com/verifywise-ai/verifywise/blob/develop/EvalServer/src/app.py): `EvalServer/src/app.py`
- [Bias audit engine](https://github.com/verifywise-ai/verifywise/blob/develop/EvalServer/src/engines/bias_audit/engine.py): `EvalServer/src/engines/bias_audit/engine.py`
- [LLM evaluation runner](https://github.com/verifywise-ai/verifywise/blob/develop/EvaluationModule/main.py): `EvaluationModule/main.py`

### Other components

- **Governance user**

## Connections

- Governance user → Web client: uses (evidence: `README.md`)
- Web client → Governance workspace: presents (evidence: `README.md`)
- Governance workspace → Compliance assessments: supports (evidence: `README.md`)
- Governance workspace → Risk management: supports (evidence: `README.md`)
- Governance workspace → Model inventory: supports (evidence: `README.md`)
- Governance workspace → Policy management: supports (evidence: `README.md`)
- Governance workspace → AI Trust Center: supports (evidence: `README.md`)
- Governance workspace → Reporting: supports (evidence: `README.md`)
- Backend API → File management: routes requests (evidence: `Servers/app.ts`)
- File management → File persistence: calls (evidence: `Servers/controllers/fileManager.ctrl.ts`)
- File persistence → Governance database: queries (evidence: `Servers/repositories/file.repository.ts`)
- LLM service → AI Gateway: serves
- Evaluation API → Bias audit engine: runs audits
- LLM evaluation runner → Evaluation API: integrates
