
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@programsmagic/toon-frontend
Advanced tools
React components for agent visualization with animated toon styling
React components for agent visualization with animated toon styling.
npm install @toon/frontend
# or
pnpm add @toon/frontend
# or
yarn add @toon/frontend
import { AgentVisualizer } from '@toon/frontend';
import '@toon/frontend/styles';
function App() {
return (
<AgentVisualizer
url="http://localhost:3000/events"
protocol="sse"
autoConnect={true}
/>
);
}
Main visualization component for agent events.
<AgentVisualizer
url="http://localhost:3000/events"
protocol="sse"
autoConnect={true}
showTimeline={true}
showFlowDiagram={false}
/>
React hook for connecting to agent event streams.
import { useAgentStream } from '@toon/frontend';
function MyComponent() {
const { events, isConnected, connect, disconnect } = useAgentStream({
url: 'http://localhost:3000/events',
protocol: 'sse',
});
return (
<div>
<button onClick={connect}>Connect</button>
<button onClick={disconnect}>Disconnect</button>
<div>Events: {events.length}</div>
</div>
);
}
Component for displaying a timeline of events.
import { EventTimeline } from '@toon/frontend';
<EventTimeline events={events} maxEvents={100} />
Component for displaying individual action events.
import { ActionCard } from '@toon/frontend';
<ActionCard event={event} index={0} />
Component for visualizing agent flows.
import { FlowDiagram } from '@toon/frontend';
<FlowDiagram events={events} flows={flows} />
Import the default "toon" theme:
import '@toon/frontend/styles';
Or customize CSS variables:
:root {
--toon-primary: #your-color;
--toon-secondary: #your-color;
/* ... */
}
See the examples directory for complete examples.
See the full documentation.
MIT
FAQs
React components for agent visualization with animated toon styling
The npm package @programsmagic/toon-frontend receives a total of 2 weekly downloads. As such, @programsmagic/toon-frontend popularity was classified as not popular.
We found that @programsmagic/toon-frontend demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.