The Open Standard for Generative UI
import { BASE_URL, source } from "@/lib/source";
import { integrations } from "../(home)/integrations/data";
export const dynamic = "force-static";
export const revalidate = false;
const SITE_DESCRIPTION =
"Full-stack, framework-agnostic Generative UI built on OpenUI Lang, a streaming-first language with first-party runtimes for React, Vue, Svelte, and Angular, and up to 67% fewer tokens than JSON.";
export async function GET() {
const pages = source.getPages().map((page) => {
const canonicalUrl = new URL(page.url, BASE_URL);
const markdownUrl = new URL(`${page.url}.mdx`, BASE_URL);
const description = page.data.description || `OpenUI documentation for ${page.data.title}.`;
return `- [${page.data.title}](${markdownUrl}): ${description} Canonical source: ${canonicalUrl}`;
});
const integrationPages = integrations.map(
(integration) =>
`- [OpenUI + ${integration.name}](${new URL(`/integrations/${integration.slug}`, BASE_URL)}): ${integration.summary}`,
);
const index = [
"# OpenUI",
"",
`> ${SITE_DESCRIPTION}`,
"",
"## Project",
"",
`- [OpenUI website](${new URL("/", BASE_URL)}): Canonical OpenUI website.`,
"- [OpenUI source repository](https://github.com/thesysdev/openui): Source code and releases.",
"",
"## Documentation",
"",
...pages,
"",
"## Integrations",
"",
`- [All integrations](${new URL("/integrations", BASE_URL)}): Use OpenUI with AI frameworks, design systems, and frontend platforms.`,
...integrationPages,
"",
"## Benchmarks",
"",
`- [Generative UI Benchmark](${new URL("/benchmarks", BASE_URL)}): Visual benchmark page with server-rendered summaries and semantic data tables.`,
`- [OpenUI language and model benchmark](${new URL("/benchmarks/language", BASE_URL)}): Focused, canonical comparison of structural validity and cost across 30 models generating OpenUI.`,
`- [Language/model benchmark agent document](${new URL("/benchmarks/language/agent.md", BASE_URL)}): Plain Markdown with all model-board results and interpretation notes.`,
`- [Language/model benchmark JSON](${new URL("/benchmarks/language/data.json", BASE_URL)}): Focused machine-readable model-board dataset.`,
`- [Generative UI framework benchmark](${new URL("/benchmarks/framework", BASE_URL)}): Focused, canonical comparison of OpenUI, Google A2UI, and Vercel json-render.`,
`- [Framework benchmark agent document](${new URL("/benchmarks/framework/agent.md", BASE_URL)}): Plain Markdown with format summaries and all model-format rows.`,
`- [Framework benchmark JSON](${new URL("/benchmarks/framework/data.json", BASE_URL)}): Focused machine-readable framework-comparison dataset.`,
`- [Benchmark agent document](${new URL("/benchmarks/agent.md", BASE_URL)}): Plain Markdown definitions, headline results, model board, provenance and distribution links.`,
`- [Benchmark JSON dataset](${new URL("/benchmarks/data.json", BASE_URL)}): Versioned machine-readable benchmark dataset.`,
`- [Benchmark JSON Schema](${new URL("/benchmarks/data.schema.json", BASE_URL)}): Field definitions and validation contract for the benchmark JSON dataset.`,
`- [OpenUI model-board CSV](${new URL("/benchmarks/data.csv", BASE_URL)}): One row per model with provider, family, score, pricing type and frontier membership.`,
`- [Benchmark methodology](${new URL("/benchmarks/methodology", BASE_URL)}): How the benchmark is run and scored.`,
"",
"## Optional",
"",
`- [Complete OpenUI documentation](${new URL("/llms-full.txt", BASE_URL)}): Full documentation in one plain-text response; it may exceed an LLM context window.`,
"",
].join("\n");
return new Response(index, {
headers: {
"Content-Type": "text/plain; charset=utf-8",
},
});
}