Loading...
Loading...
Build agent-generated / AI-generated UI with A2UI (Agent-to-User Interface), the open protocol where an agent streams layout data and the app renders it with its own native components (React, Angular, Lit, Flutter, SwiftUI, Jetpack Compose). Use when developers want an AI, LLM or agent to generate or update UI at runtime ("generative UI", "GenUI", "agent-generated UI", "AI renders widgets/forms/cards", "server-driven UI from an LLM"), especially on Flutter, Angular, native mobile, more than one platform, or when a remote or third-party agent must not send executable code. Triggers on: "A2UI", "generative UI", "GenUI", "Flutter GenUI", "genui", "agent UI", "AI-generated UI", "dynamic UI from LLM".
npx skill4agent add a2ui-project/a2ui a2uia2ui_fluttera2ui_corea2ui_agentgenuinode_modules/@a2ui/react/README.mdMessageProcessor@a2ui/react@a2ui/lit@a2ui/angular@a2ui/web_core@a2ui/web_core/v0_9/basic_catalog@a2ui/web_core/catalogs/basic/v1BasicCatalog@a2ui/angular/v0_9@a2ui/angular@a2ui/web_corebasicCatalog@a2ui/lit/v0_9v0_8| Platform | Install |
|---|---|
| React | |
| Angular | |
| Lit / Web Components | |
| Flutter | |
| SwiftUI (alpha) | see swift/swiftui |
| Jetpack Compose (alpha) | https://developer.android.com/develop/ui/compose/agentic |
| Agent, Python | |
| Agent, TypeScript | |
flutter_genuigenui_a2uiimport {MessageProcessor} from '@a2ui/web_core';
import {basicCatalog} from '@a2ui/web_core/v0_9/basic_catalog';
import {A2uiSurface} from '@a2ui/react';
const processor = new MessageProcessor([basicCatalog]);
// Feed agent messages as they arrive (SSE, WebSocket, A2A, AG-UI...):
// processor.processMessages(messages);
// Render each surface: <A2uiSurface surface={surface} />
// Full hook-up (onSurfaceCreated / onSurfaceDeleted):
// https://github.com/a2ui-project/a2ui/blob/main/typescript/renderers/react/README.md