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

@agenticprimitives/connect

v1.0.0-alpha.9

Published

Agentic Connect — the SSO broker (spec 224 / ADR-0014). Mints CAIP-10-subject, no-owner AgentSessions (asymmetric + JWKS); drives entry-flow convergence (connect-auth verify → identity-directory resolve → issue/bootstrap/disambiguate) with assurance floor

Readme

@agenticprimitives/connect

Single sign-on where the session subject is an on-chain identity, not a vendor account.

Every hosted identity provider can tell a relying site "this is user 8f3a… in our database." None can tell it "this is Smart Agent 0xAB12…, with custody policy behind it and authority you can verify on-chain." That gap is what connect closes. It is the SSO broker of the agenticprimitives stack (spec 224; ADR-0014): it runs at one central origin, proves a credential once (via connect-auth), resolves it to a canonical agent (via identity-directory), and issues a CAIP-10-subject, no-owner AgentSession that relying sites verify with the broker's public key. One passkey enrollment serves every relying site — and the token names the agent itself, never a vendor user ID.

Part of agenticprimitives — the trust substrate for the agent economy: one canonical Smart Agent identity with custody, delegation, naming, credentials, and audit evidence designed as one system.

What's here

token.ts     AgentSession mint/verify + JWKS — asymmetric (EdDSA/ES256), alg-pinned (CN-4)
broker.ts    convergence (0→bootstrap / 1→issue / many→disambiguate) + issuance gates (CN-2/5/6/8)
redirect.ts  redirect_uri allowlist + single-use auth-code store (CN-1/9)

Usage (sketch)

import { generateBrokerKeypair, issueForResolution, verifyAgentSession, publishJwks } from '@agenticprimitives/connect';

const signer = await generateBrokerKeypair();           // EdDSA by default
const jwks = await publishJwks([signer]);               // serve at /.well-known/jwks.json

// after connect-auth verifies a credential and identity-directory resolves it:
const out = await issueForResolution({ resolution, principal, signer, aud: clientId, iss: connectOrigin, ttlSeconds: 600 });
// out.status: 'issued' (token) | 'bootstrap' | 'disambiguate' | 'rejected'

// relying site:
const v = await verifyAgentSession(token, { keys: await importJwks(jwks), expectedIss: connectOrigin, expectedAud: clientId });

Security (audit CN controls)

This is an IdP-class trust concentration, and the package treats it that way — each control below maps to a finding ID in the spec 224 audit:

  • Token (CN-4): verification pins the algorithm to the key (by kid), never the token's header — rejects alg:none + RS/ES↔HS confusion; an AgentSession carrying an owner is rejected (ADR-0016).
  • Issuance (CN-6/CN-8): an existing-agent session needs onchain-confirmed assurance (which the directory only assigns after an on-chain membership confirm — a revoked credential never reaches issuance); a non-eip155 subject is identifier-only (no control session).
  • Disambiguation (CN-5): the chosen subject is server-validated against the resolution set; never a client-echoed sub.
  • Redirect (CN-1/9): exact-match redirect_uri allowlist + single-use, TTL-bounded auth-code exchange — the token never rides in a URL.
  • Step-up (CN-2): requiresStepUp classifies custody-class actions; a login-grade session authorizes no on-chain write.

The HS256 same-origin BrokerSession is connect-auth's, a different token from this asymmetric cross-origin AgentSession.

Why this instead of Privy, Dynamic, or Web3Auth

Auth and embedded-wallet vendors end at login plus a key held inside their account system. connect begins there. The session it issues is bound to a canonical on-chain Smart Agent — an identity with custody policy, recoverable credentials, and delegated authority behind it, none of which depends on the broker's database surviving. Two consequences worth naming:

  • A login-grade session authorizes no on-chain write. Custody-class actions require explicit step-up classification (CN-2); execution happens on-chain, never inside this package. Vendor sessions typically carry whatever the embedded key can sign.
  • The subject outlives the credential. Recovery rotates passkeys; the CAIP-10 subject — and every delegation the agent ever issued — stays valid (ADR-0011).

What this package deliberately does not do: verify credentials (that is connect-auth), own the resolution graph (identity-directory), or execute custody changes (on-chain modules). One job, audited.

Status

Testnet/pilot-ready. Production launch is gated on the public checklist in the root README — including third-party contract audit and governance key rotation. Track every security finding live in docs/audits/findings.yaml.

Validate

pnpm --filter @agenticprimitives/identity-directory build   # dep dist for vitest
pnpm --filter @agenticprimitives/connect typecheck
pnpm --filter @agenticprimitives/connect test
pnpm check:forbidden-terms