# juancho033/juanlauncher architecture

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

- Interactive diagram: https://gitdiagram.com/juancho033/juanlauncher
- Repository: https://github.com/juancho033/juanlauncher

## Overview

#### Purpose and delivery model
JuanLauncher is a static Spanish-language catalog site for discovering and accessing PC/Android game downloads. It is deployed as browser-delivered HTML/CSS/JavaScript, with no indicated backend, build system, database, or server runtime. The primary launch page is `index.html`; local use is opening it directly or serving static files.

#### Entry points and page topology
The site is organized as separate HTML documents rather than a client-side SPA:
- Main catalog/home: `index.html`
- Individual game view: `juego.html`
- News listing/detail: `noticias.html`, `noticia.html`
- User-oriented screens: `login.html`, `dashboard.html`
- Supporting informational pages: `ayuda.html`, `compatibilidad.html`, `comunidad.html`, `contacto.html`, `changelog.html`

Navigation state and page-specific rendering are handled in browser JavaScript rather than server routes.

#### Shared presentation and browser behavior
`style.css` is the central visual layer across pages. Shared interactive/navigation behavior is likely centralized in `script.js`, while content domains have dedicated scripts. This establishes a simple boundary: HTML supplies page shells, CSS supplies presentation, and JavaScript mutates or populates browser UI.

Grounding paths: `style.css`, `script.js`, `index.html`.

#### Game catalog and detail flow
The game domain is driven by `juegos.js`. A likely flow is:
1. A listing page loads game metadata from JavaScript.
2. User selection navigates to `juego.html`, likely carrying an identifier through URL parameters or browser-side state.
3. The detail page resolves that identifier, presents game information, imagery, and external download/access links.

Game artwork is stored and served as static repository assets, partitioned by title. Examples include `img/balatro`, `img/celeste`, and `img/stardewvalley`. This means catalog records must stay aligned with folder names and asset paths.

#### News content flow
News is a separate content domain backed by `noticias.js`, with a list/detail split:
- `noticias.html` presents the news feed.
- `noticia.html` presents a selected item.
- `noticias.js` likely owns news metadata and selection/rendering logic.

This mirrors the game catalog architecture but keeps editorial content separate from game records.

#### External boundaries and infrastructure
The repository is intended for static hosting, explicitly linked to GitHub Pages in `README.md`. The runtime boundary is the end user’s browser; all data available to the interface is embedded in static files or fetched through links defined by those files. Download destinations and game ownership are external to the repository/site, while local image assets remain under `img/`. `google300d4da7714033f3.html` is a static Google site-verification artifact.

#### Architectural constraints
There is no visible API, authentication service, persistence layer, package manifest, or backend. Consequently, `login.html` and `dashboard.html` can only provide client-side/static behavior unless external services are embedded elsewhere. Adding real accounts, personalized dashboards, moderated community features, or managed catalog data would require introducing an API/backend and a durable data store; today, JavaScript source files are the apparent content-management boundary.

