
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
@agentuity/frontend
Advanced tools
Generic web utilities for building Agentuity frontend applications. Provides framework-agnostic utilities for URL building, serialization, reconnection logic, and type definitions.
This package contains reusable JavaScript logic that can be shared across different frontend frameworks (React, Svelte, Vue, etc.).
npm install @agentuity/frontend
import { buildUrl, defaultBaseUrl } from '@agentuity/frontend';
const url = buildUrl(
'https://api.example.com',
'/users',
undefined,
new URLSearchParams({ page: '1' })
);
// => 'https://api.example.com/users?page=1'
import { createReconnectManager } from '@agentuity/frontend';
const reconnect = createReconnectManager({
onReconnect: () => console.log('Reconnecting...'),
threshold: 3,
baseDelay: 500,
factor: 2,
maxDelay: 30000,
});
// Record failures to trigger exponential backoff
reconnect.recordFailure();
import { deserializeData } from '@agentuity/frontend';
const data = deserializeData<MyType>('{"key":"value"}');
Multi-peer WebRTC connections with auto-reconnection and data channels:
import { WebRTCManager } from '@agentuity/frontend';
const manager = new WebRTCManager({
signalUrl: 'ws://localhost:3500/api/webrtc/signal',
roomId: 'my-room',
autoReconnect: true,
});
manager.on('peerConnected', (peerId) => console.log('Peer joined:', peerId));
manager.on('dataChannelMessage', ({ channel, data }) => console.log(channel, data));
await manager.connect();
manager.sendJSON('chat', { message: 'Hello!' });
Key features:
For detailed architecture, see docs/webrtc-architecture.md.
Apache-2.0
FAQs
Unknown package
The npm package @agentuity/frontend receives a total of 3,422 weekly downloads. As such, @agentuity/frontend popularity was classified as popular.
We found that @agentuity/frontend demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.