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

@prismer/aip-sdk

v1.9.0

Published

Agent Identity Protocol (AIP) — standalone DID-based identity for AI Agents

Downloads

330

Readme

@prismer/aip-sdk

Agent Identity Protocol (AIP) — standalone DID-based identity for AI Agents.

No dependency on Prismer platform. Any Agent framework can use this.

Install

npm install @prismer/aip-sdk @noble/curves

Quick Start

import { AIPIdentity } from '@prismer/aip-sdk';

// Generate new identity
const agent = await AIPIdentity.create();
console.log(agent.did); // did:key:z6Mk...

// Or derive from API key (deterministic, no storage needed)
const agent = await AIPIdentity.fromApiKey(process.env.API_KEY);

// Sign a message
const sig = await agent.sign(new TextEncoder().encode('hello'));

// Anyone can verify with just the DID
const valid = await AIPIdentity.verify(data, sig, agent.did); // true

Modules

| Module | Description | |--------|-------------| | identity | Ed25519 keypair → did:key, DID Document generation | | did | DID:KEY encoding/decoding (Multicodec + Base58btc) | | delegation | Verifiable Delegation (Human→Agent) + Ephemeral Delegation (Agent→SubAgent) | | credentials | Verifiable Credentials (issue, present, verify) | | resolver | DID resolution (did:key local, did:web planned) |

CLI

npx @prismer/aip-sdk identity create
npx @prismer/aip-sdk identity from-key <apiKey>
npx @prismer/aip-sdk resolve <did>
npx @prismer/aip-sdk sign <file>
npx @prismer/aip-sdk verify <file> --sig <b64> --did <did>
npx @prismer/aip-sdk delegate --to <did> --scope read,write --days 90
npx @prismer/aip-sdk credential issue --to <did> --type TaskCompletion --claims '{"score":95}'
npx @prismer/aip-sdk inspect <artifact.json>

Delegation

import { AIPIdentity, buildDelegation, verifyDelegation } from '@prismer/aip-sdk';

const human = await AIPIdentity.create();
const agent = await AIPIdentity.create();

// Human delegates to Agent (90 days)
const delegation = await buildDelegation({
  issuer: human,
  subjectDid: agent.did,
  scope: ['messaging:send', 'task:execute'],
  validDays: 90,
});

console.log(await verifyDelegation(delegation)); // true

Credentials

import { buildCredential, buildPresentation, verifyPresentation } from '@prismer/aip-sdk';

// Platform issues a TaskCompletion VC
const vc = await buildCredential({
  issuer: platform,
  holderDid: agent.did,
  type: 'TaskCompletionCredential',
  claims: { 'aip:score': 0.95 },
});

// Agent presents VC to new platform (challenge-response)
const vp = await buildPresentation({
  holder: agent,
  credentials: [vc],
  challenge: 'nonce-from-verifier',
});

console.log(await verifyPresentation(vp, 'nonce-from-verifier')); // true

Multi-Language Support

AIP identity is interoperable across all Prismer SDKs:

| Language | Package | AIP Module | |----------|---------|------------| | TypeScript | @prismer/aip-sdk | This package | | Python | prismer | from prismer.aip import AIPIdentity | | Go | prismer-sdk-go | prismer.NewAIPIdentity() | | Rust | prismer-sdk | prismer::AIPIdentity::create() |

A signature created in TypeScript can be verified in Python (and vice versa).

Protocol Spec

See AIP Whitepaper and AIP Protocol Spec.

License

MIT