Skip to content

The Open Standard for Generative UI

chore(docs): remove standard library page (#996)

Visharad Kashyapcd656f055af9
diff --git a/docs/content/docs/openui-lang/standard-library.mdx b/docs/content/docs/openui-lang/standard-library.mdx
deleted file mode 100644
index 749141635..000000000
--- a/docs/content/docs/openui-lang/standard-library.mdx
+++ /dev/null
@@ -1,95 +0,0 @@
----
-title: Using the Standard Library
-description: Use the built-in OpenUI library from @openuidev/react-ui.
----
-
-OpenUI ships with a prebuilt `openuiLibrary` for common layouts, forms, content, and charts.
-
-## Install
-
-```bash tab="pnpm" tab-group="pkg"
-pnpm add @openuidev/react-lang @openuidev/react-ui
-```
-
-```bash tab="bun" tab-group="pkg"
-bun add @openuidev/react-lang @openuidev/react-ui
-```
-
-```bash tab="yarn" tab-group="pkg"
-yarn add @openuidev/react-lang @openuidev/react-ui
-```
-
-```bash tab="npm" tab-group="pkg"
-npm install @openuidev/react-lang @openuidev/react-ui
-```
-
-## Render with OpenUI library
-
-```tsx
-import "@openuidev/react-ui/components.css";
-import { Renderer } from "@openuidev/react-lang";
-import { openuiLibrary } from "@openuidev/react-ui";
-
-<Renderer library={openuiLibrary} response={streamedText} isStreaming={isStreaming} />;
-```
-
-## Generate a spec and build the prompt
-
-Use the CLI to generate the prompt and serialized library spec at build time. In your backend, use the spec with `generateSystemPrompt`:
-
-```bash tab="pnpm" tab-group="pkg"
-pnpx @openuidev/cli@latest generate ./src/library.ts --out src/generated/system-prompt.txt
-```
-
-```bash tab="bun" tab-group="pkg"
-bunx @openuidev/cli@latest generate ./src/library.ts --out src/generated/system-prompt.txt
-```
-
-```bash tab="yarn" tab-group="pkg"
-yarn dlx @openuidev/cli@latest generate ./src/library.ts --out src/generated/system-prompt.txt
-```
-
-```bash tab="npm" tab-group="pkg"
-npx @openuidev/cli@latest generate ./src/library.ts --out src/generated/system-prompt.txt
-```
-
-The command writes `src/generated/system-prompt.spec.json` beside the prompt file. Import that spec in your backend:
-
-```ts
-import { generateSystemPrompt, type LibrarySpec } from "@openuidev/lang-core";
-import librarySpec from "./generated/system-prompt.spec.json";
-
-const systemPrompt = generateSystemPrompt({
- library: librarySpec as LibrarySpec,
-});
-```
-
-## Extend it
-
-```ts
-import { createLibrary, defineComponent } from "@openuidev/react-lang";
-import { openuiLibrary } from "@openuidev/react-ui";
-import { z } from "zod";
-
-const ProductCard = defineComponent({
- name: "ProductCard",
- description: "Product tile",
- props: z.object({
- name: z.string(),
- price: z.number(),
- }),
- component: ({ props }) => <div>{props.name}: ${props.price}</div>,
-});
-
-const myLibrary = createLibrary({
- root: openuiLibrary.root ?? "Stack",
- componentGroups: openuiLibrary.componentGroups,
- components: [...Object.values(openuiLibrary.components), ProductCard],
-});
-```
-
-## Notes
-
-- Default root component is `Stack`.
-- `Form` requires explicit `buttons`.
-- The generated library spec is the backend prompt source of truth