
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
@inferface/hooks
Advanced tools
Headless React hooks for streaming AI interfaces. Zero runtime dependencies.
pnpm add @inferface/hooks
# or
npm install @inferface/hooks
useStream — low-level SSE/ReadableStream primitiveuseCompletion — single-turn text completion with streaminguseChat — full conversational state with optimistic UIuseToolCalls — human-in-the-loop tool call approval flowsimport { useChat } from "@inferface/hooks";
function Chat() {
const { messages, send, isLoading } = useChat({ api: "/api/chat" });
return (
<div>
{messages.map(m => <p key={m.id}>{m.content as string}</p>)}
<button onClick={() => send("Hello")} disabled={isLoading}>Send</button>
</div>
);
}
Full docs and live demos at inferface.dev
MIT
FAQs
Headless React hooks for streaming AI interfaces
We found that @inferface/hooks 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.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.