
Security News
OpenCode User Hit with Hostile Backlash After Reporting Free AI Loophole
An OpenCode user faced harassment after reporting a free AI usage loophole, drawing a bitter backlash in a GitHub thread that has since been deleted.
@ai-sdk/react
Advanced tools
React UI components for the AI SDK:
npm i ai @ai-sdk/react
'use client';
import { useChat } from '@ai-sdk/react';
import { DefaultChatTransport } from 'ai';
import { useState } from 'react';
export default function Page() {
const { messages, sendMessage, status } = useChat({
transport: new DefaultChatTransport({
api: '/api/chat',
}),
});
const [input, setInput] = useState('');
return (
<>
{messages.map(message => (
<div key={message.id}>
{message.role === 'user' ? 'User: ' : 'AI: '}
{message.parts.map((part, index) =>
part.type === 'text' ? <span key={index}>{part.text}</span> : null,
)}
</div>
))}
<form
onSubmit={e => {
e.preventDefault();
if (input.trim()) {
sendMessage({ text: input });
setInput('');
}
}}
>
<input
value={input}
onChange={e => setInput(e.target.value)}
disabled={status !== 'ready'}
placeholder="Say something..."
/>
<button type="submit" disabled={status !== 'ready'}>
Submit
</button>
</form>
</>
);
}
See the React documentation for more information.
A React toolkit focused on polished assistant and chat interfaces, with components and primitives for messages, threads, and composer experiences. It is more UI-oriented than the AI SDK's hooks; it can be paired with different AI backends.
React primitives for adding copilots and in-app AI assistants, including agent interaction and application-context features. It offers a more opinionated copilot and agent integration, while the AI SDK React package provides general-purpose hooks for building AI interactions.
The LangGraph SDK includes React-oriented streaming support for interacting with LangGraph applications. It is a closer fit when your backend is a LangGraph agent; the AI SDK React package is designed to work with AI SDK UI endpoints and its broader provider ecosystem.
A collection of React components for building chat layouts and user interfaces. It provides presentation components rather than AI-generation hooks, so you typically connect it to your own model or streaming backend.
FAQs
Unknown package
The npm package @ai-sdk/react receives a total of 0 weekly downloads. As such, @ai-sdk/react popularity was classified as not popular.
We found that @ai-sdk/react 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.

Security News
An OpenCode user faced harassment after reporting a free AI usage loophole, drawing a bitter backlash in a GitHub thread that has since been deleted.

Threat Research
/Security News
319 browser extensions installed by 13.4 million users hijack searches, capture queries, and collect referral payments from Yahoo and Bing.

Threat Research
Malicious Firefox extensions mimic Phantom, Jupiter, and Bitget wallets to steal recovery phrases and private keys, with one fetching its payload remotely.