{"_id":"@alcorexchange/privy-vue","_rev":"4-3985e2f25940ed95d882ec0c4db4a18d","name":"@alcorexchange/privy-vue","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@alcorexchange/privy-vue","version":"0.1.0","keywords":["privy","vue","wallet","ethereum","eos","antelope","web3"],"author":{"name":"Alcor Exchange"},"license":"MIT","_id":"@alcorexchange/privy-vue@0.1.0","maintainers":[{"name":"alcorexchange","email":"qweasd_96@mail.ru"}],"homepage":"https://github.com/avral/alcor-ui#readme","bugs":{"url":"https://github.com/avral/alcor-ui/issues"},"dist":{"shasum":"98c19765f6f94e35e407b4acfbbd2e10c0d28388","tarball":"https://registry.npmjs.org/@alcorexchange/privy-vue/-/privy-vue-0.1.0.tgz","fileCount":8,"integrity":"sha512-u+FJAha8FZ8RhyWiWwdO5reB88nMV+salgMsWQso21uzSg6k575ilJqeKpkh93H4OMXFfSXRDWI29J09D7a0ug==","signatures":[{"sig":"MEUCIHZ+E9TodIgrHjo7oipuUS2KMHxSj9tneaamDz5VKkJRAiEAqH6E+PN+RgVlcG++N/zUixJMinZ+g+Gt07K9FVj2Rd4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4248944},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./widget":"./dist/privy-island.iife.js"},"gitHead":"9bffa48737cc4383db1856b358d92798e83955f5","scripts":{"build":"unbuild","build:widget":"cd ../../privy-island && yarn build && cp ../public/privy-island/privy-island.iife.js ../packages/privy-vue/dist/","prepublishOnly":"yarn build:widget && yarn build"},"_npmUser":{"name":"alcorexchange","email":"qweasd_96@mail.ru"},"repository":{"url":"git+https://github.com/avral/alcor-ui.git","type":"git"},"_npmVersion":"11.5.1","description":"Privy wallet integration for Vue.js with EVM and Antelope/EOS signing support","directories":{},"_nodeVersion":"24.5.0","_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.0","unbuild":"^2.0.0","typescript":"^5.7.0"},"peerDependencies":{"vue":"^3.3.0"},"_npmOperationalInternal":{"tmp":"tmp/privy-vue_0.1.0_1768334203045_0.15974522204844788","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@alcorexchange/privy-vue","version":"0.1.1","keywords":["privy","vue","wallet","ethereum","eos","antelope","web3"],"author":{"name":"Alcor Exchange"},"license":"MIT","_id":"@alcorexchange/privy-vue@0.1.1","maintainers":[{"name":"alcorexchange","email":"qweasd_96@mail.ru"}],"homepage":"https://github.com/alcorexchange/privy-vue#readme","bugs":{"url":"https://github.com/alcorexchange/privy-vue/issues"},"dist":{"shasum":"f6ddc9185e22a488d36ecadecd9c6d2142e657c5","tarball":"https://registry.npmjs.org/@alcorexchange/privy-vue/-/privy-vue-0.1.1.tgz","fileCount":8,"integrity":"sha512-A/oKaTYfSbPr7+pZhhJWgLdwaEq17MMrdMLGmj6jAMGCFrbH6UXFUp+m021Osuops0+PAGgAL+wVcetvHUL0BA==","signatures":[{"sig":"MEQCIHvSG4j8/lFVbRXEABwMRcoeZ8e0JlbLobUdt9b2t3jJAiBwuCxORwZ69FdXRK01ZkrK1Zscg2Kmrryzwm848IiHpg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4249657},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./widget":"./dist/privy-island.iife.js"},"gitHead":"39a952b85297a69ab7d090e0ec5d21832ff15284","scripts":{"build":"unbuild","build:all":"yarn build && yarn build:widget","build:widget":"cd widget && yarn install && yarn build && cp dist/privy-island.iife.js ../dist/","prepublishOnly":"yarn build:all"},"_npmUser":{"name":"alcorexchange","email":"qweasd_96@mail.ru"},"repository":{"url":"git+https://github.com/alcorexchange/privy-vue.git","type":"git"},"_npmVersion":"11.5.1","description":"Privy wallet integration for Vue.js with EVM and Antelope/EOS signing support","directories":{},"_nodeVersion":"24.5.0","_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.0","unbuild":"^2.0.0","typescript":"^5.7.0"},"peerDependencies":{"vue":"^3.3.0"},"_npmOperationalInternal":{"tmp":"tmp/privy-vue_0.1.1_1768343297409_0.16837480738150323","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@alcorexchange/privy-vue","version":"0.1.2","keywords":["privy","vue","wallet","ethereum","eos","antelope","web3"],"author":{"name":"Alcor Exchange"},"license":"MIT","_id":"@alcorexchange/privy-vue@0.1.2","maintainers":[{"name":"alcorexchange","email":"qweasd_96@mail.ru"}],"homepage":"https://github.com/alcorexchange/privy-vue#readme","bugs":{"url":"https://github.com/alcorexchange/privy-vue/issues"},"dist":{"shasum":"9953ca04ef4ff7cc48d7c9335b7116b0a5c18979","tarball":"https://registry.npmjs.org/@alcorexchange/privy-vue/-/privy-vue-0.1.2.tgz","fileCount":8,"integrity":"sha512-42QdfSCq4NW6lsHPgmhph3x3Z7EBMWeFCvFSerYzRnJQawoNkdxdErEaF33EJpaiOdmVmssmrhJDwy1H2RbuQQ==","signatures":[{"sig":"MEUCID0rQWy5dz0rl5kt5Ldjt9e2TKA7KxLM7jRVzAcOmuRgAiEAz04JYYz3tZNb0DkJp7SnQ+fQzPdqclkrk0+PtlE56m0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4253100},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./widget":"./dist/privy-island.iife.js"},"gitHead":"e4e73ce0541dabd96e1747a3c644475bebccbc77","scripts":{"build":"unbuild","build:all":"yarn build && yarn build:widget","build:widget":"cd widget && yarn install && yarn build && cp dist/privy-island.iife.js ../dist/","prepublishOnly":"yarn build:all"},"_npmUser":{"name":"alcorexchange","email":"qweasd_96@mail.ru"},"repository":{"url":"git+https://github.com/alcorexchange/privy-vue.git","type":"git"},"_npmVersion":"11.5.1","description":"Privy wallet integration for Vue.js with EVM and Antelope/EOS signing support","directories":{},"_nodeVersion":"24.5.0","_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.0","unbuild":"^2.0.0","typescript":"^5.7.0"},"peerDependencies":{"vue":"^3.3.0"},"_npmOperationalInternal":{"tmp":"tmp/privy-vue_0.1.2_1768352208827_0.24402641939737268","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@alcorexchange/privy-vue","version":"0.1.3","description":"Privy wallet integration for Vue.js with EVM and Antelope/EOS signing support","type":"module","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./widget":"./dist/privy-island.iife.js"},"scripts":{"build":"unbuild","build:widget":"cd widget && yarn install && yarn build && cp dist/privy-island.iife.js ../dist/","build:all":"yarn build && yarn build:widget","prepublishOnly":"yarn build:all"},"peerDependencies":{"vue":"^3.3.0"},"devDependencies":{"unbuild":"^2.0.0","vue":"^3.5.0","typescript":"^5.7.0"},"keywords":["privy","vue","wallet","ethereum","eos","antelope","web3"],"author":{"name":"Alcor Exchange"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/alcorexchange/privy-vue.git"},"_id":"@alcorexchange/privy-vue@0.1.3","gitHead":"e4e73ce0541dabd96e1747a3c644475bebccbc77","bugs":{"url":"https://github.com/alcorexchange/privy-vue/issues"},"homepage":"https://github.com/alcorexchange/privy-vue#readme","_nodeVersion":"24.5.0","_npmVersion":"11.5.1","dist":{"integrity":"sha512-QvBHUCI8tV+fona1RREgXeVoOavTPKGSQuJs1nP3NKjGh48M6kofeKLb117lez0awrvIJvVxORNJv3L3e4usHw==","shasum":"c54bcd6e0693a25ba52f23527c836142cab952e0","tarball":"https://registry.npmjs.org/@alcorexchange/privy-vue/-/privy-vue-0.1.3.tgz","fileCount":8,"unpackedSize":4253346,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCU0N5kHOxwQ23D5APBceAHUX6jr9Wva4BFbEs6fDFAjAIhANmPGsN6ApKiVp1y+kWnG1MIYZqEQI7msFP/FXL/vtqD"}]},"_npmUser":{"name":"alcorexchange","email":"qweasd_96@mail.ru"},"directories":{},"maintainers":[{"name":"alcorexchange","email":"qweasd_96@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/privy-vue_0.1.3_1768355006363_0.6611607616752697"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-13T19:56:42.952Z","modified":"2026-01-14T01:43:27.001Z","0.1.0":"2026-01-13T19:56:43.276Z","0.1.1":"2026-01-13T22:28:17.691Z","0.1.2":"2026-01-14T00:56:49.057Z","0.1.3":"2026-01-14T01:43:26.581Z"},"bugs":{"url":"https://github.com/alcorexchange/privy-vue/issues"},"author":{"name":"Alcor Exchange"},"license":"MIT","homepage":"https://github.com/alcorexchange/privy-vue#readme","keywords":["privy","vue","wallet","ethereum","eos","antelope","web3"],"repository":{"type":"git","url":"git+https://github.com/alcorexchange/privy-vue.git"},"description":"Privy wallet integration for Vue.js with EVM and Antelope/EOS signing support","maintainers":[{"name":"alcorexchange","email":"qweasd_96@mail.ru"}],"readme":"# @alcorexchange/privy-vue\n\nPrivy wallet integration for Vue.js with EVM and Antelope/EOS signing support.\n\n## Installation\n\n```bash\nyarn add @alcorexchange/privy-vue\n```\n\n## Setup\n\n### 1. Load the widget script\n\nAdd to your HTML or create a Nuxt plugin:\n\n```typescript\n// plugins/privy.client.ts\nexport default defineNuxtPlugin(() => {\n  window.__PRIVY_APP_ID__ = 'your-privy-app-id'\n\n  // Optional: configure appearance and behavior\n  window.__PRIVY_CONFIG__ = {\n    landingHeader: 'Connect Wallet',\n    loginMessage: 'Connect your wallet to continue',\n    externalWallets: true,   // Set false to disable external wallets (Metamask, etc)\n    lastLoginOnly: true      // Only auto-login with last used method\n  }\n\n  const script = document.createElement('script')\n  script.src = '/privy-island.iife.js' // Copy from node_modules/@alcorexchange/privy-vue/dist/\n  document.head.appendChild(script)\n})\n```\n\n### 2. Use the composable\n\n```vue\n<script setup lang=\"ts\">\nimport { usePrivyWidget } from '@alcorexchange/privy-vue'\n\nconst {\n  isReady,\n  isConnected,\n  address,\n  walletType,\n  isEmbeddedWallet,\n  login,\n  logout,\n  exportWallet,\n  evm\n} = usePrivyWidget()\n</script>\n\n<template>\n  <div v-if=\"!isReady\">Loading...</div>\n  <div v-else-if=\"!isConnected\">\n    <button @click=\"login\">Connect</button>\n  </div>\n  <div v-else>\n    <p>Address: {{ address }}</p>\n    <button @click=\"logout\">Disconnect</button>\n  </div>\n</template>\n```\n\n## Configuration\n\n| Option | Type | Default | Description |\n|--------|------|---------|-------------|\n| `landingHeader` | string | `'Connect Wallet'` | Modal header text |\n| `loginMessage` | string | `'Connect your wallet to continue'` | Modal login message |\n| `externalWallets` | boolean | `true` | Enable external wallets (Metamask, Phantom, etc). Set `false` for social login only |\n| `lastLoginOnly` | boolean | `false` | Only auto-login with the last used method. Prevents injected wallets from hijacking social login sessions |\n\n## EVM Signing\n\n```typescript\n// Sign message (EIP-191)\nconst signature = await evm.signMessage('Hello World')\n\n// Sign typed data (EIP-712)\nconst sig = await evm.signTypedData(typedData)\n\n// Raw secp256k1 signature (Privy embedded wallet only)\n// Perfect for Antelope/EOS signatures\nconst rawSig = await evm.secp256k1Sign(hash)\n```\n\n## Antelope/EOS Signing\n\nThe `secp256k1Sign` method provides raw ECDSA signatures without Ethereum prefix, making it perfect for signing Antelope/EOS transactions:\n\n```typescript\nimport { Signature } from '@wharfkit/antelope'\n\n// Hash your transaction digest\nconst digest = '...' // 32-byte hex hash\n\n// Sign with Privy embedded wallet\nconst sig = await evm.secp256k1Sign(digest)\n\n// Convert to Antelope signature format\nconst anteSig = Signature.from({ r, s, recid })\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}