Skip to main content

Getting Started

A2A Editor provides React components for editing and testing A2A (Agent-to-Agent) Protocol Agent Cards.

Installation

npm install @open-resource-discovery/a2a-editor

Quick Start

Loading demo...

The complete playground with Monaco editor and chat. Try the mock agents to test the interface:

import { AgentPlayground } from "@open-resource-discovery/a2a-editor";
import "@open-resource-discovery/a2a-editor/styles";

function App() {
return (
<div style={{ height: "100vh" }}>
<AgentPlayground
showSettings={true}
showChat={true}
onAgentCardChange={(json, parsed) => console.log(parsed?.name)}
/>
</div>
);
}

Available Components

Import PathComponentDescription
@open-resource-discovery/a2a-editorAgentPlaygroundFull editor with Monaco + Chat
@open-resource-discovery/a2a-editor/liteAgentPlaygroundLiteEditor without Chat (smaller bundle)
@open-resource-discovery/a2a-editor/editorAgentEditorMonaco editor only
@open-resource-discovery/a2a-editor/card-viewAgentCardViewCard overview only (no editor)
@open-resource-discovery/a2a-editor/viewerAgentViewerLightweight viewer (no Monaco, ~80KB)

Peer Dependencies

  • react ^18.0.0 || ^19.0.0
  • react-dom ^18.0.0 || ^19.0.0

Features

  • Monaco Editor - Full-featured JSON editor with syntax highlighting
  • Agent Card Overview - Visual display of capabilities, skills, and security info
  • Chat Integration - Test your agents with built-in streaming chat
  • Raw HTTP Inspector - Inspect request and response payloads for chat interactions
  • Tree-Shakeable - Import only what you need for optimal bundle size
  • TypeScript Support - Complete type definitions included

Docker

You can also run the editor as a standalone web application using Docker:

docker run -p 8080:80 ghcr.io/open-resource-discovery/a2a-editor:latest

Or build from source:

docker build -t a2a-editor .
docker run -p 8080:80 a2a-editor

The editor is then available at http://localhost:8080.