domain
Connect SDK

Domain0 Connect SDK

Create DNS intents in your application and embed the customer connection flow.

The domain0 package is TypeScript-first and works in JavaScript. Most integrations use two calls: create a connection on the server, then open it in the browser.

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

The SDK parses public inputs, responses, and events with Zod. The browser never receives your long-lived Domain0 API key.

On this page