
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@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.
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.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.