Main entry points: [`juego.html`](https://github.com/juancho033/juanlauncher/blob/main/juego.html) (Game detail), [`index.html`](https://github.com/juancho033/juanlauncher/blob/main/index.html) (Catalog home), [`juegos.js`](https://github.com/juancho033/juanlauncher/blob/main/juegos.js) (Game catalog data), [`noticia.html`](https://github.com/juancho033/juanlauncher/blob/main/noticia.html) (News detail)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Static pages"]
  node_home["Catalog home<br/>HTML page<br/>[index.html]"]
  node_game_detail["Game detail<br/>HTML page<br/>[juego.html]"]
  node_news_list["News list<br/>HTML page<br/>[noticias.html]"]
  node_news_detail["News detail<br/>HTML page<br/>[noticia.html]"]
  node_user_pages["User screens<br/>static HTML pages<br/>[login.html]"]
  node_info_pages["Information pages<br/>static HTML pages<br/>[ayuda.html]"]
end

subgraph group_browser["Browser content and UI"]
  node_styles["Shared styles<br/>CSS<br/>[style.css]"]
  node_shared_ui["Shared UI behavior<br/>JavaScript<br/>[script.js]"]
  node_game_catalog["Game catalog data<br/>JavaScript<br/>[juegos.js]"]
  node_news_content["News content<br/>JavaScript<br/>[noticias.js]"]
  node_game_assets["Game artwork<br/>static assets"]
end

subgraph group_delivery["Static delivery"]
  node_static_hosting{{"GitHub Pages hosting<br/>static hosting<br/>[README.md]"}}
  node_browser_runtime(("End-user browser<br/>runtime"))
end

node_external_downloads{{"Download destinations<br/>external links"}}

node_static_hosting -->|"serves static files"| node_browser_runtime
node_browser_runtime -->|"opens"| node_home
node_browser_runtime -->|"navigates to"| node_game_detail
node_browser_runtime -->|"navigates to"| node_news_list
node_browser_runtime -->|"navigates to"| node_news_detail
node_home -->|"uses"| node_styles
node_home -->|"loads"| node_shared_ui
node_home -->|"renders catalog"| node_game_catalog
node_game_catalog -->|"selects game"| node_game_detail
node_game_catalog -->|"references artwork"| node_game_assets
node_game_detail -->|"resolves selected game"| node_game_catalog
node_game_detail -->|"displays artwork"| node_game_assets
node_game_detail -->|"links out"| node_external_downloads
node_news_list -->|"renders feed"| node_news_content
node_news_content -->|"selects article"| node_news_detail
node_news_detail -->|"resolves selected item"| node_news_content
node_user_pages -->|"uses"| node_styles
node_info_pages -->|"uses"| node_styles

click node_home "https://github.com/juancho033/juanlauncher/blob/main/index.html"
click node_game_detail "https://github.com/juancho033/juanlauncher/blob/main/juego.html"
click node_news_list "https://github.com/juancho033/juanlauncher/blob/main/noticias.html"
click node_news_detail "https://github.com/juancho033/juanlauncher/blob/main/noticia.html"
click node_user_pages "https://github.com/juancho033/juanlauncher/blob/main/login.html"
click node_info_pages "https://github.com/juancho033/juanlauncher/blob/main/ayuda.html"
click node_styles "https://github.com/juancho033/juanlauncher/blob/main/style.css"
click node_shared_ui "https://github.com/juancho033/juanlauncher/blob/main/script.js"
click node_game_catalog "https://github.com/juancho033/juanlauncher/blob/main/juegos.js"
click node_news_content "https://github.com/juancho033/juanlauncher/blob/main/noticias.js"
click node_game_assets "https://github.com/juancho033/juanlauncher/tree/main/img/balatro"
click node_static_hosting "https://github.com/juancho033/juanlauncher/blob/main/README.md"

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_game_detail,node_news_list,node_news_detail,node_user_pages,node_info_pages toneBlue
class node_styles,node_shared_ui,node_game_catalog,node_news_content,node_game_assets toneAmber
class node_static_hosting,node_browser_runtime toneMint
class node_external_downloads toneNeutral
```

## Components

### Static pages

Separate documents provide the site views.

- [Catalog home](https://github.com/juancho033/juanlauncher/blob/main/index.html): HTML page · `index.html`
- [Game detail](https://github.com/juancho033/juanlauncher/blob/main/juego.html): HTML page · `juego.html`
- [News list](https://github.com/juancho033/juanlauncher/blob/main/noticias.html): HTML page · `noticias.html`
- [News detail](https://github.com/juancho033/juanlauncher/blob/main/noticia.html): HTML page · `noticia.html`
- [User screens](https://github.com/juancho033/juanlauncher/blob/main/login.html): static HTML pages · Login and dashboard remain browser-only screens. · `login.html`
- [Information pages](https://github.com/juancho033/juanlauncher/blob/main/ayuda.html): static HTML pages · Help, compatibility, community, contact, and changelog views. · `ayuda.html`

### Browser content and UI

Client-side scripts supply content and behavior.

- [Shared styles](https://github.com/juancho033/juanlauncher/blob/main/style.css): CSS · `style.css`
- [Shared UI behavior](https://github.com/juancho033/juanlauncher/blob/main/script.js): JavaScript · Navigation and shared browser interactions. · `script.js`
- [Game catalog data](https://github.com/juancho033/juanlauncher/blob/main/juegos.js): JavaScript · Game metadata and catalog/detail rendering logic. · `juegos.js`
- [News content](https://github.com/juancho033/juanlauncher/blob/main/noticias.js): JavaScript · News metadata and list/detail rendering logic. · `noticias.js`
- [Game artwork](https://github.com/juancho033/juanlauncher/tree/main/img/balatro): static assets · Title-partitioned local images must match catalog asset paths. · `img/balatro`

### Static delivery

The repository is deployed without an application server.

- [GitHub Pages hosting](https://github.com/juancho033/juanlauncher/blob/main/README.md): static hosting · Serves repository files directly to browsers. · `README.md`
- **End-user browser**: runtime · Renders pages and executes all local behavior.

### Other components

- **Download destinations**: external links · Game access and ownership remain outside the site.

## Connections

- GitHub Pages hosting → End-user browser: serves static files
- End-user browser → Catalog home: opens
- End-user browser → Game detail: navigates to
- End-user browser → News list: navigates to
- End-user browser → News detail: navigates to
- Catalog home → Shared styles: uses
- Catalog home → Shared UI behavior: loads
- Catalog home → Game catalog data: renders catalog
- Game catalog data → Game detail: selects game · Identifier is carried through browser navigation or state.
- Game catalog data → Game artwork: references artwork
- Game detail → Game catalog data: resolves selected game
- Game detail → Game artwork: displays artwork
- Game detail → Download destinations: links out
- News list → News content: renders feed
- News content → News detail: selects article
- News detail → News content: resolves selected item
- User screens → Shared styles: uses
- Information pages → Shared styles: uses
