
Security News
Feross on TBPN: Socket's Series C and the State of Software Supply Chain Security
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in 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 1,300 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
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.

Security News
OSV withdrew 157 OSV malware reports after automated false positives incorrectly flagged trusted npm and PyPI packages, sending bad records into tools that rely on OSV data.

Research
/Security News
TrapDoor crypto stealer hits 36 malicious packages across npm, PyPI, and Crates.io, targeting crypto, DeFi, AI, and security developers.