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

@gemmapod/dartc

v0.5.0

Published

DARTC v0.2 — signed, topic-multiplexed envelope for portable AI agents. Carries A2A objects and AG-UI-shaped UI events over WebRTC and (future) WebSocket relays.

Readme

@gemmapod/dartc (real-time agent protocol)

The shared TypeScript package for DARTC v0.2: Distributed Agent Real-Time Communication.

DARTC is the signed, topic-multiplexed envelope GemmaPod speaks over WebRTC DataChannels. It is not a replacement for A2A; it is the real-time binding that carries GemmaPod chat topics and A2A-compatible topics such as a2a.discovery.

What it does

  • Defines the DartcEnvelope shape used by the shim and Host.

  • Canonicalizes envelopes by sorting object keys recursively before signing.

  • Produces the byte payload covered by Ed25519 signatures.

  • Exposes signer/verifier adapters so callers can use gemmapod-core without this package depending on WASM directly.

  • Provides helpers for dartc.ack, dartc.error, topic matching, and A2A Agent Card discovery payloads.

  • Defines gemmapod.ui.event, an AG-UI-shaped signed event stream (versioned dartc.ui.event/0.1) covering:

    • run lifecycle (RUN_STARTED / RUN_FINISHED / RUN_ERROR)
    • assistant text (TEXT_MESSAGE_START / _CONTENT / _END)
    • tool calls (TOOL_CALL_START / _ARGS / _END / _RESULT)
    • state (STATE_SNAPSHOT / STATE_DELTA — RFC 6902 JSON Patch)
    • chat history rehydration (MESSAGES_SNAPSHOT)
    • activity panels (ACTIVITY_SNAPSHOT / ACTIVITY_DELTA)
    • app-specific actions (CUSTOM) and a RAW escape hatch
  • Field names match AG-UI (threadId, runId, messageId, delta, snapshot, …). The discriminator differs: DARTC uses SCREAMING_SNAKE; the shim's mapDartcUiEventToAgUi(event) converts to PascalCase for CopilotKit hosts (fields unchanged).

Topics currently used

| topic | direction | purpose | |-------|-----------|---------| | dartc.hello | both ways | Session key and topic negotiation. | | dartc.ack | both ways | Control-message acknowledgement. | | dartc.error | both ways | Signed protocol/application error. | | a2a.discovery | both ways | A2A-shaped Agent Card exchange. | | gemmapod.chat.request | browser -> origin | Signed chat request. | | gemmapod.chat.delta | origin -> browser | Streamed model text/reasoning delta. | | gemmapod.chat.done | origin -> browser | End of chat stream. | | gemmapod.ui.event | both ways | Signed UI/runtime event stream. |

Run locally

pnpm --filter @gemmapod/dartc build
pnpm --filter @gemmapod/dartc test

Runtime ingestion (browser shim)

@gemmapod/shim consumes UI events identically across transports:

| DartcUiEvent.type | Runtime effect | | --- | --- | | STATE_SNAPSHOT | runtime.state.replace(snapshot) | | STATE_DELTA | runtime.state.apply(delta) | | MESSAGES_SNAPSHOT | runtime.chat.setHistory(messages) + chat.history event | | CUSTOM name="a2a.card" | populate runtime.a2a.card + a2a.card event | | any | re-emit as runtime.events ui.event |

Security boundary

This package defines the bytes to sign and verify. It does not hold keys and does not choose trust policy. The browser shim and Host generate ephemeral DARTC session keys, while the signed pod manifest remains the authority for pod identity, system prompt, model preference, transport config, and tool allow-list.

Logical continuity is carried as payload data, not as WebRTC identity. The browser may include a stable conversation_id in dartc.hello and gemmapod.chat.request; origin runtimes can use that id to attach a new peer connection to an existing conversation after refresh.