
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@aibind/nextjs
Advanced tools
AI SDK bindings for Next.js — hooks with defaults, server handlers, and agents
AI SDK bindings for Next.js. React hooks, API route handlers, and agents — all wired up with sensible defaults.
npm install @aibind/nextjs ai react
Peer dependencies: react ^18 || ^19, ai ^6.0.
// src/app/api/ai/[...path]/route.ts
import { createStreamHandler } from "@aibind/nextjs/server";
import { anthropic } from "@ai-sdk/anthropic";
const handler = createStreamHandler({
model: anthropic("claude-sonnet-4-20250514"),
});
export async function POST(request: Request) {
return handler(request);
}
"use client";
import { useState } from "react";
import { useStream } from "@aibind/nextjs";
export default function Chat() {
const [prompt, setPrompt] = useState("");
const { text, loading, send } = useStream({
system: "You are a helpful assistant.",
});
return (
<form
onSubmit={(e) => {
e.preventDefault();
send(prompt);
setPrompt("");
}}
>
<input value={prompt} onChange={(e) => setPrompt(e.target.value)} />
<button disabled={loading}>Send</button>
<p>{text}</p>
</form>
);
}
| Import Path | What You Get |
|---|---|
@aibind/nextjs | useStream, useStructuredStream, defineModels |
@aibind/nextjs/server | createStreamHandler, ServerAgent |
@aibind/nextjs/agent | useAgent |
@aibind/nextjs/history | ChatHistory, MessageTree |
@aibind/nextjs/markdown | StreamMarkdown |
@aibind/nextjs/project | Project |
Full documentation, API reference, and guides: aibind.dev
MIT
FAQs
AI SDK bindings for Next.js — hooks with defaults, server handlers, and agents
The npm package @aibind/nextjs receives a total of 8 weekly downloads. As such, @aibind/nextjs popularity was classified as not popular.
We found that @aibind/nextjs 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.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.