{"_id":"@arpabet/vrpc-vue","_rev":"2-b11319bbbfdc5fbff46f48452a8dade9","name":"@arpabet/vrpc-vue","dist-tags":{"latest":"0.2.1"},"versions":{"0.2.0":{"name":"@arpabet/vrpc-vue","version":"0.2.0","keywords":["vue","composables","rpc","websocket","value-rpc"],"license":"Apache-2.0","_id":"@arpabet/vrpc-vue@0.2.0","maintainers":[{"name":"karagatan","email":"alex@karagatan.com"}],"homepage":"https://github.com/arpabet/value-rpc-js#readme","bugs":{"url":"https://github.com/arpabet/value-rpc-js/issues"},"dist":{"shasum":"7ce54e26bc62698777af30ab02b2f1fa201516ea","tarball":"https://registry.npmjs.org/@arpabet/vrpc-vue/-/vrpc-vue-0.2.0.tgz","fileCount":5,"integrity":"sha512-9+t+RvbRVE5uiE3zuotUd8Opef6+TVvS+uravjt8hEoafILd25MWMBmhbT40f5RtXYySWARNEeRH/ZGREFziIA==","signatures":[{"sig":"MEUCIQCdbXgaQw0bK7xXEwaQSfzh5KigI0KYYzG+9H2Cy9b9mAIgT/z76CBv3tgCIWpKQOGCNnbeFGWJnjSYDZjulnH+REE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25118},"type":"module","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"c959ca53006317a48d6fd2a7f589e7b1a7286ccc","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"karagatan","email":"alex@karagatan.com"},"repository":{"url":"git+https://github.com/arpabet/value-rpc-js.git","type":"git","directory":"packages/vrpc-vue"},"_npmVersion":"10.9.8","description":"Vue 3 plugin and composables for value-rpc: useVrpcCall, useVrpcStream, useVrpcConnection","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@arpabet/vrpc":"^0.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.0","tsup":"^8.3.0","vitest":"^4.1.10","happy-dom":"^20.11.0","typescript":"^5.6.0"},"peerDependencies":{"vue":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/vrpc-vue_0.2.0_1784437596550_0.743394378605734","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@arpabet/vrpc-vue","version":"0.2.1","description":"Vue 3 plugin and composables for value-rpc: useVrpcCall, useVrpcStream, useVrpcConnection","license":"Apache-2.0","type":"module","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsup","test":"vitest run","typecheck":"tsc --noEmit"},"dependencies":{"@arpabet/vrpc":"^0.2.1"},"peerDependencies":{"vue":"^3.4.0"},"devDependencies":{"happy-dom":"^20.11.0","tsup":"^8.3.0","typescript":"^5.6.0","vitest":"^4.1.10","vue":"^3.5.0"},"engines":{"node":">=22"},"keywords":["vue","composables","rpc","websocket","value-rpc"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/arpabet/value-rpc-js.git","directory":"packages/vrpc-vue"},"_id":"@arpabet/vrpc-vue@0.2.1","gitHead":"43c4f0acdff6bcdbd4b2a7ac29f36f6c6a7ca39e","bugs":{"url":"https://github.com/arpabet/value-rpc-js/issues"},"homepage":"https://github.com/arpabet/value-rpc-js#readme","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-/7Lf6oAeGYVYdQ8bluh90qOTQYXLkJkzEK155J6prUiyy6yMCG3VhExUcldiliBfUDUxJ59J9C1ZIfxr6dU2JA==","shasum":"55186a8a9be18d579f497fa5053b4e35f07f0e88","tarball":"https://registry.npmjs.org/@arpabet/vrpc-vue/-/vrpc-vue-0.2.1.tgz","fileCount":5,"unpackedSize":25122,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIA8ScSoSSE7bxeO46Xh3OWPP50gn0JTtHVVLlikJs+wVAiEAkO3eAhoVEKqaQUfXBzwQh4BmuLhL5jCMd57t3WVJsXI="}]},"_npmUser":{"name":"karagatan","email":"alex@karagatan.com"},"directories":{},"maintainers":[{"name":"karagatan","email":"alex@karagatan.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vrpc-vue_0.2.1_1785920097782_0.7320407542853828"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-19T05:06:36.313Z","modified":"2026-08-05T08:54:58.083Z","0.2.0":"2026-07-19T05:06:36.709Z","0.2.1":"2026-08-05T08:54:57.935Z"},"bugs":{"url":"https://github.com/arpabet/value-rpc-js/issues"},"license":"Apache-2.0","homepage":"https://github.com/arpabet/value-rpc-js#readme","keywords":["vue","composables","rpc","websocket","value-rpc"],"repository":{"type":"git","url":"git+https://github.com/arpabet/value-rpc-js.git","directory":"packages/vrpc-vue"},"description":"Vue 3 plugin and composables for value-rpc: useVrpcCall, useVrpcStream, useVrpcConnection","maintainers":[{"name":"karagatan","email":"alex@karagatan.com"}],"readme":"# @arpabet/vrpc-vue\n\nVue 3 plugin + composables for [value-rpc](https://github.com/arpabet/value-rpc).\n\n```ts\n// main.ts\nimport { createVrpc } from \"@arpabet/vrpc-vue\";\napp.use(createVrpc({ url: import.meta.env.VITE_VRPC_URL }));\n```\n\n```vue\n<script setup lang=\"ts\">\nconst { data, pending, error, refresh } = useVrpcCall<User>(\"user.get\", () => [id.value]);\nconst { latest, values, state, cancel } = useVrpcStream<Event>(\"events.tail\", [\"orders\"]);\nconst { status, connected } = useVrpcConnection();\nconst client = useVrpc(); // full @arpabet/vrpc client (chat, putStream, reverse calls)\n</script>\n```\n\n- `useVrpcCall` re-runs when reactive args change and aborts superseded runs.\n- `useVrpcStream` grants flow-control credit as values are consumed and\n  cancels the stream on unmount. `keepLast` bounds the retained window.\n- SSR-safe: on the server the composables render their pending state and\n  never open a socket.\n- For caching/dedup/SWR, feed `client.call` into `@tanstack/vue-query`'s\n  `queryFn` — this package deliberately ships no cache.\n","readmeFilename":"README.md"}