# leanmarquez0628/thesketchbookchronicles architecture

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

- Interactive diagram: https://gitdiagram.com/leanmarquez0628/thesketchbookchronicles
- Repository: https://github.com/leanmarquez0628/thesketchbookchronicles

## Overview

This repository is a static portfolio and art-commerce site for an artist, with a second, self-contained gallery under “Art De Gallery.” Visitors browse artwork and social posts, explore the artist’s pages, and can initiate contact or an order by email. The main site also displays refreshed social metrics. The README documents image-backed home, about, gallery, shop, and blog content; sampled JavaScript confirms gallery/lightbox, ordering, contact, and live-stat behavior. Some page wiring and blog rendering are unsampled, so those links are documented capability rather than asserted call paths.

Main entry points: [`script.js`](https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/script.js) (Gallery and shop), [`update-stats.mjs`](https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/update-stats.mjs) (Stats refresh), [`index.html`](https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/index.html) (Main site), [`Art De Gallery/update-stats.mjs`](https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/Art%20De%20Gallery/update-stats.mjs) (Standalone stats refresh)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["Portfolio site"]
  node_main_site["Main site<br/>[index.html]"]
  node_home_about["Home and about<br/>[script.js]"]
  node_standalone_gallery["Standalone gallery<br/>[index.html]"]
  node_standalone_runtime["Standalone gallery runtime<br/>[script.js]"]
end

subgraph group_content["Artwork and social content"]
  node_gallery_shop["Gallery and shop<br/>[script.js]"]
  node_artworks["Artwork catalog<br/>[script.js]"]
  node_art_assets["Artwork images"]
  node_sketchbook["Sketchbook strip<br/>[script.js]"]
  node_blog["Social blog<br/>[blog.html]"]
  node_post_data[("Post data<br/>[posts.json]")]
end

subgraph group_engagement["Visitor engagement"]
  node_contact["Contact form<br/>[script.js]"]
  node_email_app(("Email app"))
end

subgraph group_metrics["Social metrics"]
  node_stats_display["Live stats display<br/>[script.js]"]
  node_stats_data[("Stats data<br/>[stats.json]")]
  node_stats_refresh["Stats refresh<br/>[update-stats.mjs]"]
  node_social_services(("Social platforms"))
  node_standalone_stats[("Standalone stats data<br/>[stats.json]")]
  node_standalone_refresh["Standalone stats refresh<br/>[update-stats.mjs]"]
end

node_visitor(("Visitor"))

node_visitor -->|"browses"| node_main_site
node_main_site -.->|"presents"| node_home_about
node_main_site -.->|"presents"| node_gallery_shop
node_gallery_shop -->|"renders"| node_artworks
node_gallery_shop -->|"loads images"| node_art_assets
node_gallery_shop -->|"renders"| node_sketchbook
node_visitor -->|"browses"| node_blog
node_blog -->|"uses posts"| node_post_data
node_visitor -->|"submits message"| node_contact
node_contact -->|"opens email"| node_email_app
node_stats_display -->|"fetches"| node_stats_data
node_stats_refresh -->|"updates"| node_stats_data
node_stats_refresh -->|"fetches metrics"| node_social_services
node_stats_refresh -->|"refreshes posts"| node_post_data
node_visitor -.->|"browses"| node_standalone_gallery
node_standalone_gallery -.->|"uses runtime"| node_standalone_runtime
node_standalone_runtime -.->|"reads stats"| node_standalone_stats
node_standalone_refresh -->|"updates"| node_standalone_stats
node_standalone_refresh -->|"fetches metrics"| node_social_services

click node_main_site "https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/index.html"
click node_home_about "https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/script.js"
click node_gallery_shop "https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/script.js"
click node_artworks "https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/script.js"
click node_art_assets "https://github.com/leanmarquez0628/thesketchbookchronicles/tree/main/gallery"
click node_sketchbook "https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/script.js"
click node_blog "https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/blog.html"
click node_post_data "https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/posts.json"
click node_contact "https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/script.js"
click node_stats_display "https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/script.js"
click node_stats_data "https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/stats.json"
click node_stats_refresh "https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/update-stats.mjs"
click node_standalone_gallery "https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/Art%20De%20Gallery/index.html"
click node_standalone_runtime "https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/Art%20De%20Gallery/script.js"
click node_standalone_stats "https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/Art%20De%20Gallery/stats.json"
click node_standalone_refresh "https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/Art%20De%20Gallery/update-stats.mjs"

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_main_site,node_home_about,node_standalone_gallery,node_standalone_runtime toneBlue
class node_gallery_shop,node_artworks,node_art_assets,node_sketchbook,node_blog,node_post_data toneAmber
class node_contact,node_email_app toneMint
class node_stats_display,node_stats_data,node_stats_refresh,node_social_services,node_standalone_stats,node_standalone_refresh toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio site

- [Main site](https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/index.html): `index.html`
- [Home and about](https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/script.js): `script.js`
- [Standalone gallery](https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/Art%20De%20Gallery/index.html): `Art De Gallery/index.html`
- [Standalone gallery runtime](https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/Art%20De%20Gallery/script.js): `Art De Gallery/script.js`

### Artwork and social content

- [Gallery and shop](https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/script.js): `script.js`
- [Artwork catalog](https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/script.js): `script.js`
- [Artwork images](https://github.com/leanmarquez0628/thesketchbookchronicles/tree/main/gallery): `gallery`
- [Sketchbook strip](https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/script.js): `script.js`
- [Social blog](https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/blog.html): `blog.html`
- [Post data](https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/posts.json): `posts.json`

### Visitor engagement

- [Contact form](https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/script.js): `script.js`
- **Email app**

### Social metrics

- [Live stats display](https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/script.js): `script.js`
- [Stats data](https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/stats.json): `stats.json`
- [Stats refresh](https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/update-stats.mjs): `update-stats.mjs`
- **Social platforms**
- [Standalone stats data](https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/Art%20De%20Gallery/stats.json): `Art De Gallery/stats.json`
- [Standalone stats refresh](https://github.com/leanmarquez0628/thesketchbookchronicles/blob/main/Art%20De%20Gallery/update-stats.mjs): `Art De Gallery/update-stats.mjs`

### Other components

- **Visitor**

## Connections

- Visitor → Main site: browses (evidence: `README.txt`)
- Main site → Home and about: presents
- Main site → Gallery and shop: presents
- Gallery and shop → Artwork catalog: renders (evidence: `script.js`)
- Gallery and shop → Artwork images: loads images (evidence: `README.txt`)
- Gallery and shop → Sketchbook strip: renders (evidence: `README.txt`)
- Visitor → Social blog: browses (evidence: `README.txt`)
- Social blog → Post data: uses posts (evidence: `README.txt`)
- Visitor → Contact form: submits message (evidence: `script.js`)
- Contact form → Email app: opens email (evidence: `script.js`)
- Live stats display → Stats data: fetches (evidence: `script.js`)
- Stats refresh → Stats data: updates (evidence: `update-stats.mjs`)
- Stats refresh → Social platforms: fetches metrics (evidence: `update-stats.mjs`)
- Stats refresh → Post data: refreshes posts (evidence: `update-stats.mjs`)
- Visitor → Standalone gallery: browses
- Standalone gallery → Standalone gallery runtime: uses runtime
- Standalone gallery runtime → Standalone stats data: reads stats
- Standalone stats refresh → Standalone stats data: updates (evidence: `Art De Gallery/update-stats.mjs`)
- Standalone stats refresh → Social platforms: fetches metrics (evidence: `Art De Gallery/update-stats.mjs`)
