a2ui-project /a2ui

Open-source generative UI framework: agents stream layout data, and apps render it with native components in React, Angular, Lit, Flutter, SwiftUI and Jetpack Compose.

★ 17,427⑂ 1,412👁 94⑃ 2,678● 1,307▤ 19
TypeScriptApache-2.0Created 2025-09-24a2ui.org/
下载:A2UI CLI v0.3.0cli-v0.3.0 ↓0.3.02026-11-11
+35
日增长
17,427
stars
1,412
forks
94
watchers
2,678
prs
1,307
issues
19
releases

README

A2UI

Build delightful, fast, reliable agentic experiences

A2UI (Agent-to-User Interface) is an open-source generative UI framework,
complete with a protocol optimized for streaming dynamic user interfaces at
low latency, native renderers for web and mobile frameworks, and agent SDKs
in several popular languages. With A2UI, your agents can communicate with
your users using natively rendered widgets, in addition to text.



_Examples of UI compositions that A2UI can express._

 Quick links

- Main website.
- Try it in your browser using A2UI Composer.
- Supported renderers.
- Supported agents.
- Protocol specification.

 Introduction

Large language models (LLMs) and decision models (e.g.
Jev) excel at creating text and code and at making
fast decisions on top of raw structured data (e.g. JSON). A2UI gives these
models a specialized vocabulary for expressing user interfaces.

A2UI expresses UI using _data_, not code. A schema for the data exchanged
between the agent and the renderer enforces strict capability boundaries for
the agent, keeping agent-generated experiences safe and aligned with the
business requirements of your application. A _core library_, a _native
framework adapter_, and a _catalog of components_ provide access to native
components and form the building blocks that the agent _composes_ into a final
user experience, making the result expressive and high-performance.

 When to use A2UI

Use A2UI when any of the following apply to your application:

- Parts of your application are agent- and/or server-driven. By design, A2UI
  supports remote rendering.
- You want the UI to be composed dynamically, tailored to the user's immediate
  need. Instead of making your users navigate through multiple screens to solve
  their problems, have the agent build the right flow of UI that guides users
  directly to solutions.
- You need the highest performance and visual fidelity. A2UI renders UI using
  the framework of your choice, typically one that the host app itself is
  written in. WebViews or HTML are not required.
- The same agent streams UI to multiple platforms or frameworks, such as
  Flutter, React, SwiftUI, and Jetpack Compose. A2UI helps keep the user
  experience compatible and consistent across all screens.
- The agent is remote, third-party, or operates across a trust boundary. For
  example, the agent must not be able to handle certain kinds of data (credit
  card/account numbers, PII, financial data). A2UI helps enforce the trust
  boundary and protect your app's critical functionality from hallucinations
  using a strict schema, and by expressing UI using validated data rather than
  executable code.

 A2UI core philosophy

We develop A2UI under the guidance of the following core principles:

- Security first: The app developer controls what the agent can and cannot
  do in the app. A2UI provides a framework for specifying and enforcing the
  necessary guardrails, such as expressing UI as data, validating inputs and
  outputs 

Top issues

Discussions

Latest release

A2UI CLI v0.3.0 cli-v0.3.0 2026-11-11
- Breaking: Requires a2ui_core ^0.7.0 (a2ui_cli exposes a2ui_core
  types in its public API).

- Added a2ui lint (LintCommand, lintCatalog, CatalogLintFinding, and LintSeverity) to validate catalog JSON schemas against deterministic protocol rules with JSON Pointer locations, including v1.0 Unicode UAX 31 identifiers, component and function discriminators, the reserved Surface component name, v1.0 requiresUserActivation caller constraints, and redundant ComponentCommon or FunctionCommon wrapping (3831).

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON