npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@reactive-agents/a2a

v0.14.0

Published

> A2A (Agent2Agent) protocol for TypeScript — Agent Cards, JSON-RPC 2.0 server/client, and SSE streaming.

Readme

@reactive-agents/a2a

A2A (Agent2Agent) protocol for TypeScript — Agent Cards, JSON-RPC 2.0 server/client, and SSE streaming.

npm docs

An Effect-TS implementation of the Agent2Agent (A2A) protocol for agent-to-agent interoperability. Generate A2A-compliant Agent Cards, expose your agent as a JSON-RPC 2.0 server (with SSE streaming for long-running tasks), and discover or call remote agents as a client. Lets independent agents advertise capabilities and delegate work to one another over HTTP.

Install

bun add @reactive-agents/a2a
# or: npm install @reactive-agents/a2a

Usage

Generate an Agent Card and call a remote agent

import { Effect } from "effect";
import { generateAgentCard, A2AClient, createA2AClient } from "@reactive-agents/a2a";

// Describe your agent for discovery (served at /.well-known/agent.json)
const card = generateAgentCard({
  name: "research-agent",
  description: "Searches the web and summarizes findings",
  url: "https://agents.example.com/research",
});

// Talk to a remote A2A agent over JSON-RPC 2.0
const clientLayer = createA2AClient({ baseUrl: "https://agents.example.com/research" });

const program = Effect.gen(function* () {
  const client = yield* A2AClient;
  const { taskId } = yield* client.sendMessage({
    message: { role: "user", parts: [{ kind: "text", text: "Summarize A2A" }] },
  });
  return yield* client.getTask({ id: taskId });
});

await Effect.runPromise(Effect.provide(program, clientLayer));

Serve your agent over HTTP

import { createA2AServer, createA2AHttpServer } from "@reactive-agents/a2a";

const serverLayer = createA2AServer(card);          // task store + lifecycle
const httpLayer = createA2AHttpServer(3000);        // Bun.serve JSON-RPC + SSE

API

  • generateAgentCard(config) / toolsToSkills(tools) — build an A2A Agent Card; map tool definitions to AgentSkill[].
  • A2AServer / createA2AServer(card) — task store service (getTask, cancelTask, getAgentCard).
  • A2AHttpServer / createA2AHttpServer(port, executor?) — JSON-RPC 2.0 HTTP server with SSE streaming.
  • createTaskHandler(store, executor?) / TaskExecutor — wire task execution and persistence.
  • formatSSEEvent / createSSEStream / StreamEvent — Server-Sent Events helpers for streaming tasks.
  • A2AClient / createA2AClient(config) — remote client (sendMessage, getTask, cancelTask, getAgentCard).
  • discoverAgent(url) / discoverMultipleAgents(urls) — fetch Agent Cards for discovery.
  • matchCapabilities / findBestAgent — capability-based agent selection.
  • A2AService / A2AServiceLive — unified server + client Effect service.
  • createA2AServerLayer / createA2AClientLayer / A2AServerLive / A2AClientLive — composable runtime layers.
  • Protocol types: AgentCard, AgentSkill, A2AMessage, A2ATask, TaskState, Part, Artifact, plus error types (A2AError, TransportError, DiscoveryError, TaskNotFoundError).

Part of Reactive Agents

This package is part of Reactive Agents — the TypeScript AI agent framework built on Effect-TS. See the full documentation.