domain
SDK

TypeScript SDK

One package for server access, browser orchestration, UI, and runtime contracts.

The domain0 package is TypeScript-first and JavaScript-compatible. Its public surface is split by trust boundary, not by framework.

Public entry points

ImportContents
domain0Both clients, high-level UI lifecycle, contracts, errors, shared-flow helpers
domain0/contractsZod schemas, inferred types, webhook verification
domain0/serverSafe same-origin bridge for connection-scoped browser requests
domain0/uiLower-level framework-neutral UI mounting

All public request inputs are parsed before network calls. All successful and error responses are parsed before they reach your application.

On this page