Developer preview Not production ready. Preview status
Tracecove Identity

Workers

The explicit @tracecove/identity/workers entry provides server-side service/product clients, strict protocol validators, and an asynchronous WebCrypto session locator. It avoids importing the Node SQLite store and Node filesystem/hash implementation.

Import the client-only entry

JavaScript
import {
  IdentityServiceClient,
  IdentityProductUserClient,
  productSessionReferenceAsync,
} from '@tracecove/identity/workers';

const client = await IdentityServiceClient.connect(serviceConfiguration);
const status = await client.status(canonicalProductSubject);

The example requires an approved server service profile and registered environment. Keep credentials in trusted bindings, never request fields or browser code. The async locator produces the same psr1_ value as the Node helper for the same input; it is not a credential.

Own clients within the request

Live clients, promises, responses and in-flight I/O belong to their owning Worker request. Do not carry them across requests or isolates. Apply a bounded product-level admission and pacing policy so request-owned clients cannot reset your accepted overall workload limits.

The per-client queue, cooldown and deadlines are not a distributed rate limiter, durable authorization cache, or proof that outstanding physical I/O has retired after a logical timeout.

Bring a durable product adapter

The package supplies no D1 or Durable Object lifecycle consumer. Your application must implement and validate namespace binding, authority floors, inbox/cursor/acknowledgement atomicity, recovery after missed events and cold start, freshness, bounded work and exact-effect authorization.

Do not model a D1 prepared batch as the Node SQLite adapter's arbitrary async transaction callback. Ambiguous effects and unsettled I/O require explicit reconciliation rather than silent takeover or replay.

Entry limitations

The Workers entry does not export IdentityConsumer, SQLiteIdentityConsumerStore, or IdentityOwnerClient. It uses manual redirect mode and rejects returned 3xx responses instead of following them. Source/runtime tests do not establish a production provider, a production product adapter, or a production service. Read the API reference and status.

Public preview 0.7.0-preview.1 · Not production ready · Status and releases