
Research
/Security News
PolinRider Spreads Through Compromised GitHub Accounts and Packagist
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.
@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
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.

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.

Company News
Allow myself to introduce... myself.