Skip to content

The Open Standard for Generative UI

docs: add 'What is OpenUI Lang?' FAQ with current benchmark (#1316)

devin-ai-integration[bot]c9cd27d912b7
diff --git a/docs/app/(home)/sections/FaqSection/FaqSection.tsx b/docs/app/(home)/sections/FaqSection/FaqSection.tsx
index 385c5e7c1..f63ac262e 100644
--- a/docs/app/(home)/sections/FaqSection/FaqSection.tsx
+++ b/docs/app/(home)/sections/FaqSection/FaqSection.tsx
@@ -1,3 +1,4 @@
+import { BRIEFS, tokens } from "@/lib/benchmark-data";
import type { ReactNode } from "react";
import styles from "./FaqSection.module.css";
@@ -7,6 +8,9 @@ export type MarketingFaq = {
answer: string[];
};
+const fewerOutputTokensThan = (format: "jsonRender" | "a2ui") =>
+ Math.round((1 - tokens.outputPerScreen.openui / tokens.outputPerScreen[format]) * 100);
+
const FAQS: MarketingFaq[] = [
{
question: "What should I use to build a Generative UI app?",
@@ -15,6 +19,14 @@ const FAQS: MarketingFaq[] = [
"For production, we recommend adding OpenUI Gateway for reliability and OpenUI Observability for monitoring and product analytics.",
],
},
+ {
+ question: "What is OpenUI Lang?",
+ answer: [
+ "OpenUI Lang is a compact, streaming-first language that LLMs write to build interfaces from your own components.",
+ "It is not JSON. Each line defines one component, such as root = Stack([header, chart]), so the interface renders while the response is still streaming.",
+ `Across the same ${BRIEFS} interfaces in our benchmark, OpenUI Lang averaged ${tokens.outputPerScreen.openui.toLocaleString("en-US")} output tokens per screen: ${fewerOutputTokensThan("jsonRender")}% fewer than json-render and ${fewerOutputTokensThan("a2ui")}% fewer than A2UI, both JSON formats.`,
+ ],
+ },
{
/* Asked because people keep reading the hero screenshot as the whole
product. Stated plainly and near the top: the misunderstanding is common