
Security News
152 Chrome Live Wallpaper Extensions Hid Ad Tracking and Faked Google Search Traffic
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.
React hooks for Agent Client Protocol (ACP) over WebSockets.
npm install use-acp
# or
pnpm add use-acp
import { useAcpClient } from 'use-acp';
function App() {
const {
connect,
disconnect,
connectionState,
notifications,
pendingPermission,
resolvePermission,
} = useAcpClient({
wsUrl: 'ws://localhost:8080',
autoConnect: true
});
return (
<div>
<div>Status: {connectionState.status}</div>
<button onClick={connectionState.status === 'connected' ? disconnect : connect}>
{connectionState.status === 'connected' ? 'Disconnect' : 'Connect'}
</button>
{pendingPermission && (
<div>
<h3>Permission Request</h3>
{pendingPermission.options.map((option) => (
<button key={option.optionId} onClick={() => resolvePermission(option)}>
{option.name}
</button>
))}
</div>
)}
<div>Notifications: {notifications.length}</div>
<ul>
{notifications.map((notification) => (
<li key={notification.id}>{JSON.stringify(notification)}</li>
))}
</ul>
</div>
);
}
useAcpClient({ wsUrl, autoConnect?, reconnectAttempts?, reconnectDelay? })Returns: { connect(), disconnect(), connectionState, notifications, clearNotifications(), pendingPermission, resolvePermission(), rejectPermission(), agent }
import { groupNotifications, mergeToolCalls } from 'use-acp';
// Group notifications by their type
// This helps when displaying notifications in a timeline
const groupedNotifications = groupNotifications(notifications);
// Merge tool calls with the same toolCallId
const mergedToolCalls = mergeToolCalls(toolCalls);
pnpm install
pnpm test # run tests
pnpm build # build library
pnpm dev # run demo, http://localhost:5173
# Gemini ACP
npx -y stdio-to-ws "npx @google/gemini-cli --experimental-acp"
# Claude Code ACP
npx -y stdio-to-ws "npx @zed-industries/claude-code-acp"
# Codex ACP
npx -y stdio-to-ws "npx @zed-industries/codex-acp"
Apache 2.0
FAQs
React hooks for Agent Client Protocol
The npm package use-acp receives a total of 710 weekly downloads. As such, use-acp popularity was classified as not popular.
We found that use-acp 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.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.