# vk-official/prompt-length-experiment architecture

> Architecture diagram of the GitHub repository vk-official/prompt-length-experiment, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vk-official/prompt-length-experiment
- Repository: https://github.com/vk-official/prompt-length-experiment

## Overview

1. **Repository purpose**
   - This is a static experiment repository, not an application with a backend. Its job is to preserve and compare AI-generated front-end outputs for the same design task under different prompt lengths.

2. **Core architectural shape**
   - The top level splits into four model-specific domains: **ChatGPT**, **Deepseek**, **Gemini**, and **Grok**.
   - Inside each model domain are three prompt-length variants: **Short**, **Medium**, and **Long**.
   - This gives the repo a 4 × 3 matrix structure for comparing outputs across models and prompt sizes.

3. **Primary data flow**
   - The README describes the source of truth: a single prompt experiment about generating a premium chocolate hero page.
   - The prompts are the inputs.
   - The generated front-end files are the outputs.
   - The browser is the only execution environment; there is no API, database, or server-side processing.

4. **Artifact boundary: self-contained front-end bundles**
   - Each model/prompt folder contains a complete front-end deliverable:
     - `index.html`
     - `style.css`
     - `script.js`
   - These files form an isolated bundle per experiment cell, meaning each output can be opened directly in a browser without dependencies on other folders.

5. **Comparison boundary**
   - The repo’s main analytical boundary is not feature modules, but **prompt-model combinations**.
   - The architecture is intended for side-by-side inspection of how the same UI task changes when:
     - the model changes, or
     - the prompt becomes shorter/longer.

6. **“First Reply” subfolders**
   - Some variants include a nested **First Reply** folder containing an additional `index.html`.
   - This indicates an alternate captured response from the model, likely preserved separately from the main output.
   - In an architecture diagram, treat these as secondary snapshots within a given experiment cell.

7. **Runtime characteristics**
   - The outputs are plain client-side web assets.
   - `index.html` is the entry point, `style.css` provides presentation, and `script.js` handles behavior/animation.
   - The repository relies on the browser runtime only; there is no build step or package tooling visible in the tree.

8. **Design task being exercised**
   - Every generated output targets the same UX goal: a luxury chocolate brand hero section.
   - The required features from the prompt include typography, animations, CTA treatment, and image placeholders.
   - That consistency is what makes the outputs comparable across model and prompt length.

9. **Experimental observation encoded in the repo**
   - The README records the result pattern:
     - ChatGPT performed best with the long prompt.
     - Deepseek and Gemini were strongest with the medium prompt.
     - Grok produced its most elaborate result from the short prompt.
   - The repo therefore functions as an experiment archive, not just a code sample collection.

10. **Important architectural boundary**
    - There is no shared component library or shared source-of-truth code reused across folders.
    - Each folder is an independent snapshot, so the repo is organized for comparison and manual review rather than code reuse or deployment.

11. **External dependencies**
    - The README mentions Google Fonts in the long prompt, but the repository itself does not show a centralized asset pipeline or dependency manager.
    - Any external font usage or other assets would be embedded directly in the individual HTML/CSS outputs, if present.

12. **How to diagram this repo**
    - At the highest level, show:
      - the README as the experiment spec,
      - four model branches,
      - three prompt-length branches under each model,
      - and a leaf node for each self-contained front-end bundle.
    - Optionally annotate the “First Reply” leaves as secondary captures.

