# aphrc-nocode/no-code-app architecture

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

- Interactive diagram: https://gitdiagram.com/aphrc-nocode/no-code-app
- Repository: https://github.com/aphrc-nocode/no-code-app

## Overview

This is a Shiny low-/no-code AI/ML platform with a companion FastAPI/PyCaret service. The principal user journey is to upload data, explore and prepare it, then select/train/evaluate models and use predictions or deployment. The README documents broad capabilities but not their internal call graph; unsampled R modules are therefore represented at directory level, and the Python API is kept separate where no Shiny-to-API call is evidenced.

Main entry points: [`ui`](https://github.com/aphrc-nocode/no-code-app/tree/main/ui) (Interactive interface), [`server.R`](https://github.com/aphrc-nocode/no-code-app/blob/main/server.R) (Shiny application), [`server/upload_data.R`](https://github.com/aphrc-nocode/no-code-app/blob/main/server/upload_data.R) (Data upload), [`server/explore_data.R`](https://github.com/aphrc-nocode/no-code-app/blob/main/server/explore_data.R) (Data exploration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Shiny experience"]
  node_shiny["Shiny application<br/>[server.R]"]
  node_ui["Interactive interface"]
end

subgraph group_data["Data workflow"]
  node_upload["Data upload<br/>[upload_data.R]"]
  node_explore["Data exploration<br/>[explore_data.R]"]
  node_transform["Data transformation<br/>[transform_data.R]"]
  node_combine["Data merging<br/>[combine_data.R]"]
  node_visualize["Visualization"]
  node_anonymize["Data anonymization"]
end

subgraph group_ml["Model workflow"]
  node_features["Feature engineering"]
  node_partition["Data partitioning"]
  node_automl["Automated model selection<br/>[automl_server.R]"]
  node_training["Model training"]
  node_compare["Model comparison"]
  node_prediction["Model prediction"]
  node_deployment["Model deployment"]
end

subgraph group_service["Python service"]
  node_fastapi["PyCaret API<br/>[main.py]"]
end

node_user(("Platform user"))

node_user -->|"uses"| node_ui
node_ui -.->|"drives"| node_shiny
node_user -->|"uploads data"| node_upload
node_user -->|"explores data"| node_explore
node_user -->|"transforms data"| node_transform
node_user -->|"merges data"| node_combine
node_user -->|"visualizes results"| node_visualize
node_user -->|"anonymizes data"| node_anonymize
node_user -->|"engineers features"| node_features
node_user -->|"partitions data"| node_partition
node_user -->|"selects models"| node_automl
node_user -->|"trains models"| node_training
node_user -->|"compares models"| node_compare
node_user -->|"requests predictions"| node_prediction
node_user -->|"deploys models"| node_deployment

click node_shiny "https://github.com/aphrc-nocode/no-code-app/blob/main/server.R"
click node_ui "https://github.com/aphrc-nocode/no-code-app/tree/main/ui"
click node_upload "https://github.com/aphrc-nocode/no-code-app/blob/main/server/upload_data.R"
click node_explore "https://github.com/aphrc-nocode/no-code-app/blob/main/server/explore_data.R"
click node_transform "https://github.com/aphrc-nocode/no-code-app/blob/main/server/transform_data.R"
click node_combine "https://github.com/aphrc-nocode/no-code-app/blob/main/server/combine_data.R"
click node_visualize "https://github.com/aphrc-nocode/no-code-app/blob/main/server/user_defined_visualization.R"
click node_anonymize "https://github.com/aphrc-nocode/no-code-app/blob/main/server/anon_server_module_quant.R"
click node_features "https://github.com/aphrc-nocode/no-code-app/blob/main/server/feature_engineering.R"
click node_partition "https://github.com/aphrc-nocode/no-code-app/blob/main/server/model_training_setup.R"
click node_automl "https://github.com/aphrc-nocode/no-code-app/blob/main/server/automl_server.R"
click node_training "https://github.com/aphrc-nocode/no-code-app/blob/main/server/train_model_server.R"
click node_compare "https://github.com/aphrc-nocode/no-code-app/blob/main/server/compare_trained_caret_models.R"
click node_prediction "https://github.com/aphrc-nocode/no-code-app/blob/main/server/predict_trained_caret_models.R"
click node_deployment "https://github.com/aphrc-nocode/no-code-app/blob/main/server/deploy_model_server.R"
click node_fastapi "https://github.com/aphrc-nocode/no-code-app/blob/main/py/main.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_shiny,node_ui,node_user toneBlue
class node_upload,node_explore,node_transform,node_combine,node_visualize,node_anonymize toneAmber
class node_features,node_partition,node_automl,node_training,node_compare,node_prediction,node_deployment toneMint
class node_fastapi toneRose
```

## Components

### Shiny experience

- [Shiny application](https://github.com/aphrc-nocode/no-code-app/blob/main/server.R): `server.R`
- [Interactive interface](https://github.com/aphrc-nocode/no-code-app/tree/main/ui): `ui`

### Data workflow

- [Data upload](https://github.com/aphrc-nocode/no-code-app/blob/main/server/upload_data.R): `server/upload_data.R`
- [Data exploration](https://github.com/aphrc-nocode/no-code-app/blob/main/server/explore_data.R): `server/explore_data.R`
- [Data transformation](https://github.com/aphrc-nocode/no-code-app/blob/main/server/transform_data.R): `server/transform_data.R`
- [Data merging](https://github.com/aphrc-nocode/no-code-app/blob/main/server/combine_data.R): `server/combine_data.R`
- [Visualization](https://github.com/aphrc-nocode/no-code-app/blob/main/server/user_defined_visualization.R): `server/user_defined_visualization.R`
- [Data anonymization](https://github.com/aphrc-nocode/no-code-app/blob/main/server/anon_server_module_quant.R): `server/anon_server_module_quant.R`

### Model workflow

- [Feature engineering](https://github.com/aphrc-nocode/no-code-app/blob/main/server/feature_engineering.R): `server/feature_engineering.R`
- [Data partitioning](https://github.com/aphrc-nocode/no-code-app/blob/main/server/model_training_setup.R): `server/model_training_setup.R`
- [Automated model selection](https://github.com/aphrc-nocode/no-code-app/blob/main/server/automl_server.R): `server/automl_server.R`
- [Model training](https://github.com/aphrc-nocode/no-code-app/blob/main/server/train_model_server.R): `server/train_model_server.R`
- [Model comparison](https://github.com/aphrc-nocode/no-code-app/blob/main/server/compare_trained_caret_models.R): `server/compare_trained_caret_models.R`
- [Model prediction](https://github.com/aphrc-nocode/no-code-app/blob/main/server/predict_trained_caret_models.R): `server/predict_trained_caret_models.R`
- [Model deployment](https://github.com/aphrc-nocode/no-code-app/blob/main/server/deploy_model_server.R): `server/deploy_model_server.R`

### Python service

- [PyCaret API](https://github.com/aphrc-nocode/no-code-app/blob/main/py/main.py): `py/main.py`

### Other components

- **Platform user**

## Connections

- Platform user → Interactive interface: uses (evidence: `README.md`)
- Interactive interface → Shiny application: drives
- Platform user → Data upload: uploads data (evidence: `README.md`)
- Platform user → Data exploration: explores data (evidence: `README.md`)
- Platform user → Data transformation: transforms data (evidence: `README.md`)
- Platform user → Data merging: merges data (evidence: `README.md`)
- Platform user → Visualization: visualizes results (evidence: `README.md`)
- Platform user → Data anonymization: anonymizes data (evidence: `README.md`)
- Platform user → Feature engineering: engineers features (evidence: `README.md`)
- Platform user → Data partitioning: partitions data (evidence: `README.md`)
- Platform user → Automated model selection: selects models (evidence: `README.md`)
- Platform user → Model training: trains models (evidence: `README.md`)
- Platform user → Model comparison: compares models (evidence: `README.md`)
- Platform user → Model prediction: requests predictions (evidence: `README.md`)
- Platform user → Model deployment: deploys models (evidence: `README.md`)
