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

@svantic/sdk

v1.6.2

Published

Svantic SDK — A2A agent framework. Turns any Node.js app into an A2A-compliant agent. Optional mesh integration via @svantic/sdk/mesh.

Readme

@svantic/sdk

TypeScript A2A agent SDK for building agents that run standalone or connect to Svantic Mesh for auth, routing, and telemetry.

Purpose

  • Define agents, tools, and transports that interoperate with the A2A ecosystem.
  • Optional mesh integration for production deployments without forking runtime code.

Prerequisites

  • Node.js (LTS) and npm.
  • For HTTP-hosted agents: a compatible Express peer (optional in package.json; install when you expose HTTP routes).

Install

npm install @svantic/sdk

In the monorepo, depend via workspace or file:../../packages/sdk from consuming packages.

Subpath exports

| Import path | Role | | --- | --- | | @svantic/sdk | Core SDK entry. | | @svantic/sdk/mesh | Mesh connector and mesh-side helpers. | | @svantic/sdk/telemetry | Telemetry exporters and buffers. | | @svantic/sdk/tools | Tooling APIs and registration helpers. | | @svantic/sdk/a2a | A2A protocol–oriented types and utilities. |

Additional build-time subpaths (for example @svantic/sdk/tools/builtin) may exist—see package.json "exports".

Build

From packages/sdk:

npm install
npm run build

Tests

npx vitest run

Vitest is a dev dependency; wire a "test": "vitest run" script locally if you prefer npm test.

Telemetry

@svantic/sdk emits OpenTelemetry spans directly via @opentelemetry/api. Every capability invocation, LLM call (in smart-agent mode), and tool call becomes a span tagged with the OpenTelemetry GenAI semantic conventionsgen_ai.operation.name, gen_ai.tool.name, gen_ai.request.model, gen_ai.usage.input_tokens, etc.

  • Spans flow through whatever global TracerProvider is registered in the host process. When the agent runs on the Svantic mesh, the mesh runtime wires exporting to the dashboard for you; otherwise, spans become no-ops unless you register a provider yourself.
  • Trace IDs are 32-character hex (W3C trace-id); span IDs are 16-character hex (W3C parent-id).
  • Context propagation uses traceparent + baggage headers on outbound A2A and mesh calls.

To add custom spans, import trace from @opentelemetry/api directly. To export to your own OpenTelemetry backend (Datadog, Honeycomb, OTLP, …), register a TracerProvider at process startup before constructing any Agent. See the telemetry guide for worked examples.

Key environment variables

Runtime variables depend on which subsystems you use (mesh URL, JWT secrets, provider keys). Configure them in the host application or deployment manifest rather than in the SDK package itself.