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.
Platform client
Create connections and browser access on your server.
Browser client
Use a limited token to advance one connection.
Connect dialog
Open the complete provider and DNS setup UI.
Runtime contracts
Validate inputs, responses, errors, and events with Zod.
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 |
All public request inputs are parsed before network calls. All successful and error responses are parsed before they reach your application.