# samaniegolouie/playgroundcode architecture

> Architecture diagram of the GitHub repository samaniegolouie/playgroundcode, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-07-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/samaniegolouie/playgroundcode
- Repository: https://github.com/samaniegolouie/playgroundcode

## Overview

##### Project type and purpose
- This is essentially a static “playground” website (playgroundcode.github.io) for front-end experiments (HTML/JS demos) with a small number of server-side PHP prototypes (e.g. apiprototype.php) and test data (dummyapi.json, test.sql). There is no formal framework, it’s a collection of standalone demo pages and a “build” folder that packages PDFMake (JS PDF generator) and its fonts for use in the browser.

##### File structure
- Top level: dozens of .html demo pages (drag-and-drop examples, tables, QR code page, etc.), two .php API prototypes, a SQL dump, and dummy JSON.
- “build/”: JavaScript library pdfmake.js, its source map, vfs_fonts.js, and font definitions under build/fonts.
- “img/”: static images/logos.
- “.vscode/”: IDE configuration.
- No package.json or server framework directory—this is static content plus ad-hoc PHP scripts.

##### README insights
- The README only contains a Git cheat-sheet, no architectural notes. We must infer that content is served statically (likely via GitHub Pages) and the PHP files must run on a separate PHP-capable host for the API prototypes.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Front-end Layer
    subgraph "Front-end Layer"
        Browser["Browser"]:::frontend
        StaticHost["Static Asset Host"]:::frontend
        HTMLDemoPages["HTML Demo Pages"]:::frontend
        StaticImages["Static Images"]:::frontend
        DummyAPI["dummyapi.json"]:::frontend
        PDFMake["PDFMake Library"]:::external
    end

    %% Back-end Layer
    subgraph "Back-end Layer"
        PHPServer["PHP API Server"]:::backend
        SQLDB(("SQL Database")):::db
    end

    %% Development Environment
    subgraph "Development Environment"
        IDEConfig["IDE Configuration"]:::external
    end

    %% Relationships
    Browser -->|"HTTP GET HTML/JS/CSS/JSON/Images"| StaticHost
    StaticHost -->|serves| HTMLDemoPages
    StaticHost -->|serves| StaticImages
    StaticHost -->|serves| DummyAPI
    Browser -->|loads library| PDFMake
    Browser -->|AJAX calls| DummyAPI
    Browser -->|AJAX calls| PHPServer
    PHPServer -->|queries| SQLDB

    %% Click Events
    click HTMLDemoPages "https://github.com/samaniegolouie/playgroundcode/tree/main/./"
    click DummyAPI "https://github.com/samaniegolouie/playgroundcode/blob/main/./dummyapi.json"
    click PDFMake "https://github.com/samaniegolouie/playgroundcode/blob/main/./build/pdfmake.js"
    click PDFMake "https://github.com/samaniegolouie/playgroundcode/blob/main/./build/pdfmake.js.map"
    click PDFMake "https://github.com/samaniegolouie/playgroundcode/blob/main/./build/vfs_fonts.js"
    click BuildFonts "https://github.com/samaniegolouie/playgroundcode/tree/main/./build/fonts/"
    click StandardFonts "https://github.com/samaniegolouie/playgroundcode/tree/main/./build/standard-fonts/"
    click StaticImages "https://github.com/samaniegolouie/playgroundcode/tree/main/./img/"
    click APIProto1 "https://github.com/samaniegolouie/playgroundcode/blob/main/./apiprototype.php"
    click APIProto2 "https://github.com/samaniegolouie/playgroundcode/blob/main/./apiprototype2.php"
    click SQLDB "https://github.com/samaniegolouie/playgroundcode/blob/main/./test/test.sql"
    click IDEConfig "https://github.com/samaniegolouie/playgroundcode/tree/main/./.vscode/"

    %% Styles
    classDef frontend fill:#cce5ff,stroke:#2b6cb0,stroke-width:2px
    classDef backend fill:#d4edda,stroke:#276749,stroke-width:2px
    classDef db fill:#f8d7da,stroke:#742a2a,stroke-width:2px
    classDef external fill:#fff3cd,stroke:#975a16,stroke-width:2px,stroke-dasharray: 5 5
```
