# boopathivellaichamy0-png/loe-record-generator architecture

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

- Interactive diagram: https://gitdiagram.com/boopathivellaichamy0-png/loe-record-generator
- Repository: https://github.com/boopathivellaichamy0-png/loe-record-generator

## Overview

LOE Student Record Studio is a browser-based editor for multi-experiment lab records and PDF generation. The user edits student and experiment details, adjusts document styling, previews the laid-out record, then exports it as a PDF. App.jsx owns the shared form state and connects these views and export behavior. The README describes only the React/Vite template, so product capabilities are inferred from the sampled application source; unsampled modules and detailed wiring are not assumed.

Main entry points: [`src/App.jsx`](https://github.com/boopathivellaichamy0-png/loe-record-generator/blob/main/src/App.jsx) (Workspace state), [`src/utils/sampleData.js`](https://github.com/boopathivellaichamy0-png/loe-record-generator/blob/main/src/utils/sampleData.js) (Sample experiments), [`src/components/Header.jsx`](https://github.com/boopathivellaichamy0-png/loe-record-generator/blob/main/src/components/Header.jsx) (Action header), [`src/components/FormEditor.jsx`](https://github.com/boopathivellaichamy0-png/loe-record-generator/blob/main/src/components/FormEditor.jsx) (Experiment editor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Workspace orchestration"]
  node_app["Workspace state<br/>[App.jsx]"]
  node_header["Action header<br/>[Header.jsx]"]
end

subgraph group_editing["Record editing"]
  node_form["Experiment editor<br/>[FormEditor.jsx]"]
  node_sidebar["Style controls<br/>[Sidebar.jsx]"]
end

subgraph group_document["Document preview"]
  node_pdfdoc["Record renderer<br/>[PdfDocument.jsx]"]
end

subgraph group_export["PDF export"]
  node_exporter["PDF exporter<br/>[pdfExporter.js]"]
end

subgraph group_samples["Sample content"]
  node_sampledata["Sample experiments<br/>[sampleData.js]"]
  node_charts["Sample chart images<br/>[sampleChartSvg.js]"]
end

node_user(("Record editor"))

node_user -->|"edits workspace"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_form
node_app -->|"renders"| node_sidebar
node_app -->|"renders"| node_pdfdoc
node_app -->|"calls on export"| node_exporter
node_sampledata -->|"generates chart data"| node_charts

click node_app "https://github.com/boopathivellaichamy0-png/loe-record-generator/blob/main/src/App.jsx"
click node_header "https://github.com/boopathivellaichamy0-png/loe-record-generator/blob/main/src/components/Header.jsx"
click node_form "https://github.com/boopathivellaichamy0-png/loe-record-generator/blob/main/src/components/FormEditor.jsx"
click node_sidebar "https://github.com/boopathivellaichamy0-png/loe-record-generator/blob/main/src/components/Sidebar.jsx"
click node_pdfdoc "https://github.com/boopathivellaichamy0-png/loe-record-generator/blob/main/src/components/PdfDocument.jsx"
click node_exporter "https://github.com/boopathivellaichamy0-png/loe-record-generator/blob/main/src/utils/pdfExporter.js"
click node_sampledata "https://github.com/boopathivellaichamy0-png/loe-record-generator/blob/main/src/utils/sampleData.js"
click node_charts "https://github.com/boopathivellaichamy0-png/loe-record-generator/blob/main/src/utils/sampleChartSvg.js"

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_app,node_header toneBlue
class node_form,node_sidebar toneAmber
class node_pdfdoc toneMint
class node_exporter toneRose
class node_sampledata,node_charts,node_user toneIndigo
```

## Components

### Workspace orchestration

- [Workspace state](https://github.com/boopathivellaichamy0-png/loe-record-generator/blob/main/src/App.jsx): `src/App.jsx`
- [Action header](https://github.com/boopathivellaichamy0-png/loe-record-generator/blob/main/src/components/Header.jsx): `src/components/Header.jsx`

### Record editing

- [Experiment editor](https://github.com/boopathivellaichamy0-png/loe-record-generator/blob/main/src/components/FormEditor.jsx): `src/components/FormEditor.jsx`
- [Style controls](https://github.com/boopathivellaichamy0-png/loe-record-generator/blob/main/src/components/Sidebar.jsx): `src/components/Sidebar.jsx`

### Document preview

- [Record renderer](https://github.com/boopathivellaichamy0-png/loe-record-generator/blob/main/src/components/PdfDocument.jsx): `src/components/PdfDocument.jsx`

### PDF export

- [PDF exporter](https://github.com/boopathivellaichamy0-png/loe-record-generator/blob/main/src/utils/pdfExporter.js): `src/utils/pdfExporter.js`

### Sample content

- [Sample experiments](https://github.com/boopathivellaichamy0-png/loe-record-generator/blob/main/src/utils/sampleData.js): `src/utils/sampleData.js`
- [Sample chart images](https://github.com/boopathivellaichamy0-png/loe-record-generator/blob/main/src/utils/sampleChartSvg.js): `src/utils/sampleChartSvg.js`

### Other components

- **Record editor**

## Connections

- Record editor → Workspace state: edits workspace (evidence: `src/App.jsx`)
- Workspace state → Action header: renders (evidence: `src/App.jsx`)
- Workspace state → Experiment editor: renders (evidence: `src/App.jsx`)
- Workspace state → Style controls: renders (evidence: `src/App.jsx`)
- Workspace state → Record renderer: renders (evidence: `src/App.jsx`)
- Workspace state → PDF exporter: calls on export (evidence: `src/App.jsx`)
- Sample experiments → Sample chart images: generates chart data (evidence: `src/utils/sampleData.js`)
