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

@dexwox-labs/a2a-core

v0.1.0

Published

Core types, validation and telemetry for Google's Agent-to-Agent (A2A) protocol - shared foundation for client and server implementations

Readme

@dexwox-labs/a2a-core

Shared types, utilities and protocols for implementing the Agent-to-Agent (A2A) communication protocol.

This package provides the foundation for the A2A protocol implementation, delivering essential types and utilities. Developed by Dexwox Innovations Pvt Ltd to offer a comprehensive TypeScript implementation of the protocol standard.

Features

  • Common type definitions
  • Protocol specifications (A2A, JSON-RPC)
  • Validation decorators
  • Utility functions
  • Error classes
  • Message and task utilities

Installation

npm install @dexwox-labs/a2a-core
# or
pnpm add @dexwox-labs/a2a-core
# or use the unified package
npm install @dexwox-labs/a2a-node

Core Components

Types

  • AgentCard: Agent metadata definition
  • Task: Task lifecycle structure
  • Message: Communication protocol
  • ErrorResponse: Standard error format

Protocols

  • Google A2A Protocol definitions and interfaces
  • JSON-RPC 2.0 types
  • WebSocket message formats

Decorators

  • @ValidateParams: Parameter validation
  • @ValidateResponse: Response validation
  • @Trace and @TraceClass: Telemetry and metrics collection

Utilities

  • Type converters
  • Schema validation
  • Message serialization
  • Task state management

Usage Examples

Using Core Types

import { AgentCard } from '@dexwox-labs/a2a-core';

const agent: AgentCard = {
  id: 'weather-agent',
  name: 'Weather Agent',
  capabilities: ['weather-forecast'],
  endpoint: 'http://weather-agent.example.com'
};

Validation Decorators

import { ValidateParams } from '@dexwox-labs/a2a-core';

class WeatherService {
  @ValidateParams(weatherSchema)
  async getForecast(location: string) {
    // implementation
  }
}

Protocol Utilities

import { parseMessage, serializeMessage } from '@dexwox-labs/a2a-core';

const message = parseMessage(rawMessage);
const wireFormat = serializeMessage(message);

Testing

Run tests with:

cd packages/core
pnpm test

Generate coverage report:

pnpm test -- --coverage

Contributing

See CONTRIBUTING.md for development guidelines.

Versioning

Follows Semantic Versioning. Breaking changes will result in major version bumps.