# maryaylla/v0caca0-plus architecture

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

- Interactive diagram: https://gitdiagram.com/maryaylla/v0caca0-plus
- Repository: https://github.com/maryaylla/v0caca0-plus

## Overview

This repository appears to be a Portuguese-language course and quiz website, with course data, a quiz/results experience, and an AI analysis endpoint. The README provides no feature or flow details, and the sampled frontend files do not expose their wiring, so the graph shows those components without guessing their interactions. The sampled converter documents CSV-to-JSON processing, and the API handler documents its Gemini request.

Main entry points: [`converter.js`](https://github.com/maryaylla/v0caca0-plus/blob/main/converter.js) (CSV converter), [`api/gerar-analise.js`](https://github.com/maryaylla/v0caca0-plus/blob/main/api/gerar-analise.js) (Analysis endpoint), [`assets/data/cursos.json`](https://github.com/maryaylla/v0caca0-plus/blob/main/assets/data/cursos.json) (Course dataset), [`assets/data/temp_csv`](https://github.com/maryaylla/v0caca0-plus/tree/main/assets/data/temp_csv) (University CSVs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_home["Home page<br/>[index.html]"]
  node_courses_page["Courses page<br/>[cursos.html]"]
  node_quiz_page["Quiz page<br/>[quiz.html]"]
  node_results_page["Results page<br/>[resultado.html]"]
  node_about_page["About page<br/>[sobre.html]"]
  node_frontend_api["API client<br/>[api.js]"]
  node_course_client["Course data client<br/>[data.js]"]
  node_quiz_logic["Quiz logic<br/>[quiz.js]"]
  node_app_logic["Page logic<br/>[index.js]"]
  node_styles["Site styles<br/>[style.css]"]
end

subgraph group_courses["Course data"]
  node_course_dataset[("Course dataset<br/>[cursos.json]")]
  node_source_csvs["University CSVs"]
  node_converter["CSV converter<br/>[converter.js]"]
end

subgraph group_analysis["AI analysis"]
  node_analysis_api["Analysis endpoint<br/>[gerar-analise.js]"]
  node_gemini["Google Gemini API"]
end

node_visitor(("Site visitor"))

node_converter -->|"reads"| node_source_csvs
node_converter -->|"writes"| node_course_dataset
node_analysis_api -->|"sends prompt"| node_gemini

click node_home "https://github.com/maryaylla/v0caca0-plus/blob/main/index.html"
click node_courses_page "https://github.com/maryaylla/v0caca0-plus/blob/main/cursos.html"
click node_quiz_page "https://github.com/maryaylla/v0caca0-plus/blob/main/quiz.html"
click node_results_page "https://github.com/maryaylla/v0caca0-plus/blob/main/resultado.html"
click node_about_page "https://github.com/maryaylla/v0caca0-plus/blob/main/sobre.html"
click node_frontend_api "https://github.com/maryaylla/v0caca0-plus/blob/main/assets/js/api.js"
click node_course_client "https://github.com/maryaylla/v0caca0-plus/blob/main/assets/js/data.js"
click node_quiz_logic "https://github.com/maryaylla/v0caca0-plus/blob/main/assets/js/quiz.js"
click node_app_logic "https://github.com/maryaylla/v0caca0-plus/blob/main/assets/js/index.js"
click node_styles "https://github.com/maryaylla/v0caca0-plus/blob/main/assets/css/style.css"
click node_course_dataset "https://github.com/maryaylla/v0caca0-plus/blob/main/assets/data/cursos.json"
click node_source_csvs "https://github.com/maryaylla/v0caca0-plus/tree/main/assets/data/temp_csv"
click node_converter "https://github.com/maryaylla/v0caca0-plus/blob/main/converter.js"
click node_analysis_api "https://github.com/maryaylla/v0caca0-plus/blob/main/api/gerar-analise.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_home,node_courses_page,node_quiz_page,node_results_page,node_about_page,node_frontend_api,node_course_client,node_quiz_logic,node_app_logic,node_styles toneBlue
class node_course_dataset,node_source_csvs,node_converter toneAmber
class node_analysis_api,node_gemini toneMint
class node_visitor toneIndigo
```

## Components

### Web experience

- [Home page](https://github.com/maryaylla/v0caca0-plus/blob/main/index.html): `index.html`
- [Courses page](https://github.com/maryaylla/v0caca0-plus/blob/main/cursos.html): `cursos.html`
- [Quiz page](https://github.com/maryaylla/v0caca0-plus/blob/main/quiz.html): `quiz.html`
- [Results page](https://github.com/maryaylla/v0caca0-plus/blob/main/resultado.html): `resultado.html`
- [About page](https://github.com/maryaylla/v0caca0-plus/blob/main/sobre.html): `sobre.html`
- [API client](https://github.com/maryaylla/v0caca0-plus/blob/main/assets/js/api.js): `assets/js/api.js`
- [Course data client](https://github.com/maryaylla/v0caca0-plus/blob/main/assets/js/data.js): `assets/js/data.js`
- [Quiz logic](https://github.com/maryaylla/v0caca0-plus/blob/main/assets/js/quiz.js): `assets/js/quiz.js`
- [Page logic](https://github.com/maryaylla/v0caca0-plus/blob/main/assets/js/index.js): `assets/js/index.js`
- [Site styles](https://github.com/maryaylla/v0caca0-plus/blob/main/assets/css/style.css): `assets/css/style.css`

### Course data

- [Course dataset](https://github.com/maryaylla/v0caca0-plus/blob/main/assets/data/cursos.json): `assets/data/cursos.json`
- [University CSVs](https://github.com/maryaylla/v0caca0-plus/tree/main/assets/data/temp_csv): `assets/data/temp_csv`
- [CSV converter](https://github.com/maryaylla/v0caca0-plus/blob/main/converter.js): `converter.js`

### AI analysis

- [Analysis endpoint](https://github.com/maryaylla/v0caca0-plus/blob/main/api/gerar-analise.js): `api/gerar-analise.js`
- **Google Gemini API**

### Other components

- **Site visitor**

## Connections

- CSV converter → University CSVs: reads (evidence: `converter.js`)
- CSV converter → Course dataset: writes (evidence: `converter.js`)
- Analysis endpoint → Google Gemini API: sends prompt (evidence: `api/gerar-analise.js`)
