Skip to Content
OrbzGetting startedOverview

Getting started

Orbz publishes one UI primitive: the native <orb-z> custom element. Every framework renders that same tag. There is no React, Vue, Svelte, or Angular component adapter.

Install

pnpm add @neongate-ai/orbz
npm install @neongate-ai/orbz

Choose an entry point

ImportUse it forSide effect
@neongate-ai/orbz/browserBrowser applications in any frameworkDefines <orb-z> once
@neongate-ai/orbz/react-typesOptional React/Next.js JSX typing for <orb-z>None
@neongate-ai/orbzTypes, constants, adapters, helpers, and explicit registrationNone
@neongate-ai/orbz/standaloneCDN or self-contained browser loadingDefines <orb-z> once
@neongate-ai/orbz/index.cssInspecting or tooling around the embedded source stylesheetNone

Render the element

import "@neongate-ai/orbz/browser";
<orb-z state="idle" preset="neongate" size="300px" speed="1" reduced-motion="system" ></orb-z>

The browser entry is guarded and idempotent. Importing it more than once does not redefine the tag.

React and Next.js

Use the browser entry from client code and render the literal tag:

"use client"; import "@neongate-ai/orbz/react-types"; import "@neongate-ai/orbz/browser"; import type { OrbzState } from "@neongate-ai/orbz"; interface AssistantPresenceProps { state: OrbzState; } export function AssistantPresence(props: AssistantPresenceProps) { return ( <orb-z state={props.state} preset="neongate" size="300px" reduced-motion="system" /> ); }

TypeScript projects can import @neongate-ai/orbz/react-types once to add orb-z to React.JSX.IntrinsicElements without creating a framework wrapper component.

Automatic talk startup

The element schedules its talk flow after its first connected render. The built-in WebSpeechAdapter requests en-US, waits for the browser voice list, and prefers an English voice. A browser may still require user activation for audio; in that case Orbz retries the flow after the first pointer, keyboard, or touch interaction.

Continue with Native web component, React and Next.js, or the Voice and talk runtime.

Last updated on