vue-llm weekly downloads statistics
AI SDK for Vue and Nuxt: streaming useChat, tool calling, Generative UI and in-browser WebGPU models for OpenAI, Anthropic, Gemini and Ollama.
vue-llm has 550 recorded weekly downloads on npm, an increase of 15.1% over the past 30 days, ranking #2239 of 3,247 tracked listings.
About vue-llm
vue-llm
English · Русский · 简体中文 · Português · Español · 日本語
vue-llm is the AI SDK for Vue and Nuxt: streaming useChat, tool calling, Generative UI and in-browser models for OpenAI, Anthropic, Gemini, Ollama and WebGPU.
useChat() with streaming, tool calling, multi-provider support — in 10 lines of code.
Documentation: https://vue-llm.js.org/ · Try it in your browser — no API key needed
Features
useChat()— reactive composable with streaming, abort, regenerate- Multi-provider — OpenAI, Anthropic, Gemini, Ollama out of the box
- In-browser models — run Llama, Qwen or SmolLM on WebGPU with
createWebLLM, no server or API key - Generative UI — render tool calls as your Vue components with
<MessageParts>, streamed arguments and human-in-the-loop - Tool calling —
defineToolwithexecute,onToolCall,addToolResult - Attachments — images, PDFs, audio and text files, mapped per provider
- Persistence — restore chat history from localStorage or any custom backend
- Resilience — retries with exponential backoff, client and server rate limiting
- Prompt templates —
{{variables}}with type inference, chat templates, reactiveusePrompt - Any backend — server-side tools in
createLLMHandler,createSSEProviderfor your own SSE API - Streaming — SSE parser, text/reasoning/tool-call deltas
- Security —
dangerouslyAllowBrowserguard protects API keys - Chat UI — a complete chat you own:
npx shadcn-vue add https://vue-llm.js.org/r/chat.json, plus headlessusePromptInputanduseAutoScroll - MCP — tools of any MCP server (search, files, GitHub, databases) in
useChatand on the server (vue-llm/mcp); users connect their own servers (Notion, Linear…) with OAuth sign-in viauseMCP/useMCPServers, in the browser or through your backend (createMCPConnector) - Vue DevTools — an LLM tab with every chat, request timeline, time to first token, tool calls and token usage (
vue-llm/devtools) - Nuxt module — auto-imports, components, DevTools in development, server-side runtime config
- Zero runtime deps — only
vueas peer dependency (Vue 3.3+ and Vue 2.7, components included) - TypeScript — full type safety, exported types
Quick Start
npm install vue-llm
<script setup>
import { useChat } from 'vue-llm'
import { createOpenAI } from 'vue-llm/providers'
const ai = createOpenAI({
apiKey: 'sk-...',
dangerouslyAllowBrowser: true, // only for prototyping
})
const { messages, input, handleSubmit, isLoading } = useChat({
provider: ai,
model: 'gpt-4o',
})
</script>
<template>
<div v-for="msg in messages" :key="msg.id">
<strong>{{ msg.role }}:</strong>
<span v-for="(part, i) in msg.parts" :key="i">
<template v-if="part.type === 'text'">{{ part.text }}</template>
</span>
</div>
<form @submit.prevent="handleSubmit">
<input v-model="input" placeholder="Ask something..." />
<button :disabled="isLoading">Send</button>
</form>
</template>
Providers
OpenAI
import { createOpenAI } from 'vue-llm/providers'
const ai = createOpenAI({
apiKey: process.env.OPENAI_API_KEY,
})
Anthropic
import { createAnthropic } from 'vue-llm/providers'
const ai = createAnthropic({
apiKey: process.env.ANTHROPIC_API_KEY,
})
const { messages, sendMessage } = useChat({
provider: ai,
model: 'claude-sonnet-4-5',
})
Ollama (local)
import { createOllama } from 'vue-llm/providers'
const ai = createOllama() // localhost:11434 by default
const { messages, sendMessage } = useChat({
provider: ai,
model: 'llama3',
})
In the browser (WebGPU)
import { CreateMLCEngine } from '@mlc-ai/web-llm' // npm i @mlc-ai/web-llm
import { createWebLLM } from 'vue-llm/providers'
const ai = createWebLLM({
createEngine: CreateMLCEngine,
onProgress: ({ progress }) => console.log(`${Math.round(progress * 100)}%`),
})
const { messages, sendMessage } = useChat({
provider: ai,
model: 'Llama-3.2-1B-Instruct-q4f16_1-MLC',
})
The model runs on the user's GPU, and nothing leaves the device. See In-Browser Models.
Tool Calling
const { messages, sendMessage } = useChat({
provider: ai,
model: 'gpt-4o',
tools: [
{
name: 'get_weather',
description: 'Get weather for a city',
parameters: {
type: 'object',
properties: {
city: { type: 'string', description: 'City name' },
},
required: ['city'],
},
},
],
onToolCall: async ({ toolName, args }) => {
if (toolName === 'get_weather') {
return { temperature: 22, condition: 'sunny' }
}
},
maxToolRoundtrips: 3,
})
Attachments
Pass File, FileList or FilePart objects to sendMessage. Files are read as data URLs and stored as file parts on the user message.
<script setup lang="ts">
const { messages, input, sendMessage } = useChat({ provider: ai, model: 'gpt-4o' })
const files = ref<FileList>()
async function submit() {
await sendMessage({ text: input.value, files: files.value })
input.value = ''
files.value = undefined
}
</script>
<template>
<input type="file" multiple @change="files = ($event.target as HTMLInputElement).files ?? undefined">
<input v-model="input" @keydown.enter="submit">
</template>
```…
Description from the npm listing.
- vue
- vue3
- ai
- llm
- chat
- streaming
- openai
- anthropic
- gemini
- ollama
- composable
- nuxt
- nuxt-module
- typescript
- sse
- gpt
- claude
- ai-sdk
- chatbot
- chat-ui
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (135)Similar npm AI SDKs plugins
All 20 vue-llm alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/vue-llm. First seen Nov 17, 2026; last successful collection Dec 6, 2026. See the methodology.