@aibind/nuxt

AI SDK bindings for Nuxt — composables with defaults, server handlers, and agents
1,296 19
Install
npm install @aibind/nuxt
Latest Version:0.12.0
Vue:3
License:MIT
Last Updated:Mar 10, 2026
Links: GitHub  ·  npm
Maintainer: puruvj

@aibind/nuxt

AI SDK bindings for Nuxt. Vue 3 composables, server handlers, and agents — all wired up with sensible defaults.

Install

npm install @aibind/nuxt ai vue

Peer dependencies: vue ^3.3, ai ^6.0.

Quick Start

1. Add the server handler

// server/api/__aibind__/[...path].ts
import { createStreamHandler } from "@aibind/nuxt/server";
import { anthropic } from "@ai-sdk/anthropic";

const handler = createStreamHandler({
  model: anthropic("claude-sonnet-4-20250514"),
});

export default defineEventHandler(async (event) => {
  return handler(toWebRequest(event));
});

2. Stream in a component

<script setup lang="ts">
import { useStream } from "@aibind/nuxt";

const { text, loading, send } = useStream({
  system: "You are a helpful assistant.",
});

const prompt = ref("");
</script>

<template>
  <form @submit.prevent="send(prompt)">
    <input v-model="prompt" />
    <button :disabled="loading">Send</button>
  </form>

  <p v-if="text">{{ text }}</p>
</template>

Entry Points

Import Path What You Get
@aibind/nuxt useStream, useStructuredStream, defineModels
@aibind/nuxt/server createStreamHandler, ServerAgent
@aibind/nuxt/agent useAgent
@aibind/nuxt/history ReactiveChatHistory, ReactiveMessageTree
@aibind/nuxt/markdown StreamMarkdown
@aibind/nuxt/project Project

Documentation

Full documentation, API reference, and guides: aibind.dev

License

MIT

Related Packages

@aibind/vue

AI SDK bindings for Vue 3 — reactive composables for streaming, structured outpu...

1,366 19
@opentiny/tiny-robot-kit

AI大模型请求与数据处理工具包

29,412 101
@reactive-agents/vue

Vue composables for Reactive Agents — useAgentStream, useAgent

3,001
vue-llm

AI/LLM composables for Vue — useChat, useCompletion, streaming, multi-provider....

0 0
nuxt-auto-translate

Automatic i18n translations for Nuxt using LLMs (OpenAI, Anthropic, Gemini, Groq...

2,009 2

Version History

Version Released Vue License
0.12.0 ^3.3.0 MIT
0.11.0 ^3.3.0 MIT
0.10.0 ^3.3.0 MIT
0.9.1 ^3.3.0 MIT
0.9.0 ^3.3.0 MIT