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-sdk

v0.1.3

Published

ARP SDK — high-level ArpAgent wrapping runtime/pdp/transport/registry/audit. The developer-facing entry point for custom agents.

Downloads

463

Readme

@kybernesis/arp-sdk

The developer-facing TypeScript SDK for building ARP agents.

Wraps @kybernesis/arp-runtime, @kybernesis/arp-pdp, @kybernesis/arp-transport, @kybernesis/arp-registry, and @kybernesis/arp-audit into a single ArpAgent surface, so agent authors (and framework adapter authors) never need to learn ARP's internal primitives (DIDComm, Cedar, SQLite, etc.).

Install

pnpm add @kybernesis/arp-sdk

Minimal agent

import { ArpAgent } from '@kybernesis/arp-sdk';

const agent = await ArpAgent.fromHandoff('./arp-handoff.json', {
  dataDir: './.arp-data',
  onIncoming: async (task, ctx) => {
    if (task.action === 'ping') return { body: { pong: true } };
    return { body: { received_action: task.action } };
  },
});

await agent.start({ port: 4500 });

The five integration points

Every agent eventually hits the same five seams. The SDK surfaces them as methods on ArpAgent:

| Hook | Purpose | |------|---------| | agent.check({ action, resource, context, connectionId }) | Permission check (outbound tool calls, custom resource lookups). | | agent.egress({ data, connectionId, obligations }) | Apply obligations (redact, rate-limit, watermark, …) to an outbound payload. | | agent.onIncoming(handler) | Register a handler for inbound peer tasks. Already runs after the PDP. | | agent.audit({ connectionId, decision, reason, metadata }) | Append a JSONL audit entry. | | agent.on('revocation' \| 'rotation' \| 'pairing', handler) | Subscribe to lifecycle events. |

Connection management (admin-side)

await agent.connections.list();
await agent.connections.revoke(connectionId, 'owner-requested');
await agent.connections.suspend(connectionId);

Obligations applied automatically

When your onIncoming handler returns a reply, the SDK runs it through the PDP's obligation pipeline before handing it back to the runtime. Currently supported transforms:

  • redact_fields
  • redact_fields_except
  • redact_regex
  • summarize_only
  • aggregate_only
  • insert_watermark
  • no_downstream_share

Non-payload obligations (rate_limit, require_fresh_consent, charge_usd, …) are passed through to callers — they're enforced elsewhere in the stack.

Security posture

  • The SDK refuses to boot if the Ed25519 private key it loaded does not hash to the public_key_multibase committed in the handoff — identical invariant to the sidecar.
  • Private key material is written 0600 on disk. Callers that own their own keystore (HSM / TPM / cloud KMS) should pass privateKey directly.
  • Handoff bundles containing any private* or secret* field are rejected — private material must not travel in handoffs.

Deeper docs

  • docs/ARP-installation-and-hosting.md §3.3 — Library install mode
  • docs/ARP-installation-and-hosting.md §8 — The five integration points
  • docs/ARP-adapter-authoring-guide.md — Building a framework adapter on top of the SDK