Skip to content

The Open Standard for Generative UI

docs: add Lynx to the docs integrations page (#1441)

devin-ai-integration[bot]8d9c4c3b108a
diff --git a/docs/components/showcase/examples.tsx b/docs/components/showcase/examples.tsx
index 43f649d1f..d6e06417a 100644
--- a/docs/components/showcase/examples.tsx
+++ b/docs/components/showcase/examples.tsx
@@ -33,7 +33,9 @@ export function ExampleCategory({ id }: { id: ExampleCategoryId }) {
</div>
<p className={styles.cardDescription}>{example.description}</p>
<div className={styles.cardLinks}>
- <RunLocally title={example.title} name={example.name} env={example.env} />
+ {example.runnable ? (
+ <RunLocally title={example.title} name={example.name} env={example.env} />
+ ) : null}
<CardLink label="Source" href={example.sourceUrl} external />
{example.guideUrl ? (
<Link className={styles.cardLink} href={example.guideUrl}>
diff --git a/docs/lib/examples-catalog.ts b/docs/lib/examples-catalog.ts
index 4b5f7a8a6..fb72deadf 100644
--- a/docs/lib/examples-catalog.ts
+++ b/docs/lib/examples-catalog.ts
@@ -73,6 +73,8 @@ export type RepoExample = {
logoIsDark: boolean;
/** Environment setup used by the CLI while scaffolding. */
env?: { file: string; key?: string };
+ /** False for integrations without an example in this repo, so there is no `openui create` command. */
+ runnable: boolean;
};
export const REPO_EXAMPLES: RepoExample[] = catalog.examples.flatMap((example) => {
@@ -90,9 +92,27 @@ export const REPO_EXAMPLES: RepoExample[] = catalog.examples.flatMap((example) =
logo: EXAMPLE_LOGOS[example.path] ?? "/shiro-logo.svg",
logoIsDark: DARK_LOGOS.has(example.path),
env: example.env,
+ runnable: true,
};
});
+/** Integrations listed on the integrations page that have no example in this repo. */
+const EXTERNAL_INTEGRATIONS: RepoExample[] = [
+ {
+ name: "lynx",
+ title: "Lynx",
+ description:
+ "Streaming OpenUI Lang rendered as cross-platform ReactLynx interfaces with @lynx-js/genui.",
+ category: "app-frameworks",
+ sourceUrl: "https://github.com/lynx-family/lynx-stack/tree/main/packages/genui/openui",
+ logo: "/integration-logos/lynx.svg",
+ logoIsDark: true,
+ runnable: false,
+ },
+];
+
export function getExamplesInCategory(category: ExampleCategoryId): RepoExample[] {
- return REPO_EXAMPLES.filter((example) => example.category === category);
+ return [...REPO_EXAMPLES, ...EXTERNAL_INTEGRATIONS].filter(
+ (example) => example.category === category,
+ );
}