# cbpayapp/cbpay-docs architecture

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

- Interactive diagram: https://gitdiagram.com/cbpayapp/cbpay-docs
- Repository: https://github.com/cbpayapp/cbpay-docs

## Overview

This repository is a multilingual developer-documentation site for a payments platform, accompanied by API specifications, a Postman collection, and packaged material for an MCP assistant. The tree shows documentation for payment flows and many product capabilities, but no backend implementing those flows, so the graph represents documentation and developer-facing artifacts rather than a payment-processing runtime. The only sampled runtime link is Maida’s loader, which injects a remotely hosted widget; unsampled content relationships are not inferred.

Main entry points: [`maida.js`](https://github.com/cbpayapp/cbpay-docs/blob/main/maida.js) (Maida loader)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_docs["Documentation"]
  node_english["English docs"]
  node_spanish["Spanish docs"]
  node_chinese["Chinese docs"]
  node_maida_loader["Maida loader<br/>[maida.js]"]
end

subgraph group_api["API references"]
  node_openapi_en["English OpenAPI<br/>[openapi.yaml]"]
  node_openapi_es["Spanish OpenAPI<br/>[openapi.es.yaml]"]
  node_openapi_zh["Chinese OpenAPI<br/>[openapi.zh.yaml]"]
  node_postman["Postman collection"]
end

subgraph group_mcp["MCP materials"]
  node_mcp_guides["MCP guide corpus"]
  node_mcp_recipes["MCP recipes"]
  node_mcp_chunks["MCP chunks"]
  node_mcp_openapi["MCP API specs<br/>[openapi.yaml]"]
  node_mcp_manifest["MCP package metadata<br/>[manifest.json]"]
end

node_reader(("Documentation reader"))
node_maida_widget["Maida chat widget"]

node_maida_loader -->|"loads script"| node_maida_widget

click node_english "https://github.com/cbpayapp/cbpay-docs/tree/main/en"
click node_spanish "https://github.com/cbpayapp/cbpay-docs/tree/main/es"
click node_chinese "https://github.com/cbpayapp/cbpay-docs/tree/main/zh"
click node_openapi_en "https://github.com/cbpayapp/cbpay-docs/blob/main/openapi.yaml"
click node_openapi_es "https://github.com/cbpayapp/cbpay-docs/blob/main/openapi.es.yaml"
click node_openapi_zh "https://github.com/cbpayapp/cbpay-docs/blob/main/openapi.zh.yaml"
click node_postman "https://github.com/cbpayapp/cbpay-docs/blob/main/postman/cbpay-api.postman_collection.json"
click node_mcp_guides "https://github.com/cbpayapp/cbpay-docs/tree/main/mcp-pack/guides"
click node_mcp_recipes "https://github.com/cbpayapp/cbpay-docs/tree/main/mcp-pack/recipes"
click node_mcp_chunks "https://github.com/cbpayapp/cbpay-docs/tree/main/mcp-pack/chunks"
click node_mcp_openapi "https://github.com/cbpayapp/cbpay-docs/blob/main/mcp-pack/openapi.yaml"
click node_mcp_manifest "https://github.com/cbpayapp/cbpay-docs/blob/main/mcp-pack/manifest.json"
click node_maida_loader "https://github.com/cbpayapp/cbpay-docs/blob/main/maida.js"

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_english,node_spanish,node_chinese,node_maida_loader toneBlue
class node_openapi_en,node_openapi_es,node_openapi_zh,node_postman toneAmber
class node_mcp_guides,node_mcp_recipes,node_mcp_chunks,node_mcp_openapi,node_mcp_manifest toneMint
class node_reader,node_maida_widget toneIndigo
```

## Components

### Documentation

- [English docs](https://github.com/cbpayapp/cbpay-docs/tree/main/en): `en`
- [Spanish docs](https://github.com/cbpayapp/cbpay-docs/tree/main/es): `es`
- [Chinese docs](https://github.com/cbpayapp/cbpay-docs/tree/main/zh): `zh`
- [Maida loader](https://github.com/cbpayapp/cbpay-docs/blob/main/maida.js): `maida.js`

### API references

- [English OpenAPI](https://github.com/cbpayapp/cbpay-docs/blob/main/openapi.yaml): `openapi.yaml`
- [Spanish OpenAPI](https://github.com/cbpayapp/cbpay-docs/blob/main/openapi.es.yaml): `openapi.es.yaml`
- [Chinese OpenAPI](https://github.com/cbpayapp/cbpay-docs/blob/main/openapi.zh.yaml): `openapi.zh.yaml`
- [Postman collection](https://github.com/cbpayapp/cbpay-docs/blob/main/postman/cbpay-api.postman_collection.json): `postman/cbpay-api.postman_collection.json`

### MCP materials

- [MCP guide corpus](https://github.com/cbpayapp/cbpay-docs/tree/main/mcp-pack/guides): `mcp-pack/guides`
- [MCP recipes](https://github.com/cbpayapp/cbpay-docs/tree/main/mcp-pack/recipes): `mcp-pack/recipes`
- [MCP chunks](https://github.com/cbpayapp/cbpay-docs/tree/main/mcp-pack/chunks): `mcp-pack/chunks`
- [MCP API specs](https://github.com/cbpayapp/cbpay-docs/blob/main/mcp-pack/openapi.yaml): `mcp-pack/openapi.yaml`
- [MCP package metadata](https://github.com/cbpayapp/cbpay-docs/blob/main/mcp-pack/manifest.json): `mcp-pack/manifest.json`

### Other components

- **Documentation reader**
- **Maida chat widget**

## Connections

- Maida loader → Maida chat widget: loads script (evidence: `maida.js`)
