Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions docs/content/docs/openui-lang/benchmarks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ OpenUI Lang is designed to be token-efficient and streaming-first. This page pre

All four formats encode exactly the same UI. Here is the same simple table in each:

**OpenUI Lang** (148 tokens)
**OpenUI Lang** (154 tokens)

```text
root = Stack([title, tbl])
title = TextContent("Employees (Sample)", "large-heavy")
tbl = Table(cols, rows)
cols = [Col("Name", "string"), Col("Department", "string"), Col("Salary", "number"), Col("YoY change (%)", "number")]
rows = [["Ava Patel", "Engineering", 132000, 6.5], ["Marcus Lee", "Sales", 98000, 4.2], ["Sofia Ramirez", "Marketing", 105000, 3.1], ["Ethan Brooks", "Finance", 118500, 5.0], ["Nina Chen", "HR", 89000, 2.4]]
tbl = Table([Col("Name", names), Col("Department", departments), Col("Salary", salaries, "number"), Col("YoY change (%)", changes, "number")])
names = ["Ava Patel", "Marcus Lee", "Sofia Ramirez", "Ethan Brooks", "Nina Chen"]
departments = ["Engineering", "Sales", "Marketing", "Finance", "HR"]
salaries = [132000, 98000, 105000, 118500, 89000]
changes = [6.5, 4.2, 3.1, 5.0, 2.4]
```

**YAML** (316 tokens)
Expand Down
3 changes: 2 additions & 1 deletion docs/content/docs/openui-lang/syntax.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ cancelBtn = Button("Cancel", "action:cancel", "secondary")
| `Buttons` | `Buttons(buttons, direction?)` |
| `Tabs` | `Tabs(items)` |
| `TabItem` | `TabItem(value, trigger, content)` |
| `Table` | `Table(columns, rows)` |
| `Table` | `Table(columns)` |
| `Col` | `Col(label, data, type?)` |
| `BarChart` | `BarChart(labels, series, variant?, xLabel?, yLabel?)` |

For full generated signatures, inspect:
Expand Down
Loading