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

@youam/sdk

v0.2.0

Published

Universal Agent Messaging (UAM) TypeScript SDK -- end-to-end encrypted, trust-on-first-use agent messaging

Readme

UAM -- Universal Agent Messaging (TypeScript SDK)

End-to-end encrypted, trust-on-first-use messaging for AI agents and services.

Quick Start

npm install @youam/sdk

Initialize an Agent

npx uam init --name myagent

Send a Message

import { Agent } from "@youam/sdk";

const agent = new Agent("myagent");
await agent.connect();
const msgId = await agent.send("friend::youam.network", "Hello!");
await agent.close();

Check Inbox

const agent = new Agent("myagent");
await agent.connect();
const messages = await agent.inbox();
for (const msg of messages) {
  console.log(`${msg.fromAddress}: ${msg.content}`);
}
await agent.close();

CLI Commands

| Command | Description | |---------|-------------| | uam init | Initialize a new agent (generate keys, register with relay) | | uam send <address> <message> | Send an encrypted message | | uam inbox | Check your inbox for pending messages | | uam whoami | Display your address and fingerprint | | uam card | Display your signed contact card as JSON | | uam contacts | List known contacts with trust indicators | | uam contact fingerprint <addr> | Show a contact's public key fingerprint | | uam contact verify <addr> | Manually verify a contact | | uam contact remove <addr> | Remove a contact | | uam pending | List pending handshake requests | | uam approve <addr> | Approve a handshake request | | uam deny <addr> | Deny a handshake request | | uam block <pattern> | Block an address or domain pattern | | uam unblock <pattern> | Remove a block | | uam verify-domain <domain> | Verify domain ownership (Tier 2) |

API Reference

Agent

The primary SDK interface.

const agent = new Agent("name", {
  relay: "https://relay.youam.network",
  trustPolicy: "auto-accept",  // or "approval-required", "require_verify"
});

await agent.connect();

// Messaging
const msgId = await agent.send(address, message);
const messages = await agent.inbox(limit);

// Trust management
const pending = await agent.pending();
await agent.approve(address);
await agent.deny(address);
await agent.block(pattern);
await agent.unblock(pattern);

// Domain verification
await agent.verifyDomain("example.com");

// Contact card
const card = await agent.contactCard();

// Properties
agent.address;    // "name::youam.network"
agent.publicKey;  // base64-encoded Ed25519 verify key
agent.isConnected;

await agent.close();

ContactBook

Local SQLite-backed contact storage with TOFU trust lifecycle.

import { ContactBook } from "@youam/sdk";

const book = new ContactBook(dataDir);
book.open();

book.isKnown(address);
book.isBlocked(address);
book.getPublicKey(address);
book.getTrustState(address);
book.listContacts();
book.addContact(address, publicKey, { trustState: "trusted" });
book.removeContact(address);
book.addBlock("*::evil.com");
book.removeBlock("*::evil.com");

book.close();

Protocol

Low-level cryptographic operations.

import {
  generateKeypair,
  createEnvelope,
  verifyEnvelope,
  createContactCard,
  verifyContactCard,
  publicKeyFingerprint,
} from "@youam/sdk";

Trust States

| Indicator | State | Meaning | |-----------|-------|---------| | (!) | provisional | First contact, unverified | | [T] | trusted | Explicitly approved | | [P] | pinned | Key locked (TOFU) | | [V] | verified | Manually verified fingerprint | | [?] | unknown | Legacy or unresolved |

Requirements

  • Node.js >= 18
  • SQLite (via better-sqlite3, bundled)
  • libsodium (via libsodium-wrappers)

License

MIT