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

@glideco/agent-identity

v0.1.0

Published

did:key derivation + verification for Glide agents. Encodes a SEC1-compressed P-256 EC public key (extracted upstream from an Apple App Attest credCert or Android Key Attestation cert) as the W3C did:key form. Pure functions, no IO; relies on the caller t

Readme

@glideco/agent-identity

did:key derivation + verification for Glide agents.

Pure functions, no IO. Extracts the verified P-256 EC public key from an Apple App Attest credCert (or Android Key Attestation cert) and encodes it as the W3C did:key form that downstream agent-payments protocols (AP2, ACP, x402) expect.

Why

Glide signs every grant with a per-grant did:key so external verifiers can resolve the agent's public key without making a Glide API call. The key material is bound to a hardware-attested credential — the did:key is cryptographically derived from Apple App Attest's P-256 key, not asserted by the client.

Install

pnpm add @glideco/agent-identity

Usage

import {
  encodeDidKeyP256,
  decodeDidKeyP256,
  isDidKey,
} from '@glideco/agent-identity';

// Take a 33-byte SEC1 compressed P-256 pubkey (already extracted from
// the App Attest credCert) and produce the canonical did:key URL.
const did = encodeDidKeyP256(compressedPubKey);
//   "did:key:zDnaeY..."

// Round-trip — decode back to the raw pubkey bytes.
const back = decodeDidKeyP256(did);
//   Uint8Array(33) [0x02, ...]

// Cheap shape check for inbound DIDs at API boundaries.
isDidKey(did);
//   true

Multicodec encoding

did:key uses multibase + multicodec. For P-256 compressed:

| field | bytes | | ----------- | -------------------------------- | | multibase | z (base58btc) | | multicodec | 0x80 0x24 (varint of 0x1200) | | pubkey body | 33 bytes (SEC1 compressed) |

This package emits exactly that and verifies on decode.

Spec

License

MIT