# seokwoooo/lucian-uxui-prompt architecture

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

- Interactive diagram: https://gitdiagram.com/seokwoooo/lucian-uxui-prompt
- Repository: https://github.com/seokwoooo/lucian-uxui-prompt

## Overview

Lucian UX/UI Prompt is a library and live gallery of 400 interactive UI elements. Users browse and preview an element, then copy its prompt or code, or download a standalone file; an AI coding agent can also read the static API data. The source elements are assembled into the gallery by the build tool, which also uses the shared localization function. The README documents generated API data, but its generator is not shown in the sampled source, so that connection is documented rather than inferred from code.

Main entry points: [`src/gallery/gallery.js`](https://github.com/seokwoooo/lucian-uxui-prompt/blob/main/src/gallery/gallery.js) (Gallery runtime), [`src/build.mjs`](https://github.com/seokwoooo/lucian-uxui-prompt/blob/main/src/build.mjs) (Gallery builder), [`src/elements`](https://github.com/seokwoooo/lucian-uxui-prompt/tree/main/src/elements) (400 UI elements), [`api/v1`](https://github.com/seokwoooo/lucian-uxui-prompt/tree/main/api/v1) (Static API data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Element library"]
  node_elements["400 UI elements"]
end

subgraph group_generation["Gallery generation"]
  node_builder["Gallery builder<br/>[build.mjs]"]
  node_localizer["English localizer<br/>[i18n-core.js]"]
end

subgraph group_gallery["Gallery experience"]
  node_galleryapp["Gallery runtime<br/>[gallery.js]"]
  node_preview["Interactive previews<br/>[gallery.js]"]
  node_discovery["Search and filters<br/>[gallery.js]"]
  node_take["Prompt and code actions<br/>[gallery.js]"]
  node_download["Standalone download<br/>[gallery.js]"]
end

subgraph group_distribution["Reuse and API"]
  node_galleryoutput["Generated gallery"]
  node_api["Static API data"]
end

node_visitor(("Gallery visitor"))
node_agent(("AI coding agent"))

node_visitor -->|"browses"| node_galleryapp
node_galleryapp -->|"mounts demos"| node_preview
node_galleryapp -->|"filters items"| node_discovery
node_visitor -->|"selects element"| node_take
node_take -->|"copies prompt or code"| node_visitor
node_visitor -->|"requests file"| node_download
node_download -->|"saves standalone HTML"| node_visitor
node_elements -->|"supplies source"| node_builder
node_builder -->|"uses localization"| node_localizer
node_builder -->|"generates"| node_galleryoutput
node_galleryoutput -->|"embeds runtime"| node_galleryapp
node_elements -.->|"generates data"| node_api
node_agent -->|"reads library"| node_api

click node_elements "https://github.com/seokwoooo/lucian-uxui-prompt/tree/main/src/elements"
click node_builder "https://github.com/seokwoooo/lucian-uxui-prompt/blob/main/src/build.mjs"
click node_localizer "https://github.com/seokwoooo/lucian-uxui-prompt/blob/main/src/gallery/i18n-core.js"
click node_galleryapp "https://github.com/seokwoooo/lucian-uxui-prompt/blob/main/src/gallery/gallery.js"
click node_preview "https://github.com/seokwoooo/lucian-uxui-prompt/blob/main/src/gallery/gallery.js"
click node_discovery "https://github.com/seokwoooo/lucian-uxui-prompt/blob/main/src/gallery/gallery.js"
click node_take "https://github.com/seokwoooo/lucian-uxui-prompt/blob/main/src/gallery/gallery.js"
click node_download "https://github.com/seokwoooo/lucian-uxui-prompt/blob/main/src/gallery/gallery.js"
click node_api "https://github.com/seokwoooo/lucian-uxui-prompt/tree/main/api/v1"

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_elements toneBlue
class node_builder,node_localizer toneAmber
class node_galleryapp,node_preview,node_discovery,node_take,node_download toneMint
class node_galleryoutput,node_api toneRose
class node_visitor,node_agent toneIndigo
```

## Components

### Element library

- [400 UI elements](https://github.com/seokwoooo/lucian-uxui-prompt/tree/main/src/elements): `src/elements`

### Gallery generation

- [Gallery builder](https://github.com/seokwoooo/lucian-uxui-prompt/blob/main/src/build.mjs): `src/build.mjs`
- [English localizer](https://github.com/seokwoooo/lucian-uxui-prompt/blob/main/src/gallery/i18n-core.js): `src/gallery/i18n-core.js`

### Gallery experience

- [Gallery runtime](https://github.com/seokwoooo/lucian-uxui-prompt/blob/main/src/gallery/gallery.js): `src/gallery/gallery.js`
- [Interactive previews](https://github.com/seokwoooo/lucian-uxui-prompt/blob/main/src/gallery/gallery.js): `src/gallery/gallery.js`
- [Search and filters](https://github.com/seokwoooo/lucian-uxui-prompt/blob/main/src/gallery/gallery.js): `src/gallery/gallery.js`
- [Prompt and code actions](https://github.com/seokwoooo/lucian-uxui-prompt/blob/main/src/gallery/gallery.js): `src/gallery/gallery.js`
- [Standalone download](https://github.com/seokwoooo/lucian-uxui-prompt/blob/main/src/gallery/gallery.js): `src/gallery/gallery.js`

### Reuse and API

- **Generated gallery**
- [Static API data](https://github.com/seokwoooo/lucian-uxui-prompt/tree/main/api/v1): `api/v1`

### Other components

- **Gallery visitor**
- **AI coding agent**

## Connections

- Gallery visitor → Gallery runtime: browses (evidence: `README.md`)
- Gallery runtime → Interactive previews: mounts demos (evidence: `src/gallery/gallery.js`)
- Gallery runtime → Search and filters: filters items (evidence: `src/gallery/gallery.js`)
- Gallery visitor → Prompt and code actions: selects element (evidence: `README.md`)
- Prompt and code actions → Gallery visitor: copies prompt or code (evidence: `README.md`)
- Gallery visitor → Standalone download: requests file (evidence: `README.md`)
- Standalone download → Gallery visitor: saves standalone HTML (evidence: `README.md`)
- 400 UI elements → Gallery builder: supplies source (evidence: `src/build.mjs`)
- Gallery builder → English localizer: uses localization (evidence: `src/build.mjs`)
- Gallery builder → Generated gallery: generates (evidence: `src/build.mjs`)
- Generated gallery → Gallery runtime: embeds runtime
- 400 UI elements → Static API data: generates data (evidence: `README.md`)
- AI coding agent → Static API data: reads library (evidence: `README.md`)
