# chanilkang/graffiti_generator_prototype architecture

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

- Interactive diagram: https://gitdiagram.com/chanilkang/graffiti_generator_prototype
- Repository: https://github.com/chanilkang/graffiti_generator_prototype

## Overview

This Vue prototype lets a user choose a graffiti style, enter text, and generate a preview by assembling matching letter images. The generator, controls, and preview are implemented together in App.vue; no backend or persistent data store is shown. The router’s home view is a separate starter-template path: App.vue does not render a router view, so the excerpts do not show that route participating in the generator workflow.

Main entry points: [`src/App.vue`](https://github.com/chanilkang/graffiti_generator_prototype/blob/main/src/App.vue) (Letter image assembly), [`src/main.js`](https://github.com/chanilkang/graffiti_generator_prototype/blob/main/src/main.js) (Vue bootstrap), [`src/router/index.js`](https://github.com/chanilkang/graffiti_generator_prototype/blob/main/src/router/index.js) (Router setup), [`src/views/HomeView.vue`](https://github.com/chanilkang/graffiti_generator_prototype/blob/main/src/views/HomeView.vue) (Home view)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_generator["Graffiti generator"]
  node_controls["Text and style controls<br/>[App.vue]"]
  node_generator_logic["Letter image assembly<br/>[App.vue]"]
  node_style_images["Style letter images"]
  node_preview["Graffiti preview<br/>[App.vue]"]
  node_accessories["Preview accessories"]
end

subgraph group_startup["App startup"]
  node_bootstrap["Vue bootstrap<br/>[main.js]"]
  node_app_shell["App component<br/>[App.vue]"]
end

subgraph group_starter["Starter route"]
  node_router["Router setup<br/>[index.js]"]
  node_home["Home view<br/>[HomeView.vue]"]
  node_welcome["Welcome component<br/>[TheWelcome.vue]"]
end

node_user(("Graffiti writer"))

node_user -->|"enters text"| node_controls
node_user -->|"selects style"| node_controls
node_controls -->|"triggers generation"| node_generator_logic
node_generator_logic -->|"looks up letters"| node_style_images
node_generator_logic -->|"sets image list"| node_preview
node_preview -->|"displays decorations"| node_accessories
node_bootstrap -->|"mounts app"| node_app_shell
node_bootstrap -->|"installs router"| node_router
node_router -->|"routes to"| node_home
node_home -->|"renders"| node_welcome

click node_controls "https://github.com/chanilkang/graffiti_generator_prototype/blob/main/src/App.vue"
click node_generator_logic "https://github.com/chanilkang/graffiti_generator_prototype/blob/main/src/App.vue"
click node_style_images "https://github.com/chanilkang/graffiti_generator_prototype/tree/main/src/assets"
click node_preview "https://github.com/chanilkang/graffiti_generator_prototype/blob/main/src/App.vue"
click node_accessories "https://github.com/chanilkang/graffiti_generator_prototype/tree/main/src/assets/accesories"
click node_bootstrap "https://github.com/chanilkang/graffiti_generator_prototype/blob/main/src/main.js"
click node_app_shell "https://github.com/chanilkang/graffiti_generator_prototype/blob/main/src/App.vue"
click node_router "https://github.com/chanilkang/graffiti_generator_prototype/blob/main/src/router/index.js"
click node_home "https://github.com/chanilkang/graffiti_generator_prototype/blob/main/src/views/HomeView.vue"
click node_welcome "https://github.com/chanilkang/graffiti_generator_prototype/blob/main/src/components/TheWelcome.vue"

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_controls,node_generator_logic,node_style_images,node_preview,node_accessories toneBlue
class node_bootstrap,node_app_shell toneAmber
class node_router,node_home,node_welcome toneMint
class node_user toneIndigo
```

## Components

### Graffiti generator

- [Text and style controls](https://github.com/chanilkang/graffiti_generator_prototype/blob/main/src/App.vue): `src/App.vue`
- [Letter image assembly](https://github.com/chanilkang/graffiti_generator_prototype/blob/main/src/App.vue): `src/App.vue`
- [Style letter images](https://github.com/chanilkang/graffiti_generator_prototype/tree/main/src/assets): `src/assets`
- [Graffiti preview](https://github.com/chanilkang/graffiti_generator_prototype/blob/main/src/App.vue): `src/App.vue`
- [Preview accessories](https://github.com/chanilkang/graffiti_generator_prototype/tree/main/src/assets/accesories): `src/assets/accesories`

### App startup

- [Vue bootstrap](https://github.com/chanilkang/graffiti_generator_prototype/blob/main/src/main.js): `src/main.js`
- [App component](https://github.com/chanilkang/graffiti_generator_prototype/blob/main/src/App.vue): `src/App.vue`

### Starter route

- [Router setup](https://github.com/chanilkang/graffiti_generator_prototype/blob/main/src/router/index.js): `src/router/index.js`
- [Home view](https://github.com/chanilkang/graffiti_generator_prototype/blob/main/src/views/HomeView.vue): `src/views/HomeView.vue`
- [Welcome component](https://github.com/chanilkang/graffiti_generator_prototype/blob/main/src/components/TheWelcome.vue): `src/components/TheWelcome.vue`

### Other components

- **Graffiti writer**

## Connections

- Graffiti writer → Text and style controls: enters text (evidence: `src/App.vue`)
- Graffiti writer → Text and style controls: selects style (evidence: `src/App.vue`)
- Text and style controls → Letter image assembly: triggers generation (evidence: `src/App.vue`)
- Letter image assembly → Style letter images: looks up letters (evidence: `src/App.vue`)
- Letter image assembly → Graffiti preview: sets image list (evidence: `src/App.vue`)
- Graffiti preview → Preview accessories: displays decorations (evidence: `src/App.vue`)
- Vue bootstrap → App component: mounts app (evidence: `src/main.js`)
- Vue bootstrap → Router setup: installs router (evidence: `src/main.js`)
- Router setup → Home view: routes to (evidence: `src/router/index.js`)
- Home view → Welcome component: renders (evidence: `src/views/HomeView.vue`)
