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

@kybernesis/arp-transport

v0.3.2

Published

ARP transport — DIDComm v2 signed messaging + SQLite mailbox. The only package permitted to depend on DIDComm wire-format libraries.

Readme

@kybernesis/arp-transport

DIDComm v2 signed messaging + SQLite-backed inbound mailbox.

The transport isolation rule

This is the only ARP package permitted to depend on a DIDComm wire-format library. The runtime, PDP, registry, audit, resolver, and TLS packages must all talk to the Transport interface exported here — never directly to @veramo/did-comm or any successor. That constraint keeps alt-transports (A2A, cloud mailbox, future DIDComm implementations) a drop-in swap rather than a cross-package rewrite.

v0 envelope format

v0 ships the signed flavour of DIDComm v2 (JWM + JWS EdDSA). Each envelope is a compact JWS:

<base64url(header)> . <base64url(payload)> . <base64url(signature)>
// header
{ "alg": "EdDSA", "typ": "application/didcomm-signed+json", "kid": "did:web:samantha.agent#key-1" }

// payload (DIDComm v2 plaintext JWM)
{
  "id": "msg-1234",
  "type": "https://didcomm.org/arp/1.0/request",
  "from": "did:web:samantha.agent",
  "to": ["did:web:ghost.agent"],
  "created_time": 1752000000,
  "body": { "action": "read", "resource": "alpha/q2" }
}

The JWE encryption layer lands alongside the cloud transport in Phase 7. Until then, agent-to-agent confidentiality relies on the DID-pinned TLS channel (see @kybernesis/arp-tls).

Use

import {
  createTransport,
  createInMemoryKeyStore,
  createResolverAdapter,
} from '@kybernesis/arp-transport';
import { createResolver } from '@kybernesis/arp-resolver';

const transport = createTransport({
  did: 'did:web:samantha.agent',
  keyStore: createInMemoryKeyStore('did:web:samantha.agent', privateKeyRaw),
  resolver: createResolverAdapter(createResolver()),
  mailboxPath: '/var/lib/arp/mailbox.sqlite',
});

transport.listen(async (msg, meta) => {
  // ...evaluate PDP, dispatch, reply
});

// In the Hono POST /didcomm handler:
await transport.receiveEnvelope(await req.text());

// Sending:
await transport.send('did:web:ghost.agent', {
  id: crypto.randomUUID(),
  type: 'https://didcomm.org/arp/1.0/request',
  from: 'did:web:samantha.agent',
  to: ['did:web:ghost.agent'],
  body: { action: 'read', resource: 'alpha/q2' },
});

Mailbox

Inbound envelopes are persisted to a SQLite table (inbox) keyed by message id. The handler loop polls pending rows and marks them delivered once the handler resolves. Duplicate msg_id posts are silently deduped.

Design notes

  • Signing + verification use @noble/ed25519 directly. jose is a declared dep for future JWE support but isn't wired into the v0 signing path.
  • Key material is raw 32-byte Ed25519. createFileKeyStore(...) handles persist-on-first-boot with chmod 0600.
  • The resolver adapter pulls the primary ed25519 key from the DID doc's verificationMethod[0].publicKeyMultibase. Multi-key DID docs can supply a custom resolver that picks a specific key id via the JWS kid header.