@aibind/vue
@aibind/vue
Low-level Vue 3 composables for AI streaming. If you're using Nuxt, use @aibind/nuxt instead — it wraps this package with sensible defaults and server handlers.
Install
npm install @aibind/vue ai vue
Using Nuxt? Install
@aibind/nuxtinstead — it includes this package and adds server handlers and default endpoints.
Usage
This package requires you to specify an endpoint for every composable. For Nuxt projects, @aibind/nuxt provides defaults automatically.
<script setup lang="ts">
import { useStream } from "@aibind/vue";
const { text, loading, send } = useStream({
endpoint: "/my/stream/endpoint", // required
system: "You are a helpful assistant.",
});
</script>
Entry Points
| Entry | Exports |
|---|---|
@aibind/vue |
useStream, useStructuredStream, defineModels |
@aibind/vue/agent |
useAgent |
@aibind/vue/markdown |
StreamMarkdown, StreamParser, HtmlRenderer, MarkdownRecovery |
@aibind/vue/history |
ReactiveChatHistory, ReactiveMessageTree |
@aibind/vue/project |
Project |
Documentation
Full documentation: aibind.dev
Requirements
- Vue 3.3+
- AI SDK 6.0+
License
MIT
Related Packages
@aibind/nuxt
AI SDK bindings for Nuxt — composables with defaults, server handlers, and agent...
1,296
19
@agentskit/vue
Vue 3 composable + headless chat components for AgentsKit — streaming, tools, an...
6,400
37
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 | |
| 0.8.0 | ^3.3.0 | MIT | |
| 0.4.0 | ^3.3.0 | MIT | |
| 0.2.0 | ^3.3.0 | MIT | |
| 0.1.0 | ^3.3.0 | MIT |