# rockkamal253-ns/qr-architect-ai architecture

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

- Interactive diagram: https://gitdiagram.com/rockkamal253-ns/qr-architect-ai
- Repository: https://github.com/rockkamal253-ns/qr-architect-ai

## Overview

QR Architect AI is a browser-based QR creation studio. Users choose a payload type, edit and validate its content, customize visual styling, inspect scanability and print appearance, then export or share the result. The app also supports theme suggestions, history, privacy-conscious persistence, content fingerprints, and avatar/logo processing. The graph follows the sampled app wiring; export and verification details are partly supported by the README, while source connections not shown are omitted.

Main entry points: [`qr-code-app/src/App.jsx`](https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/App.jsx) (Studio orchestrator), [`qr-code-app/src/ui-components.jsx`](https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/ui-components.jsx) (Shared UI controls), [`qr-code-app/src/sections/PreviewPanel.jsx`](https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/sections/PreviewPanel.jsx) (QR preview and export), [`qr-code-app/src/sections/AIEngine.jsx`](https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/sections/AIEngine.jsx) (Theme suggestions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_creation["QR creation"]
  node_entry["React entry<br/>[main.jsx]"]
  node_app["Studio orchestrator<br/>[App.jsx]"]
  node_editor["Payload editor<br/>[ContentEditor.jsx]"]
  node_tabs["Payload tabs<br/>[TabBar.jsx]"]
  node_theme["Theme suggestions<br/>[AIEngine.jsx]"]
  node_header["Studio header<br/>[HeaderBar.jsx]"]
  node_error["Error boundary<br/>[ErrorBoundary.jsx]"]
end

subgraph group_design["Design and preview"]
  node_designer["Visual designer<br/>[Designer.jsx]"]
  node_preview["QR preview and export<br/>[PreviewPanel.jsx]"]
  node_print["Print simulator<br/>[PrintSimulator.jsx]"]
end

subgraph group_state["State and utilities"]
  node_store[("Studio state<br/>[store.js]")]
  node_formats["Payload and security utilities<br/>[constants.js]"]
  node_hooks["QR and app hooks<br/>[hooks.jsx]"]
  node_ui["Shared UI controls<br/>[ui-components.jsx]"]
end

subgraph group_extras["Sharing and history"]
  node_history["History drawer<br/>[HistoryDrawer.jsx]"]
end

node_user(("QR studio user"))
node_actor(("Browser platform"))
node_decoder["QR decoder"]

node_user -->|"opens studio"| node_entry
node_entry -->|"wraps app"| node_error
node_entry -->|"renders"| node_app
node_app -->|"updates state"| node_store
node_app -->|"renders"| node_tabs
node_app -->|"renders"| node_editor
node_app -->|"renders"| node_preview
node_app -->|"renders"| node_header
node_app -->|"renders"| node_history
node_app -->|"renders"| node_theme
node_editor -->|"uses controls"| node_ui
node_editor -->|"reads state"| node_store
node_theme -->|"scores prompt"| node_formats
node_theme -->|"uses controls"| node_ui
node_theme -.->|"applies theme patch"| node_app
node_preview -->|"renders"| node_print
node_preview -.->|"uses QR hooks"| node_hooks
node_preview -.->|"checks scanability"| node_decoder
node_preview -->|"uses controls"| node_ui
node_app -->|"hashes and encodes"| node_formats
node_app -.->|"persists locally"| node_actor
node_store -.->|"stores state"| node_actor
node_history -->|"reads history"| node_store
node_history -->|"uses controls"| node_ui
node_header -->|"uses controls"| node_ui
node_designer -->|"uses controls"| node_ui
node_app -.->|"renders"| node_designer
node_app -->|"compresses logo"| node_formats
node_app -.->|"shares link"| node_user

click node_entry "https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/main.jsx"
click node_app "https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/App.jsx"
click node_editor "https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/sections/ContentEditor.jsx"
click node_tabs "https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/sections/TabBar.jsx"
click node_theme "https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/sections/AIEngine.jsx"
click node_store "https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/store.js"
click node_formats "https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/constants.js"
click node_hooks "https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/hooks.jsx"
click node_ui "https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/ui-components.jsx"
click node_designer "https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/sections/Designer.jsx"
click node_preview "https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/sections/PreviewPanel.jsx"
click node_print "https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/sections/PrintSimulator.jsx"
click node_header "https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/sections/HeaderBar.jsx"
click node_history "https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/sections/HistoryDrawer.jsx"
click node_error "https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/components/ErrorBoundary.jsx"

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_entry,node_app,node_editor,node_tabs,node_theme,node_header,node_error,node_user,node_actor toneBlue
class node_designer,node_preview,node_print toneAmber
class node_store,node_formats,node_hooks,node_ui toneMint
class node_history toneRose
class node_decoder toneIndigo
```

## Components

### QR creation

- [React entry](https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/main.jsx): `qr-code-app/src/main.jsx`
- [Studio orchestrator](https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/App.jsx): `qr-code-app/src/App.jsx`
- [Payload editor](https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/sections/ContentEditor.jsx): `qr-code-app/src/sections/ContentEditor.jsx`
- [Payload tabs](https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/sections/TabBar.jsx): `qr-code-app/src/sections/TabBar.jsx`
- [Theme suggestions](https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/sections/AIEngine.jsx): `qr-code-app/src/sections/AIEngine.jsx`
- [Studio header](https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/sections/HeaderBar.jsx): `qr-code-app/src/sections/HeaderBar.jsx`
- [Error boundary](https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/components/ErrorBoundary.jsx): `qr-code-app/src/components/ErrorBoundary.jsx`

### Design and preview

- [Visual designer](https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/sections/Designer.jsx): `qr-code-app/src/sections/Designer.jsx`
- [QR preview and export](https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/sections/PreviewPanel.jsx): `qr-code-app/src/sections/PreviewPanel.jsx`
- [Print simulator](https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/sections/PrintSimulator.jsx): `qr-code-app/src/sections/PrintSimulator.jsx`

### State and utilities

- [Studio state](https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/store.js): `qr-code-app/src/store.js`
- [Payload and security utilities](https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/constants.js): `qr-code-app/src/constants.js`
- [QR and app hooks](https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/hooks.jsx): `qr-code-app/src/hooks.jsx`
- [Shared UI controls](https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/ui-components.jsx): `qr-code-app/src/ui-components.jsx`

### Sharing and history

- [History drawer](https://github.com/rockkamal253-ns/qr-architect-ai/blob/main/qr-code-app/src/sections/HistoryDrawer.jsx): `qr-code-app/src/sections/HistoryDrawer.jsx`

### Other components

- **QR studio user**
- **Browser platform**
- **QR decoder**

## Connections

- QR studio user → React entry: opens studio (evidence: `qr-code-app/src/main.jsx`)
- React entry → Error boundary: wraps app (evidence: `qr-code-app/src/main.jsx`)
- React entry → Studio orchestrator: renders (evidence: `qr-code-app/src/main.jsx`)
- Studio orchestrator → Studio state: updates state (evidence: `qr-code-app/src/App.jsx`)
- Studio orchestrator → Payload tabs: renders (evidence: `qr-code-app/src/App.jsx`)
- Studio orchestrator → Payload editor: renders (evidence: `qr-code-app/src/App.jsx`)
- Studio orchestrator → QR preview and export: renders (evidence: `qr-code-app/src/App.jsx`)
- Studio orchestrator → Studio header: renders (evidence: `qr-code-app/src/App.jsx`)
- Studio orchestrator → History drawer: renders (evidence: `qr-code-app/src/App.jsx`)
- Studio orchestrator → Theme suggestions: renders (evidence: `qr-code-app/src/App.jsx`)
- Payload editor → Shared UI controls: uses controls (evidence: `qr-code-app/src/sections/ContentEditor.jsx`)
- Payload editor → Studio state: reads state (evidence: `qr-code-app/src/sections/ContentEditor.jsx`)
- Theme suggestions → Payload and security utilities: scores prompt (evidence: `qr-code-app/src/sections/AIEngine.jsx`)
- Theme suggestions → Shared UI controls: uses controls (evidence: `qr-code-app/src/sections/AIEngine.jsx`)
- Theme suggestions → Studio orchestrator: applies theme patch (evidence: `qr-code-app/src/App.jsx`)
- QR preview and export → Print simulator: renders (evidence: `qr-code-app/src/sections/PreviewPanel.jsx`)
- QR preview and export → QR and app hooks: uses QR hooks (evidence: `qr-code-app/src/sections/PreviewPanel.jsx`)
- QR preview and export → QR decoder: checks scanability (evidence: `README.md`)
- QR preview and export → Shared UI controls: uses controls (evidence: `qr-code-app/src/sections/PreviewPanel.jsx`)
- Studio orchestrator → Payload and security utilities: hashes and encodes (evidence: `qr-code-app/src/App.jsx`)
- Studio orchestrator → Browser platform: persists locally (evidence: `README.md`)
- Studio state → Browser platform: stores state (evidence: `README.md`)
- History drawer → Studio state: reads history (evidence: `qr-code-app/src/sections/HistoryDrawer.jsx`)
- History drawer → Shared UI controls: uses controls (evidence: `qr-code-app/src/sections/HistoryDrawer.jsx`)
- Studio header → Shared UI controls: uses controls (evidence: `qr-code-app/src/sections/HeaderBar.jsx`)
- Visual designer → Shared UI controls: uses controls (evidence: `qr-code-app/src/sections/Designer.jsx`)
- Studio orchestrator → Visual designer: renders (evidence: `qr-code-app/src/App.jsx`)
- Studio orchestrator → Payload and security utilities: compresses logo (evidence: `qr-code-app/src/App.jsx`)
- Studio orchestrator → QR studio user: shares link (evidence: `README.md`)
