# s12gamer/trucopagina architecture

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

- Interactive diagram: https://gitdiagram.com/s12gamer/trucopagina
- Repository: https://github.com/s12gamer/trucopagina

## Overview

This repository is a collection of browser-based tools and sites, with the TPF academic resource center and report generator as its largest applications. The visible user workflows are browsing academic resources and editing/exporting reports; other directories provide separate PWAs and promotional sites. Source excerpts support only a few direct connections, so unsampled integrations are not inferred.

Main entry points: [`TPF/app.js`](https://github.com/s12gamer/trucopagina/blob/main/TPF/app.js) (Resource center), [`TPF/Generador/app.js`](https://github.com/s12gamer/trucopagina/blob/main/TPF/Generador/app.js) (Report editor), [`TPF/Generador/pwa.js`](https://github.com/s12gamer/trucopagina/blob/main/TPF/Generador/pwa.js) (Generator PWA), [`TPF/Synaps/sw.js`](https://github.com/s12gamer/trucopagina/blob/main/TPF/Synaps/sw.js) (Synaps worker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_academic["Academic Resources"]
  node_resource_center["Resource center<br/>[app.js]"]
  node_resource_notices["Academic notices<br/>[app.js]"]
  node_resource_scripts["Resource interactions<br/>[scripts.js]"]
  node_resource_ai["AI module<br/>[ai-module.js]"]
  node_theme_engine["Seasonal themes"]
end

subgraph group_generator["Report Generator"]
  node_report_app["Report editor<br/>[app.js]"]
  node_visual_editor["Visual editor<br/>[editor-visual.js]"]
  node_team_tools["Team tools<br/>[equipos.js]"]
  node_image_tools["Image tools<br/>[imagenes.js]"]
  node_doc_template["Document template<br/>[plantilla.js]"]
  node_generator_pwa["Generator PWA<br/>[pwa.js]"]
  node_generator_worker["Generator worker<br/>[sw.js]"]
end

subgraph group_pwa["Offline Apps"]
  node_synaps["Synaps app<br/>[index.html]"]
  node_synaps_worker["Synaps worker<br/>[sw.js]"]
end

subgraph group_sites["Standalone Sites"]
  node_neon_site["Neon portfolio<br/>[script.js]"]
  node_garage_site["Speed Garage<br/>[script.js]"]
  node_frequency_tool["Frequency calculator<br/>[scripta.js]"]
end

node_user(("Site visitor"))

node_user -->|"browses resources"| node_resource_center
node_resource_center -->|"fetches notices"| node_resource_notices
node_user -->|"edits reports"| node_report_app
node_report_app -->|"names module"| node_generator_pwa
node_generator_pwa -->|"registers worker"| node_generator_worker
node_synaps_worker -->|"caches app data"| node_resource_center
node_user -->|"views portfolio"| node_neon_site
node_user -->|"uses site"| node_garage_site
node_user -->|"calculates frequencies"| node_frequency_tool

click node_resource_center "https://github.com/s12gamer/trucopagina/blob/main/TPF/app.js"
click node_resource_notices "https://github.com/s12gamer/trucopagina/blob/main/TPF/app.js"
click node_resource_scripts "https://github.com/s12gamer/trucopagina/blob/main/TPF/scripts.js"
click node_resource_ai "https://github.com/s12gamer/trucopagina/blob/main/TPF/ai-module.js"
click node_theme_engine "https://github.com/s12gamer/trucopagina/blob/main/TPF/tpf-theme-engine.js"
click node_report_app "https://github.com/s12gamer/trucopagina/blob/main/TPF/Generador/app.js"
click node_visual_editor "https://github.com/s12gamer/trucopagina/blob/main/TPF/Generador/editor-visual.js"
click node_team_tools "https://github.com/s12gamer/trucopagina/blob/main/TPF/Generador/equipos.js"
click node_image_tools "https://github.com/s12gamer/trucopagina/blob/main/TPF/Generador/imagenes.js"
click node_doc_template "https://github.com/s12gamer/trucopagina/blob/main/TPF/plantilla.js"
click node_generator_pwa "https://github.com/s12gamer/trucopagina/blob/main/TPF/Generador/pwa.js"
click node_generator_worker "https://github.com/s12gamer/trucopagina/blob/main/TPF/Generador/sw.js"
click node_synaps "https://github.com/s12gamer/trucopagina/blob/main/TPF/Synaps/index.html"
click node_synaps_worker "https://github.com/s12gamer/trucopagina/blob/main/TPF/Synaps/sw.js"
click node_neon_site "https://github.com/s12gamer/trucopagina/blob/main/neons/script.js"
click node_garage_site "https://github.com/s12gamer/trucopagina/blob/main/sgmx/script.js"
click node_frequency_tool "https://github.com/s12gamer/trucopagina/blob/main/scripta.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_resource_center,node_resource_notices,node_resource_scripts,node_resource_ai,node_theme_engine toneBlue
class node_report_app,node_visual_editor,node_team_tools,node_image_tools,node_doc_template,node_generator_pwa,node_generator_worker toneAmber
class node_synaps,node_synaps_worker toneMint
class node_neon_site,node_garage_site,node_frequency_tool toneRose
class node_user toneIndigo
```

## Components

### Academic Resources

- [Resource center](https://github.com/s12gamer/trucopagina/blob/main/TPF/app.js): `TPF/app.js`
- [Academic notices](https://github.com/s12gamer/trucopagina/blob/main/TPF/app.js): `TPF/app.js`
- [Resource interactions](https://github.com/s12gamer/trucopagina/blob/main/TPF/scripts.js): `TPF/scripts.js`
- [AI module](https://github.com/s12gamer/trucopagina/blob/main/TPF/ai-module.js): `TPF/ai-module.js`
- [Seasonal themes](https://github.com/s12gamer/trucopagina/blob/main/TPF/tpf-theme-engine.js): `TPF/tpf-theme-engine.js`

### Report Generator

- [Report editor](https://github.com/s12gamer/trucopagina/blob/main/TPF/Generador/app.js): `TPF/Generador/app.js`
- [Visual editor](https://github.com/s12gamer/trucopagina/blob/main/TPF/Generador/editor-visual.js): `TPF/Generador/editor-visual.js`
- [Team tools](https://github.com/s12gamer/trucopagina/blob/main/TPF/Generador/equipos.js): `TPF/Generador/equipos.js`
- [Image tools](https://github.com/s12gamer/trucopagina/blob/main/TPF/Generador/imagenes.js): `TPF/Generador/imagenes.js`
- [Document template](https://github.com/s12gamer/trucopagina/blob/main/TPF/plantilla.js): `TPF/plantilla.js`
- [Generator PWA](https://github.com/s12gamer/trucopagina/blob/main/TPF/Generador/pwa.js): `TPF/Generador/pwa.js`
- [Generator worker](https://github.com/s12gamer/trucopagina/blob/main/TPF/Generador/sw.js): `TPF/Generador/sw.js`

### Offline Apps

- [Synaps app](https://github.com/s12gamer/trucopagina/blob/main/TPF/Synaps/index.html): `TPF/Synaps/index.html`
- [Synaps worker](https://github.com/s12gamer/trucopagina/blob/main/TPF/Synaps/sw.js): `TPF/Synaps/sw.js`

### Standalone Sites

- [Neon portfolio](https://github.com/s12gamer/trucopagina/blob/main/neons/script.js): `neons/script.js`
- [Speed Garage](https://github.com/s12gamer/trucopagina/blob/main/sgmx/script.js): `sgmx/script.js`
- [Frequency calculator](https://github.com/s12gamer/trucopagina/blob/main/scripta.js): `scripta.js`

### Other components

- **Site visitor**

## Connections

- Site visitor → Resource center: browses resources (evidence: `TPF/app.js`)
- Resource center → Academic notices: fetches notices (evidence: `TPF/app.js`)
- Site visitor → Report editor: edits reports (evidence: `TPF/Generador/app.js`)
- Report editor → Generator PWA: names module (evidence: `TPF/Generador/app.js`)
- Generator PWA → Generator worker: registers worker (evidence: `TPF/Generador/pwa.js`)
- Synaps worker → Resource center: caches app data (evidence: `TPF/Synaps/sw.js`)
- Site visitor → Neon portfolio: views portfolio (evidence: `neons/script.js`)
- Site visitor → Speed Garage: uses site (evidence: `sgmx/script.js`)
- Site visitor → Frequency calculator: calculates frequencies (evidence: `scripta.js`)
