Fuaranfuaran

The source for generative UI

Declare a pipeline in the tree

A Transform is a source you give a chart or a grid in place of a bare table. It has three parts, and all three are data.

PartWhat it is
sourcethe table the pipeline starts from – embedded in the tree, or a named source the host resolves
pipelinean ordered list of steps, such as filter
paramsnames a step can read, each bound to a value such as a filter, a piece of state or another view's selection

The smallest example

The corpus fixture grid-transform is a data grid whose source is a two-row table with a filter step. Nothing in it is code: it decodes with any conformant host's decoder, and re-encodes to the same bytes.

Add a parameter and the step can read it. In grid-transform-param the filter compares the dept column to a parameter named dept, and the parameter is bound to a filter of the same name.

A step that reads a parameter the Transform never declared is not guessed at: see grid-transform-undeclared-param.

What a host does with it

Every conformant host evaluates the same pipeline to the same answer. The reference answers are the transform-laws vectors, and the TypeScript, Go and Python hosts are each held to them. Before it evaluates, a renderer checks the pipeline against its budget.

See it

The gallery's Pivot Sandbox builds a pipeline from steps you choose, in the browser. The steps are data, and nothing beyond the pipeline itself is executed.

Back to Data in the interface.