Add the live renderer to your React application
React renderer
The public package contains the versioned identity contract, TypeScript types, and layered canvas renderer. Orbsona’s nature presets are maintained here; the restored legacy motion collection is used under its MIT license and credited in the package notices.
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.