← Back to archive

Repo of the Day

a2ui-project/a2ui

Published: Nov 25, 2026

Open repository ↗

Contribute to a2ui-project/a2ui development by creating an account on GitHub.

Summary

A2UI is an open-source protocol and SDK ecosystem for letting agents describe interfaces as structured, streamed data instead of executable code. Its renderer packages map that data to native components in React, Angular, Lit, Flutter, SwiftUI, and Jetpack Compose, while catalog and schema controls determine which UI capabilities an agent may request.

What it is useful for

Use A2UI when an agent—not a fixed screen flow—needs to assemble a task-specific interface, or when one agent should serve multiple client stacks. The architecture separates inference, transport, and rendering: an Agent SDK validates model output and compiles it into wire messages; a core library parses those messages into a framework-neutral model; an adapter and widget catalog map them to host-native widgets.

This makes A2UI relevant to remote or server-driven experiences, cross-platform agents, and interfaces that cross trust boundaries. The same agent can stream compatible interfaces to frameworks such as Flutter, React, SwiftUI, and Jetpack Compose. For example, @a2ui/catalog-mcp calls MCP tools and renders A2UI messages returned in tool results, while the VegaChart catalog targets Vega and Vega-Lite chart specifications.

The README says UI is represented as data, validated against a schema, and arbitrary executable code is disallowed. The application still defines the available component catalog and its capability boundaries, giving developers control over what an agent can request.

How engineers can use it

Start with the path that matches the work: the Quickstart builds a full-stack backend and frontend, while A2UI Composer generates A2UI JSON from a visual editor without installation and lets you paste it into an agent prompt. A2UI Theater provides prebuilt streaming scenarios for Lit, React, and Angular.

For a TypeScript stack, the README lists @a2ui/agent, @a2ui/web_core, and a renderer such as @a2ui/react, @a2ui/angular, or @a2ui/lit. Python teams can use a2ui-agent-sdk, a2ui-core, and optional A2A or ADK adapters. Flutter teams have a2ui_core, a2ui_agent, and a2ui_flutter; Swift libraries are distributed through the root Package.swift via Swift Package Manager.

A practical integration starts by defining a catalog of allowed widgets, configuring the Agent SDK to negotiate that catalog and compile model output, then passing transport messages to the renderer. The documented eval/ suite provides schema checks, assertions, and an LLM judge for developing agents and catalogs.

The README does not include local install or run commands, so use its linked Quickstart and consult the repository README for current package-specific setup. Note that @a2ui/catalog-vegachart is not published yet, while shared A2UI/MCP host state, Dart skill generation, and logging feedback loops remain roadmap items. The protocol is still evolving, so check its documented version status before pinning a revision.