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.
Create a connection
Send the customer domain and required DNS records from your server.
Open Domain0 Connect
Launch the provider connection flow in your product.
Customize the flow
Apply branding, locale, setup policy, and callbacks.
Handle events
Update your product from typed lifecycle events.
Public entry points
| Import | Contents |
|---|---|
domain0 | Both clients, high-level UI lifecycle, contracts, errors, shared-flow helpers |
domain0/contracts | Zod schemas, inferred types, webhook verification |
domain0/server | Safe same-origin bridge for connection-scoped browser requests |
domain0/ui | Lower-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.