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

@kashscript/identity-server

v0.1.1

Published

Server-side did:kash identity — server-issued guest DIDs, handshake challenge/response, self-certifying DID resolution, JWKS publishing, and the MCP-conformant agent-identity profile: OAuth 2.1 + PKCE (S256), RFC 8707 audience-bound, RFC 8693 agent→owner

Readme

@kashscript/identity-server — server identity + the agent-identity profile

Identity is free. Apache-2.0. The server-side half of the Passport, and the auth surface agents talk to MCP servers with.

Built in phase M2 of the protocol Manifestation (ADR-0016). Where @kashscript/identity-core is pure did:kash crypto with no I/O, this package is the server perimeter — and it adds a did:kash-rooted, MCP-conformant token for agents. Every server-identity API is derived from the @duedale/identity-kernel seed; the agent-identity profile is derived from the MCP authorization spec + its RFC stack — never invented. Full contract: specs/identity-server.md.

Two layers

1 · Server identity (ported from the kernel seed, refit onto injectable stores)

  • Guest DIDsissueGuestDid(): server-generated Ed25519 keypair → self-certifying did:kash, private seed surrendered once, 7-day expiry cap. Never self-asserted.
  • HandshakebuildHandshakeChallenge() (chal_…, 300 s) + one-time consumeHandshakeChallenge() + verifyHandshakeSignature() (DST-free raw Ed25519 / ECDSA-P256).
  • Resolution — self-certifying resolveDidPubkey() (pubkey from parseDid; store gates NOT_FOUND/REVOKED) + revokeGuestDid().
  • PDS contractwritePdsRecord()/readPdsRecord() with content-addressed CIDs + optimistic revisions. The durable PDS is @kashscript/muffler (M3); this ships the contract
    • an in-memory reference.
  • createIdentityServer({ challengeStore, metadataStore, pdsStore }) composes it into one instance. Prisma/Redis/muffler adapters stay venture-side — inject them via the store interfaces.

2 · The agent-identity profile (net-new, MCP-conformant)

A did:kash root ("owner") mints an OAuth 2.1 access token a delegated agent presents to an MCP server:

const { token } = await mintAgentToken({
  owner: { did: ownerDid, privateKey },   // sub + signer (did:kash root)
  agent: agentDid,                        // act.sub — the agent→owner binding
  audience: "https://mcp.example.com/mcp",// aud (RFC 8707)
  issuer, clientId, scope, expiresInSeconds: 300,
});

const res = await verifyAgentToken(token, { expectedAudience: "https://mcp.example.com/mcp" });
// res.ok, res.audienceOk, res.ownerBinding = { owner, agent }
  • RFC 9068 JWT access token (typ:"at+jwt", alg:"EdDSA"), signed raw-Ed25519 by the owner.
  • RFC 8707 aud audience binding — the MCP server MUST validate it is the audience (verifyAgentToken enforces it; wrong audAUDIENCE_MISMATCH).
  • RFC 8693 act.sub delegation — the agent acting for the owner.
  • Signer key resolves via an explicit key, a JWKS kid→x, or — by default — the owner did:kash self-certifying (no network).
  • PKCE S256 only (pkce), JWKS publish/parse public-only (jwks), RFC 8414 + 9728 discovery metadata (metadata), RFC 8707 resource canonicalization (agent/resource).

Provider-neutral

Errors are KS_IDENTITY_* codes only — a consuming venture maps them to its own envelope at its perimeter (e.g. Duedale's DD_*). That mapping, the durable store adapters, and issuance policy (rate-limits, denylists, origin allow-lists) stay venture-side (ADR-0016 guard b).

Status

0.x — the API stays 0.x until the venture consumer (Duedale) swaps onto the published package and stays green (consumer-as-acceptance, ADR-0016). Depends on @kashscript/identity-core + @kashscript/attest.

Licensed Apache-2.0 — see LICENSE.