# uparlayan/fluenthtml architecture

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

- Interactive diagram: https://gitdiagram.com/uparlayan/fluenthtml
- Repository: https://github.com/uparlayan/fluenthtml

## Overview

FluentHTML is a Delphi library for generating HTML5 through a fluent, type-safe API; it does not parse HTML. The main workflow is a Delphi application constructing markup and receiving generated HTML. Separate documented capabilities convert TDataSet data to HTML tables, provide an IDE component, and extend TEdgeBrowser with local-file navigation and browser utilities. Relationships below are based on README statements only; source excerpts were unavailable, so internal call structure and the component’s connection to the generator are not asserted.

Main entry points: [`src/FluentHTML.pas`](https://github.com/uparlayan/fluenthtml/blob/master/src/FluentHTML.pas) (Fluent HTML builder), [`src/FluentHTML.DataSet.pas`](https://github.com/uparlayan/fluenthtml/blob/master/src/FluentHTML.DataSet.pas) (DataSet converter), [`src/FluentHTML.Edge.pas`](https://github.com/uparlayan/fluenthtml/blob/master/src/FluentHTML.Edge.pas) (Edge browser helper), [`src/FluentHTML.Component.pas`](https://github.com/uparlayan/fluenthtml/blob/master/src/FluentHTML.Component.pas) (IDE component)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_generation["HTML generation"]
  node_builder["Fluent HTML builder<br/>[FluentHTML.pas]"]
  node_markup["Generated HTML5"]
end

subgraph group_integrations["Data and IDE integrations"]
  node_dataset["DataSet converter"]
  node_component["IDE component"]
end

subgraph group_browser["Browser integration"]
  node_edgehelper["Edge browser helper"]
end

node_developer(("Delphi application"))
node_data[("TDataSet")]
node_edgebrowser["TEdgeBrowser"]

node_developer -->|"uses fluent API"| node_builder
node_builder -->|"generates HTML"| node_markup
node_data -->|"provides records"| node_dataset
node_dataset -->|"converts to table"| node_markup
node_developer -->|"uses IDE component"| node_component
node_developer -->|"uses browser helpers"| node_edgehelper
node_edgehelper -->|"extends browser"| node_edgebrowser

click node_builder "https://github.com/uparlayan/fluenthtml/blob/master/src/FluentHTML.pas"
click node_dataset "https://github.com/uparlayan/fluenthtml/blob/master/src/FluentHTML.DataSet.pas"
click node_component "https://github.com/uparlayan/fluenthtml/blob/master/src/FluentHTML.Component.pas"
click node_edgehelper "https://github.com/uparlayan/fluenthtml/blob/master/src/FluentHTML.Edge.pas"

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_builder,node_markup,node_edgebrowser toneBlue
class node_dataset,node_component,node_data toneAmber
class node_edgehelper toneMint
class node_developer toneIndigo
```

## Components

### HTML generation

- [Fluent HTML builder](https://github.com/uparlayan/fluenthtml/blob/master/src/FluentHTML.pas): `src/FluentHTML.pas`
- **Generated HTML5**

### Data and IDE integrations

- [DataSet converter](https://github.com/uparlayan/fluenthtml/blob/master/src/FluentHTML.DataSet.pas): `src/FluentHTML.DataSet.pas`
- [IDE component](https://github.com/uparlayan/fluenthtml/blob/master/src/FluentHTML.Component.pas): `src/FluentHTML.Component.pas`

### Browser integration

- [Edge browser helper](https://github.com/uparlayan/fluenthtml/blob/master/src/FluentHTML.Edge.pas): `src/FluentHTML.Edge.pas`

### Other components

- **Delphi application**
- **TDataSet**
- **TEdgeBrowser**

## Connections

- Delphi application → Fluent HTML builder: uses fluent API (evidence: `README.md`)
- Fluent HTML builder → Generated HTML5: generates HTML (evidence: `README.md`)
- TDataSet → DataSet converter: provides records (evidence: `README.md`)
- DataSet converter → Generated HTML5: converts to table (evidence: `README.md`)
- Delphi application → IDE component: uses IDE component (evidence: `README.md`)
- Delphi application → Edge browser helper: uses browser helpers (evidence: `README.md`)
- Edge browser helper → TEdgeBrowser: extends browser (evidence: `README.md`)
