npm@drm3/sdk

One SDK. Every DRM3 integration.

One npm package to wire an app or an agent into DRM3: identity, credits, a cross-app switcher, alerts, an in-browser receipt verifier, key management, and the x402 payment gateway core. Ships compiled, zero internal dependencies, and a drm3 CLI.

npm install @drm3/sdk

One package, subpath imports

Import only what you use. Every capability is its own entry point, so a browser bundle that just verifies receipts never pulls in the payment core.

@drm3/sdk

The umbrella: the network client, everything below re-exported.

@drm3/sdk/sso

Offline SSO: verify a DRM3 identity token in-process, no call home.

@drm3/sdk/receipts

The in-browser receipt viewer + verifier: check an Ed25519 receipt live against the public registry.

@drm3/sdk/x402

The x402 payment gateway core: answer a 402 with terms, take the pay-per-call.

@drm3/sdk/meter

Metering: read a user's live credit balance and debit per use.

@drm3/sdk/switcher

The cross-app switcher: move a signed-in user between DRM3 apps.

@drm3/sdk/alerts

Cross-app alerts: surface a user's notifications in any window.

@drm3/sdk/keys

Partner key management: generate, rotate, and CSR signing keys.

Ships built

Compiled JavaScript plus TypeScript types. Installs everywhere, including Cloudflare Workers and Fly/Docker images with no git access.

Zero internal deps

Only @noble/* for the cryptography. Nothing else to audit or trust.

Verify in the browser

The receipt viewer checks an Ed25519 receipt live against the public key registry, in the browser, with no server round trip. See drm3.io/verify.

The provenance signing layer beneath all of this has its own page: the Provenance SDK. The receipt every DRM3 product signs, and the one this SDK verifies, is the same object.

npmnpmjs.com/package/@drm3/sdk