@stathandle/apexado-agent-react
v1.0.6
Published
Apexado React and Next.js widget package with standalone HTML bundle support
Readme
@stathandle/apexado-agent-react
React and Next.js package for the Apexado public visitor widget.
React/Vite usage:
import { ApexadoWidget } from '@stathandle/apexado-agent-react';
export function HelpCenter() {
return <ApexadoWidget agentId="YOUR_AGENT_ID" publicKey="YOUR_PUBLIC_KEY" apiBaseUrl="https://api.example.com" />;
}Next.js usage:
'use client';
import { ApexadoWidget } from '@stathandle/apexado-agent-react/next';
export function HelpCenter() {
return <ApexadoWidget agentId="YOUR_AGENT_ID" publicKey="YOUR_PUBLIC_KEY" apiBaseUrl="https://api.example.com" />;
}The next entry is client-only because the widget uses browser APIs and WebSocket.
The package also produces standalone dist/widget.js and dist/widget.css assets
for HTML embeds.
The widget includes a local Landing → Chat → Inbox flow. Inbox history is authorized by the short-lived widget session token and is restricted by the tenant, agent, and browser visitor identity. It does not expose internal JWTs or allow a visitor to request another visitor's sessions.
Never include an admin JWT, client secret, or tenant secret in component props.
