{"name":"@ai-sdk/vue","version":"3.0.314","keywords":["ai","vue"],"license":"Apache-2.0","_id":"@ai-sdk/vue@3.0.314","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":"48132ab23f39cfc0e648ee004716c6ecdc7e9bbf","tarball":"http://registry-npm.ywwl.com/@ai-sdk/vue/download/@ai-sdk/vue-3.0.314.tgz","fileCount":31,"integrity":"sha512-Al1Z/XT0w6LvAWnAPmBtEG07T53YN7HmflQhTZinhJm57VrNMj17wsgPzWOErKcEgjMXFuWQrx3sGf4vutnGNg==","signatures":[{"sig":"MEYCIQCw7+6F403fMyQ+ppQ/N3627ZEb9dwdMDkdSrkgxZet9wIhAKTla5L5Aon2jhJn12tezzTuNLA8NL1zJYHi0w1boCP0","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQC0v8JOuqQ5IoNxuHpnHkjka8Vr30GZEwpk+jaXWVV2kAIhAKxLJdPOHWnCihxIexLXkG+ODuw71Vf2A+bvoOO1j3FT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-sdk%2fvue@3.0.314","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":160515,"size":28798,"noattachment":false,"key":"/@ai-sdk/vue/-/@ai-sdk/vue-3.0.314.tgz"},"main":"./dist/index.js","_from":"file:ai-sdk-vue-3.0.314.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":"f78af9de-de4f-42ef-9ec3-2706e97160b3"}},"_resolved":"/tmp/a78dbf4f8b44c953541e7d5564e8c7a4/ai-sdk-vue-3.0.314.tgz","_integrity":"sha512-Al1Z/XT0w6LvAWnAPmBtEG07T53YN7HmflQhTZinhJm57VrNMj17wsgPzWOErKcEgjMXFuWQrx3sGf4vutnGNg==","repository":{"url":"git+https://github.com/vercel/ai.git","type":"git","directory":"packages/vue"},"_npmVersion":"11.19.0","description":"[Vue.js](https://vuejs.org/) UI components for the [AI SDK](https://ai-sdk.dev/docs):","directories":{},"sideEffects":false,"_nodeVersion":"24.21.0","dependencies":{"ai":"6.0.314","swrv":"^1.0.4","@ai-sdk/provider-utils":"4.0.62"},"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.314_1792703508591_0.008516882764701528","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":1792703508684,"_cnpm_publish_time":1792703508684,"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"}}