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
+35
Daily
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
#1316Replace CRUD operations with JSON patch16 comments · 2026-05-01#2013[BUG]: Renderers all handle missing components poorly, which makes streaming UX bad15 comments · 2026-07-16#963[v0.9] Fix memory leaks and standardize subscription lifecycle in web_core and react renderers12 comments · 2026-03-24#1282Implement Node Layer Architecture across Core and Renderers11 comments · 2026-04-27#725Define how A2UI renderers should handle errors where a data model path doesn't exist or is the wrong type10 comments · 2026-02-26#842[javascript] Optimize DataModel Notification Strategy9 comments · 2026-03-13#709New property on userAction to display user friendly query when action is triggered9 comments · 2026-02-24#235Define component garbage collection behavior and make it easy to implement9 comments · 2025-12-07
Discussions
#4207Kaltura catalog for A2UI 1.0: 12 components and a live demo0 comments · 2026-11-12#4076GenUI Touch – Experimental runtime customization for Flutter GenUI0 comments · 2026-11-09#3604DSH A2UI alpha.8: official-renderer integration and replay-safe snapshots0 comments · 2026-10-24#3361Express data updates: how do we change individual fields without replacing unrelated data?2 comments · 2026-10-20#3160Federated Agentic UI: a component catalog assembled at runtime from micro frontends0 comments · 2026-10-13#3125Quincena: a Flutter finance app where every answer is an interface1 comments · 2026-10-09#3069Virtual Terminal > A2UI Pipeline using 1.26M-param model0 comments · 2026-10-08#3068What value does A2UI add when latency requirements favor deterministic UI?2 comments · 2026-10-08
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).