# maiconcarlospng/site-gpensc-teste architecture

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

- Interactive diagram: https://gitdiagram.com/maiconcarlospng/site-gpensc-teste
- Repository: https://github.com/maiconcarlospng/site-gpensc-teste

## Overview

GPENSC is a static institutional portal with a content-management workflow: collaborators edit and commit content through the admin panel, after which the documented publishing workflow builds and deploys the public site. The portal covers institutional information, research, extension, teaching, outreach, news, events, and the knowledge tree; the admin also offers an alternate CMS and analytics features. The graph follows README-documented flows and sampled source behavior; unsampled page-to-script wiring is not inferred.

Main entry points: [`data`](https://github.com/maiconcarlospng/site-gpensc-teste/tree/main/data) (Public content data), [`index.qmd`](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/index.qmd) (Institutional pages), [`admin/app.js`](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/admin/app.js) (Admin panel), [`arvore.qmd`](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/arvore.qmd) (Knowledge tree)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portal["Public portal"]
  node_public_pages["Institutional pages<br/>[index.qmd]"]
  node_research_outreach["Research and outreach<br/>[pesquisa.qmd]"]
  node_agenda_news["Agenda and news<br/>[agenda.qmd]"]
  node_knowledge_tree["Knowledge tree<br/>[arvore.qmd]"]
  node_accessibility["Accessibility controls"]
  node_tree_explorer["Tree explorer"]
  node_tree_visualizer["Tree visualizer<br/>[arvore.js]"]
  node_gallery["Photo gallery<br/>[galeria-home.js]"]
  node_instagram_archive["Instagram archive<br/>[acervo-contexto.js]"]
end

subgraph group_content["Content and data"]
  node_content_data[("Public content data")]
  node_instagram_import["Instagram import"]
end

subgraph group_admin["Content administration"]
  node_admin_ui["Admin panel<br/>[app.js]"]
  node_admin_dashboard["Admin dashboard<br/>[dashboard.js]"]
  node_bulk_edits["Batch editing<br/>[lote-edicoes.js]"]
  node_own_panel["Custom panel tools<br/>[painel-proprio.js]"]
  node_spreadsheets["Spreadsheet tools<br/>[planilhas.js]"]
  node_gallery_editor["Gallery editor"]
  node_cover_archiver["Cover archiver"]
  node_sveltia["Sveltia editor<br/>[cms.html]"]
end

subgraph group_services["External services"]
  node_access_worker["Access proxy<br/>[worker.js]"]
  node_analytics_worker["Analytics proxy<br/>[worker.js]"]
  node_github_api["GitHub API"]
  node_github_actions["GitHub Actions"]
  node_github_pages["GitHub Pages"]
  node_umami["Umami analytics"]
end

node_visitor(("Site visitor"))
node_collaborator(("Authorized collaborator"))

node_visitor -->|"browses"| node_public_pages
node_public_pages -->|"reads content"| node_content_data
node_research_outreach -->|"reads content"| node_content_data
node_agenda_news -->|"reads content"| node_content_data
node_knowledge_tree -->|"reads content"| node_content_data
node_collaborator -->|"edits content"| node_admin_ui
node_admin_ui -->|"requests access"| node_access_worker
node_access_worker -->|"proxies requests"| node_github_api
node_github_api -->|"writes commits"| node_content_data
node_content_data -->|"triggers build"| node_github_actions
node_github_actions -->|"publishes site"| node_github_pages
node_admin_dashboard -->|"loads collections"| node_content_data
node_bulk_edits -->|"creates commits"| node_github_api
node_admin_ui -.->|"requests summary"| node_analytics_worker
node_analytics_worker -->|"queries metrics"| node_umami
node_sveltia -->|"edits collections"| node_content_data
node_instagram_import -.->|"imports records"| node_content_data
node_accessibility -.->|"enhances access"| node_public_pages
node_tree_explorer -->|"renders branches"| node_knowledge_tree
node_tree_visualizer -->|"renders tree"| node_knowledge_tree
node_gallery -.->|"enhances gallery"| node_public_pages
node_instagram_archive -->|"loads archive"| node_content_data

click node_public_pages "https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/index.qmd"
click node_research_outreach "https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/pesquisa.qmd"
click node_agenda_news "https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/agenda.qmd"
click node_knowledge_tree "https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/arvore.qmd"
click node_accessibility "https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/js/acessibilidade-gpensc.js"
click node_tree_explorer "https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/js/arvore-explorador.js"
click node_tree_visualizer "https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/js/arvore.js"
click node_gallery "https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/js/galeria-home.js"
click node_instagram_archive "https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/js/acervo-contexto.js"
click node_content_data "https://github.com/maiconcarlospng/site-gpensc-teste/tree/main/data"
click node_instagram_import "https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/scripts/importar-instagram.py"
click node_admin_ui "https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/admin/app.js"
click node_admin_dashboard "https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/admin/dashboard.js"
click node_bulk_edits "https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/admin/lote-edicoes.js"
click node_own_panel "https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/admin/painel-proprio.js"
click node_spreadsheets "https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/admin/planilhas.js"
click node_gallery_editor "https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/admin/galeria-multipla.js"
click node_cover_archiver "https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/admin/arquivar-capas-instagram.py"
click node_sveltia "https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/admin/cms.html"
click node_access_worker "https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/admin-access-worker/worker.js"
click node_analytics_worker "https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/analytics-worker/worker.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_public_pages,node_research_outreach,node_agenda_news,node_knowledge_tree,node_accessibility,node_tree_explorer,node_tree_visualizer,node_gallery,node_instagram_archive toneBlue
class node_content_data,node_instagram_import toneAmber
class node_admin_ui,node_admin_dashboard,node_bulk_edits,node_own_panel,node_spreadsheets,node_gallery_editor,node_cover_archiver,node_sveltia toneMint
class node_access_worker,node_analytics_worker,node_github_api,node_github_actions,node_github_pages,node_umami toneRose
class node_visitor,node_collaborator toneIndigo
```

## Components

### Public portal

- [Institutional pages](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/index.qmd): `index.qmd`
- [Research and outreach](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/pesquisa.qmd): `pesquisa.qmd`
- [Agenda and news](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/agenda.qmd): `agenda.qmd`
- [Knowledge tree](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/arvore.qmd): `arvore.qmd`
- [Accessibility controls](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/js/acessibilidade-gpensc.js): `js/acessibilidade-gpensc.js`
- [Tree explorer](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/js/arvore-explorador.js): `js/arvore-explorador.js`
- [Tree visualizer](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/js/arvore.js): `js/arvore.js`
- [Photo gallery](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/js/galeria-home.js): `js/galeria-home.js`
- [Instagram archive](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/js/acervo-contexto.js): `js/acervo-contexto.js`

### Content and data

- [Public content data](https://github.com/maiconcarlospng/site-gpensc-teste/tree/main/data): `data`
- [Instagram import](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/scripts/importar-instagram.py): `scripts/importar-instagram.py`

### Content administration

- [Admin panel](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/admin/app.js): `admin/app.js`
- [Admin dashboard](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/admin/dashboard.js): `admin/dashboard.js`
- [Batch editing](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/admin/lote-edicoes.js): `admin/lote-edicoes.js`
- [Custom panel tools](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/admin/painel-proprio.js): `admin/painel-proprio.js`
- [Spreadsheet tools](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/admin/planilhas.js): `admin/planilhas.js`
- [Gallery editor](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/admin/galeria-multipla.js): `admin/galeria-multipla.js`
- [Cover archiver](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/admin/arquivar-capas-instagram.py): `admin/arquivar-capas-instagram.py`
- [Sveltia editor](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/admin/cms.html): `admin/cms.html`

### External services

- [Access proxy](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/admin-access-worker/worker.js): `admin-access-worker/worker.js`
- [Analytics proxy](https://github.com/maiconcarlospng/site-gpensc-teste/blob/main/analytics-worker/worker.js): `analytics-worker/worker.js`
- **GitHub API**
- **GitHub Actions**
- **GitHub Pages**
- **Umami analytics**

### Other components

- **Site visitor**
- **Authorized collaborator**

## Connections

- Site visitor → Institutional pages: browses (evidence: `README.md`)
- Institutional pages → Public content data: reads content (evidence: `README.md`)
- Research and outreach → Public content data: reads content (evidence: `README.md`)
- Agenda and news → Public content data: reads content (evidence: `README.md`)
- Knowledge tree → Public content data: reads content (evidence: `README.md`)
- Authorized collaborator → Admin panel: edits content (evidence: `README.md`)
- Admin panel → Access proxy: requests access (evidence: `README.md`)
- Access proxy → GitHub API: proxies requests (evidence: `admin-access-worker/worker.js`)
- GitHub API → Public content data: writes commits (evidence: `README.md`)
- Public content data → GitHub Actions: triggers build (evidence: `README.md`)
- GitHub Actions → GitHub Pages: publishes site (evidence: `README.md`)
- Admin dashboard → Public content data: loads collections (evidence: `admin/dashboard.js`)
- Batch editing → GitHub API: creates commits (evidence: `admin/lote-edicoes.js`)
- Admin panel → Analytics proxy: requests summary
- Analytics proxy → Umami analytics: queries metrics (evidence: `analytics-worker/worker.js`)
- Sveltia editor → Public content data: edits collections (evidence: `README.md`)
- Instagram import → Public content data: imports records
- Accessibility controls → Institutional pages: enhances access
- Tree explorer → Knowledge tree: renders branches (evidence: `js/arvore-explorador.js`)
- Tree visualizer → Knowledge tree: renders tree (evidence: `js/arvore.js`)
- Photo gallery → Institutional pages: enhances gallery
- Instagram archive → Public content data: loads archive (evidence: `js/acervo-contexto.js`)
