Add the live renderer to your React application
React renderer
The public package contains the identity contract, TypeScript types, and live React renderer. Every package manager below installs the same v0.1.0 release from npm.
npm install @accidental-revenue/orbsonaUse, modify, and ship the renderer under the MIT License. Orbsona has no account requirement, hosted identity store, telemetry, or vendor lock-in.
Import the downloaded file and drive the generic state contract from your own application.
import { AgentAvatar } from "@accidental-revenue/orbsona/react";
import type { AgentState } from "@accidental-revenue/orbsona";
import aster from "./aster.orbsona.json";
type AgentPresenceProps = {
state: AgentState;
inputLevel?: number;
outputLevel?: number;
};
export function AgentPresence({
state,
inputLevel,
outputLevel,
}: AgentPresenceProps) {
return (
<AgentAvatar
identity={aster.identity}
state={state}
inputLevel={inputLevel}
outputLevel={outputLevel}
size={64}
/>
);
}For contributors who want to build and test the repository locally.
npm install
npm run test:package
npm run devOrbsona stays independent from voice and agent providers. Your application maps connection, audio, and tool events to the small AgentState contract, so the same identity can move between runtimes without changing its visual language.