Main entry points: [`README.md`](https://github.com/vk-official/prompt-length-experiment/blob/main/README.md) (README), [`ChatGPT`](https://github.com/vk-official/prompt-length-experiment/tree/main/ChatGPT) (ChatGPT), [`Deepseek`](https://github.com/vk-official/prompt-length-experiment/tree/main/Deepseek) (Deepseek), [`Gemini`](https://github.com/vk-official/prompt-length-experiment/tree/main/Gemini) (Gemini)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_chatgpt["ChatGPT"]
  node_chatgpt_model["ChatGPT<br/>model branch"]
  node_chatgpt_short["Short<br/>front-end bundle"]
  node_chatgpt_medium["Medium<br/>front-end bundle"]
  node_chatgpt_long["Long<br/>front-end bundle"]
  node_chatgpt_short_reply["First Reply<br/>secondary snapshot"]
end

subgraph group_deepseek["Deepseek"]
  node_deepseek_model["Deepseek<br/>model branch"]
  node_deepseek_short["Short<br/>front-end bundle"]
  node_deepseek_medium["Medium<br/>front-end bundle"]
  node_deepseek_long["Long<br/>front-end bundle"]
  node_deepseek_short_reply["First Reply<br/>secondary snapshot"]
  node_deepseek_medium_reply["First Reply<br/>secondary snapshot"]
end

subgraph group_gemini["Gemini"]
  node_gemini_model["Gemini<br/>model branch"]
  node_gemini_short["Short<br/>front-end bundle"]
  node_gemini_medium["Medium<br/>front-end bundle"]
  node_gemini_long["Long<br/>front-end bundle"]
end

subgraph group_grok["Grok"]
  node_grok_model["Grok<br/>model branch"]
  node_grok_short["Short<br/>front-end bundle"]
  node_grok_medium["Medium<br/>front-end bundle"]
  node_grok_long["Long<br/>front-end bundle"]
  node_grok_short_reply["First Reply<br/>secondary snapshot"]
end

node_readme["README<br/>experiment spec<br/>[README.md]"]

node_readme -->|"specifies"| node_chatgpt_model
node_readme -->|"specifies"| node_deepseek_model
node_readme -->|"specifies"| node_gemini_model
node_readme -->|"specifies"| node_grok_model
node_chatgpt_model -->|"includes"| node_chatgpt_short
node_chatgpt_model -->|"includes"| node_chatgpt_medium
node_chatgpt_model -->|"includes"| node_chatgpt_long
node_chatgpt_short -->|"captures"| node_chatgpt_short_reply
node_deepseek_model -->|"includes"| node_deepseek_short
node_deepseek_model -->|"includes"| node_deepseek_medium
node_deepseek_model -->|"includes"| node_deepseek_long
node_deepseek_short -->|"captures"| node_deepseek_short_reply
node_deepseek_medium -->|"captures"| node_deepseek_medium_reply
node_gemini_model -->|"includes"| node_gemini_short
node_gemini_model -->|"includes"| node_gemini_medium
node_gemini_model -->|"includes"| node_gemini_long
node_grok_model -->|"includes"| node_grok_short
node_grok_model -->|"includes"| node_grok_medium
node_grok_model -->|"includes"| node_grok_long
node_grok_short -->|"captures"| node_grok_short_reply

click node_readme "https://github.com/vk-official/prompt-length-experiment/blob/main/README.md"
click node_chatgpt_model "https://github.com/vk-official/prompt-length-experiment/tree/main/ChatGPT"
click node_chatgpt_short "https://github.com/vk-official/prompt-length-experiment/tree/main/ChatGPT/Short"
click node_chatgpt_medium "https://github.com/vk-official/prompt-length-experiment/tree/main/ChatGPT/Medium"
click node_chatgpt_long "https://github.com/vk-official/prompt-length-experiment/tree/main/ChatGPT/Long"
click node_chatgpt_short_reply "https://github.com/vk-official/prompt-length-experiment/tree/main/ChatGPT/Short/First Reply"
click node_deepseek_model "https://github.com/vk-official/prompt-length-experiment/tree/main/Deepseek"
click node_deepseek_short "https://github.com/vk-official/prompt-length-experiment/tree/main/Deepseek/Short"
click node_deepseek_medium "https://github.com/vk-official/prompt-length-experiment/tree/main/Deepseek/Medium"
click node_deepseek_long "https://github.com/vk-official/prompt-length-experiment/tree/main/Deepseek/Long"
click node_deepseek_short_reply "https://github.com/vk-official/prompt-length-experiment/tree/main/Deepseek/Short/First Reply"
click node_deepseek_medium_reply "https://github.com/vk-official/prompt-length-experiment/tree/main/Deepseek/Medium/First Reply"
click node_gemini_model "https://github.com/vk-official/prompt-length-experiment/tree/main/Gemini"
click node_gemini_short "https://github.com/vk-official/prompt-length-experiment/tree/main/Gemini/Short"
click node_gemini_medium "https://github.com/vk-official/prompt-length-experiment/tree/main/Gemini/Medium"
click node_gemini_long "https://github.com/vk-official/prompt-length-experiment/tree/main/Gemini/Long"
click node_grok_model "https://github.com/vk-official/prompt-length-experiment/tree/main/Grok"
click node_grok_short "https://github.com/vk-official/prompt-length-experiment/tree/main/Grok/Short"
click node_grok_medium "https://github.com/vk-official/prompt-length-experiment/tree/main/Grok/Medium"
click node_grok_long "https://github.com/vk-official/prompt-length-experiment/tree/main/Grok/Long"
click node_grok_short_reply "https://github.com/vk-official/prompt-length-experiment/tree/main/Grok/Short/First Reply"

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_chatgpt_model,node_chatgpt_short,node_chatgpt_medium,node_chatgpt_long,node_chatgpt_short_reply toneBlue
class node_deepseek_model,node_deepseek_short,node_deepseek_medium,node_deepseek_long,node_deepseek_short_reply,node_deepseek_medium_reply toneAmber
class node_gemini_model,node_gemini_short,node_gemini_medium,node_gemini_long toneMint
class node_grok_model,node_grok_short,node_grok_medium,node_grok_long,node_grok_short_reply toneRose
class node_readme toneNeutral
```

## Components

### ChatGPT

Model-specific experiment branch

- [ChatGPT](https://github.com/vk-official/prompt-length-experiment/tree/main/ChatGPT): model branch · Outputs for the ChatGPT runs · `ChatGPT`
- [Short](https://github.com/vk-official/prompt-length-experiment/tree/main/ChatGPT/Short): front-end bundle · Self-contained browser bundle for the short prompt variant · `ChatGPT/Short`
- [Medium](https://github.com/vk-official/prompt-length-experiment/tree/main/ChatGPT/Medium): front-end bundle · Self-contained browser bundle for the medium prompt variant · `ChatGPT/Medium`
- [Long](https://github.com/vk-official/prompt-length-experiment/tree/main/ChatGPT/Long): front-end bundle · Self-contained browser bundle for the long prompt variant · `ChatGPT/Long`
- [First Reply](https://github.com/vk-official/prompt-length-experiment/tree/HEAD/ChatGPT/Short/First%20Reply): secondary snapshot · Alternate captured response nested under the short variant · `ChatGPT/Short/First Reply`

### Deepseek

Model-specific experiment branch

- [Deepseek](https://github.com/vk-official/prompt-length-experiment/tree/main/Deepseek): model branch · Outputs for the Deepseek runs · `Deepseek`
- [Short](https://github.com/vk-official/prompt-length-experiment/tree/main/Deepseek/Short): front-end bundle · Self-contained browser bundle for the short prompt variant · `Deepseek/Short`
- [Medium](https://github.com/vk-official/prompt-length-experiment/tree/main/Deepseek/Medium): front-end bundle · Self-contained browser bundle for the medium prompt variant · `Deepseek/Medium`
- [Long](https://github.com/vk-official/prompt-length-experiment/tree/main/Deepseek/Long): front-end bundle · Self-contained browser bundle for the long prompt variant · `Deepseek/Long`
- [First Reply](https://github.com/vk-official/prompt-length-experiment/tree/HEAD/Deepseek/Short/First%20Reply): secondary snapshot · Alternate captured response nested under the short variant · `Deepseek/Short/First Reply`
- [First Reply](https://github.com/vk-official/prompt-length-experiment/tree/HEAD/Deepseek/Medium/First%20Reply): secondary snapshot · Alternate captured response nested under the medium variant · `Deepseek/Medium/First Reply`

### Gemini

Model-specific experiment branch

- [Gemini](https://github.com/vk-official/prompt-length-experiment/tree/main/Gemini): model branch · Outputs for the Gemini runs · `Gemini`
- [Short](https://github.com/vk-official/prompt-length-experiment/tree/main/Gemini/Short): front-end bundle · Self-contained browser bundle for the short prompt variant · `Gemini/Short`
- [Medium](https://github.com/vk-official/prompt-length-experiment/tree/main/Gemini/Medium): front-end bundle · Self-contained browser bundle for the medium prompt variant · `Gemini/Medium`
- [Long](https://github.com/vk-official/prompt-length-experiment/tree/main/Gemini/Long): front-end bundle · Self-contained browser bundle for the long prompt variant · `Gemini/Long`

### Grok

Model-specific experiment branch

- [Grok](https://github.com/vk-official/prompt-length-experiment/tree/main/Grok): model branch · Outputs for the Grok runs · `Grok`
- [Short](https://github.com/vk-official/prompt-length-experiment/tree/main/Grok/Short): front-end bundle · Self-contained browser bundle for the short prompt variant · `Grok/Short`
- [Medium](https://github.com/vk-official/prompt-length-experiment/tree/main/Grok/Medium): front-end bundle · Self-contained browser bundle for the medium prompt variant · `Grok/Medium`
- [Long](https://github.com/vk-official/prompt-length-experiment/tree/main/Grok/Long): front-end bundle · Self-contained browser bundle for the long prompt variant · `Grok/Long`
- [First Reply](https://github.com/vk-official/prompt-length-experiment/tree/HEAD/Grok/Short/First%20Reply): secondary snapshot · Alternate captured response nested under the short variant · `Grok/Short/First Reply`

### Other components

- [README](https://github.com/vk-official/prompt-length-experiment/blob/main/README.md): experiment spec · Source of truth for the prompt experiment and comparative findings · `README.md`

## Connections

- README → ChatGPT: specifies · README frames the ChatGPT comparison branch
- README → Deepseek: specifies · README frames the Deepseek comparison branch
- README → Gemini: specifies · README frames the Gemini comparison branch
- README → Grok: specifies · README frames the Grok comparison branch
- ChatGPT → Short: includes · Short prompt output bundle
- ChatGPT → Medium: includes · Medium prompt output bundle
- ChatGPT → Long: includes · Long prompt output bundle
- Short → First Reply: captures · Secondary snapshot for the short variant
- Deepseek → Short: includes · Short prompt output bundle
- Deepseek → Medium: includes · Medium prompt output bundle
- Deepseek → Long: includes · Long prompt output bundle
- Short → First Reply: captures · Secondary snapshot for the short variant
- Medium → First Reply: captures · Secondary snapshot for the medium variant
- Gemini → Short: includes · Short prompt output bundle
- Gemini → Medium: includes · Medium prompt output bundle
- Gemini → Long: includes · Long prompt output bundle
- Grok → Short: includes · Short prompt output bundle
- Grok → Medium: includes · Medium prompt output bundle
- Grok → Long: includes · Long prompt output bundle
- Short → First Reply: captures · Secondary snapshot for the short variant
