{"name":"@ai-sdk/vue","version":"3.0.324","keywords":["ai","vue"],"license":"Apache-2.0","_id":"@ai-sdk/vue@3.0.324","maintainers":[{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"matheuss","email":"matheus.frndes@gmail.com"},{"name":"matt.straka","email":"matt.j.straka@gmail.com"}],"homepage":"https://ai-sdk.dev/docs","bugs":{"url":"https://github.com/vercel/ai/issues"},"dist":{"shasum":"9fe2961dda1187e286b7dd68f04f9d728b9bb842","tarball":"http://registry-npm.ywwl.com/@ai-sdk/vue/download/@ai-sdk/vue-3.0.324.tgz","fileCount":31,"integrity":"sha512-yBU5NEh9eWC0YouRBsnojyhN0DTGtZ5S0rhz/gXTssVOisTI1eR1yXjHiKPVT9VQtguKMIzJMrKU1PR1zwuV0A==","signatures":[{"sig":"MEQCIG7BLlK/NLzK53qijJ3WyUDw/bx/12yCDYF/D4NPbEpgAiBgPBvz/jtUFc6hBOu+SXuuebAKh9tmzIHmtolLqOc/vw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIA12Hmf2hxwdLIkW0YMJY5HufJTcVFWmsEiaJGUZ/9M+AiEA4j3gNHVn7M3V8In48RVnoRace2JUT5EqTpZvi4j5/6E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-sdk%2fvue@3.0.324","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":161270,"size":28891,"noattachment":false,"key":"/@ai-sdk/vue/-/@ai-sdk/vue-3.0.324.tgz"},"main":"./dist/index.js","_from":"file:ai-sdk-vue-3.0.324.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"vitest --config vitest.config.js --run","build":"pnpm clean && tsup --tsconfig tsconfig.build.json","clean":"del-cli dist *.tsbuildinfo","test:watch":"vitest --config vitest.config.js","type-check":"tsc --build","build:watch":"pnpm clean && tsup --watch","test:update":"vitest --config vitest.config.js --run -u"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"42610541-d8ed-4799-a8e4-dfaeb8688bed"}},"_resolved":"/tmp/82b16cc5b52126ff6e56fe21e57f323c/ai-sdk-vue-3.0.324.tgz","_integrity":"sha512-yBU5NEh9eWC0YouRBsnojyhN0DTGtZ5S0rhz/gXTssVOisTI1eR1yXjHiKPVT9VQtguKMIzJMrKU1PR1zwuV0A==","repository":{"url":"git+https://github.com/vercel/ai.git","type":"git","directory":"packages/vue"},"_npmVersion":"11.19.1","description":"[Vue.js](https://vuejs.org/) UI components for the [AI SDK](https://ai-sdk.dev/docs):","directories":{},"sideEffects":false,"_nodeVersion":"24.22.2","dependencies":{"ai":"6.0.324","swrv":"^1.0.4","@ai-sdk/provider-utils":"4.0.64"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"msw":"2.6.4","zod":"3.25.76","tsup":"^7.2.0","jsdom":"^24.0.0","vitest":"^4.1.0","typescript":"5.8.3","@types/node":"20.17.24","@vitejs/plugin-vue":"5.2.0","@ai-sdk/test-server":"1.0.6","@vercel/ai-tsconfig":"0.0.0","@testing-library/vue":"^8.1.0","@testing-library/jest-dom":"^6.6.3","@testing-library/user-event":"^14.5.2"},"peerDependencies":{"vue":"^3.3.4"},"_npmOperationalInternal":{"tmp":"tmp/vue_3.0.324_1794003731305_0.059112109953844305","host":"s3://npm-registry-packages-npm-production"},"readme":"# AI SDK - Vue.js integration\n\n[Vue.js](https://vuejs.org/) UI components for the [AI SDK](https://ai-sdk.dev/docs):\n\n## Setup\n\n```bash\nnpm i ai @ai-sdk/vue\n```\n\n## Usage\n\n```typescript\n<script setup lang=\"ts\">\nimport { useChat } from \"@ai-sdk/vue\";\nimport { ref } from \"vue\";\n\nconst input = ref(\"\");\nconst { messages, sendMessage } = useChat();\n\nconst handleSubmit = (e: Event) => {\n    e.preventDefault();\n    sendMessage({ text: input.value });\n    input.value = \"\";\n};\n</script>\n\n<template>\n    <div>\n        <div v-for=\"(m, index) in messages\" :key=\"m.id ? m.id : index\">\n            {{ m.role === \"user\" ? \"User: \" : \"AI: \" }}\n            <div\n                v-for=\"(part, index) in m.parts\"\n                :key=\"`${m.id}-${part.type}-${index}`\"\n            >\n                <div v-if=\"part.type === 'text'\">{{ part.text }}</div>\n            </div>\n        </div>\n\n        <form @submit=\"handleSubmit\">\n            <input v-model=\"input\" placeholder=\"Say something...\" />\n        </form>\n    </div>\n</template>\n```\n\nSee the [Vue.js documentation](https://ai-sdk.dev/docs/getting-started/nuxt) for more information.\n","publish_time":1794003731424,"_cnpm_publish_time":1794003731424,"dist-tags":{"ai-v5":"2.0.288","ai-v6":"3.0.328","alpha":"2.0.0-alpha.15","beta":"4.0.0-beta.187","canary":"4.0.0-canary.176","latest":"4.0.168","snapshot":"0.0.0-f1630544-20260811180950"}}