a2ui-vue

A2UI Vue3 Renderer (A2UI protocol v0.9, built on @a2ui/web_core)
4,784 99
Install
npm install a2ui-vue
Latest Version:0.9.5
Vue:3
License:MIT
Last Updated:Oct 4, 2026
Links: GitHub  ·  npm
Maintainer: shawnwangyeah

a2ui-vue

A2UI Protocol docs

A Vue 3 renderer for A2UI (Agent-to-UI) protocol.

a2ui-vue is a community Vue 3 renderer for the A2UI (Agent-to-UI) open protocol.
It enables AI agents to express UI intent as structured JSON and have it rendered as rich, interactive components inside any Vue 3 application — with no HTML/CSS knowledge required by the agent.

📖 Documentation · ⚡ Quick Start · 🌐 中文说明

项目截图项目截图

Usage

npm install a2ui-vue

main.ts

import { createApp } from 'vue'
import App from './App.vue'
import { provideA2UI, DEFAULT_CATALOG, defaultTheme } from 'a2ui-vue'
import 'a2ui-vue/dist/a2ui-vue.css'

const app = createApp(App)

provideA2UI({
  app,
  catalog: DEFAULT_CATALOG,
  theme: defaultTheme,
})

app.mount('#app')
<script setup lang="ts">
import { A2UISurface, useMessageProcessor} from 'a2ui-vue';
import 'a2ui-vue/dist/vue.css';


const processor = useMessageProcessor();

// Process messages from your agent
processor.processMessages(messages);

// Get surfaces to render
const surfaces = processor.getSurfaces();
</script>

<template>
  <A2UISurface
    v-for="[surfaceId, surface] in surfaces"
    :key="surfaceId"
    :surface-id="surfaceId"
    :surface="surface"
  />
</template>

Components

The library provides the following components:

  • A2UISurface - The main surface component
  • A2UIRenderer - Dynamic component renderer
  • Layout: A2UIRow, A2UIColumn, A2UICard, A2UIList
  • Content: A2UIText, A2UIImage, A2UIIcon, A2UIVideo, A2UIAudio
  • Input: A2UIButton, A2UITextField, A2UICheckbox, A2UISlider, A2UIMultipleChoice, A2UIDateTimeInput
  • Navigation: A2UITabs, A2UIModal
  • Utility: A2UIDivider

Development & Examples

To view interactive examples of all components:

# Install dependencies
pnpm  install

# Start development server with examples
pnpm run dev

Building

# Build the library
npm run build

Related Packages

@galvanized-pukeko/vue-ui

Vue 3 component library that lets an LLM agent render real UI — chat, forms, cha...

3,610 5

Version History

Version Released License
0.9.5 MIT
0.9.4 MIT
0.9.3 MIT
0.9.2 MIT
0.9.1 MIT
Pre-releases (4)
Version Released License
0.9.0-rc.2 MIT
0.9.0-rc.1 MIT
0.8.2-rc.2 MIT
0.8.2-rc.1 MIT