Getting started
Installation
Install the Domain0 package for TypeScript or JavaScript.
bun add domain0The package includes its own TypeScript declarations and depends on Zod for
runtime contract validation. No separate @types package is required.
Private preview
The package is currently a private pre-release. These commands work after registry access is granted; public npm installation will begin with the first reviewed release.
Runtime support
- Node.js 22 or newer for server code.
- Modern browsers with
fetch, Web Crypto, and native<dialog>support. - ESM and CommonJS package exports.
- TypeScript and plain JavaScript from the same
domain0package.
Entry points
import { createDomain0Client, createDomain0PlatformClient, domain0 } from 'domain0'
import { ConnectionSchema, Domain0WebhookEventSchema } from 'domain0/contracts'
import { mountDomain0Connect } from 'domain0/ui'Use the root package for the usual integration. Import domain0/contracts
when you need schemas without UI code, and domain0/ui for lower-level mounting.