{"_id":"@belongnet/enoki-vue","_rev":"2-49db3dd9a512efd09a5fec5ee494f8ce","name":"@belongnet/enoki-vue","dist-tags":{"latest":"0.1.3"},"versions":{"0.0.2":{"name":"@belongnet/enoki-vue","version":"0.0.2","keywords":["enoki","zk-login","sui","vue"],"author":{"name":"belongnet"},"license":"MIT","_id":"@belongnet/enoki-vue@0.0.2","maintainers":[{"name":"reslear","email":"reslear@gmail.com"},{"name":"belongfoundation","email":"join@belong.net"}],"homepage":"https://github.com/@belongnet/enoki-vue#readme","bugs":{"url":"https://github.com/@belongnet/enoki-vue/issues"},"dist":{"shasum":"54dc7c745e355189e67ec1fe3936cd1bcdf267f6","tarball":"https://registry.npmjs.org/@belongnet/enoki-vue/-/enoki-vue-0.0.2.tgz","fileCount":18,"integrity":"sha512-KEQOHCDbVxs2dRDZJMFJ/r5hBY2zZWrBOd0cUoOzJr75ipH3nHnL61FrNZ5sJNQAvNsS3WEVCyQ2buznRI35XA==","signatures":[{"sig":"MEQCIAyiKWF4GeP8hKB2oflTFDF/QImvBFscEnHkaU0hhb7rAiBP5tKK4cf8K9udMDcketAzT4Qrf5iM7rxbyOGzWRQ/wA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11995},"main":"dist/esm/index.js","type":"module","types":"dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"}},"gitHead":"50909e9d8e5614a44660ae6f4a7ee9ea700cffef","scripts":{"test":"vitest","build":"pnpm run clean && pnpm run build:esm+types","clean":"rm -rf dist tsconfig.tsbuildinfo","coverage":"vitest run --coverage","prepublishOnly":"pnpm build","build:esm+types":"tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types"},"_npmUser":{"name":"reslear","email":"reslear@gmail.com"},"repository":{"url":"git+https://github.com/@belongnet/enoki-vue.git","type":"git"},"_npmVersion":"10.8.1","description":"Enoki Flow zk-login sui integration for Vue.js","directories":{},"sideEffects":false,"_nodeVersion":"22.3.0","dependencies":{"@nanostores/vue":"^0.10.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.5.0","prettier":"^3.2.5","@vitest/ui":"^1.5.0","typescript":"^5.4.5","@mysten/enoki":"^0.4.4","@vitest/coverage-v8":"^1.5.0"},"peerDependencies":{"vue":">=3","typescript":">=5.0.4","@mysten/enoki":">=0.4.4"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/enoki-vue_0.0.2_1727972997923_0.6275062530731845","host":"s3://npm-registry-packages"}},"0.0.9":{"name":"@belongnet/enoki-vue","version":"0.0.9","keywords":["enoki","zk-login","sui","vue"],"author":{"name":"belongnet"},"license":"MIT","_id":"@belongnet/enoki-vue@0.0.9","maintainers":[{"name":"reslear","email":"reslear@gmail.com"},{"name":"belongfoundation","email":"join@belong.net"}],"homepage":"https://github.com/belongnet/enoki-vue#readme","bugs":{"url":"https://github.com/belongnet/enoki-vue/issues"},"dist":{"shasum":"25c44aeab0e0af72ac7adcb72ad180e0df06c1f1","tarball":"https://registry.npmjs.org/@belongnet/enoki-vue/-/enoki-vue-0.0.9.tgz","fileCount":23,"integrity":"sha512-UbRbteu//FyCSBx+CV3AM8L5sln89IO+k2AOHMJEBQnhY873SryImvznWgEX2p3I5BJt1mL7oQgcrvoDXiaKgw==","signatures":[{"sig":"MEUCIHh773UAyCYnLFPdB5gPub4ZP6AY1PZIvSFNXGMt9XmKAiEA/ppUI8cUPmhR9oNhH2V9ctF6koxFBdPqi9G8UUuI4Bg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14591},"main":"dist/esm/index.js","type":"module","_from":"file:belongnet-enoki-vue-0.0.9.tgz","types":"dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"}},"scripts":{"test":"vitest","build":"pnpm run clean && pnpm run build:esm+types","clean":"rm -rf dist tsconfig.tsbuildinfo","coverage":"vitest run --coverage","build:esm+types":"tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types"},"_npmUser":{"name":"reslear","email":"reslear@gmail.com"},"_resolved":"/private/var/folders/r5/0wg5rcy547dcpq9l0s47ylhr0000gn/T/2c9c91ecd81d91b56a2c3b5b60bce280/belongnet-enoki-vue-0.0.9.tgz","_integrity":"sha512-UbRbteu//FyCSBx+CV3AM8L5sln89IO+k2AOHMJEBQnhY873SryImvznWgEX2p3I5BJt1mL7oQgcrvoDXiaKgw==","repository":{"url":"git+https://github.com/belongnet/enoki-vue.git","type":"git"},"_npmVersion":"10.8.1","description":"Enoki Flow zk-login sui integration for Vue.js","directories":{},"sideEffects":false,"_nodeVersion":"22.3.0","dependencies":{"@nanostores/vue":"^0.10.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.5.13","vitest":"^1.5.0","prettier":"^3.2.5","@vitest/ui":"^1.5.0","typescript":"^5.4.5","@mysten/enoki":"^0.4.13","@vitest/coverage-v8":"^1.5.0"},"peerDependencies":{"vue":">=3","typescript":">=5.0.4","@mysten/enoki":">=0.4.4"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/enoki-vue_0.0.9_1732891663215_0.5999405365251085","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"@belongnet/enoki-vue","version":"0.1.3","description":"Enoki Flow zk-login sui integration for Vue.js","keywords":["enoki","zk-login","sui","vue"],"repository":{"type":"git","url":"git+https://github.com/belongnet/enoki-vue.git"},"license":"MIT","author":{"name":"belongnet"},"type":"module","exports":{".":{"types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"}},"main":"dist/esm/index.js","types":"dist/types/index.d.ts","sideEffects":false,"scripts":{"build":"pnpm run clean && pnpm run build:esm+types","build:esm+types":"tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types","clean":"rm -rf dist tsconfig.tsbuildinfo","prepublishOnly":"pnpm build","test":"vitest","coverage":"vitest run --coverage"},"dependencies":{"@nanostores/vue":"^0.10.0"},"peerDependencies":{"@mysten/enoki":">=0.4.4","typescript":">=5.0.4","vue":">=3"},"peerDependenciesMeta":{"typescript":{"optional":true}},"devDependencies":{"@mysten/enoki":"^0.4.13","@vitest/coverage-v8":"^1.5.0","@vitest/ui":"^1.5.0","prettier":"^3.4.1","typescript":"5.6.2","vitest":"^1.5.0","vue":"3.5.13"},"publishConfig":{"access":"public"},"_id":"@belongnet/enoki-vue@0.1.3","gitHead":"3d374a2fdb9b6951529cb8df163b8f2286674c7e","bugs":{"url":"https://github.com/belongnet/enoki-vue/issues"},"homepage":"https://github.com/belongnet/enoki-vue#readme","_nodeVersion":"22.11.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-GD01nPHmReU2ZhFDEFZ2w8yrO9YrUgTSwdhkOe2YGJ8+21ddPkTCEMcUc/R5vk4/4DYX0DtBpG3JXVCT5b82OA==","shasum":"f53dea3b93837ce9a707b8ea070e8323706821c3","tarball":"https://registry.npmjs.org/@belongnet/enoki-vue/-/enoki-vue-0.1.3.tgz","fileCount":23,"unpackedSize":15448,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGyCzFwtrT9rKHfaK1F6jH7O44YfYHSr2K0xtlGsZR8wIgXw27ZJt6+VoetUxJQdgDxL2Z7vi9RAwZxZ/X2Ighz5A="}]},"_npmUser":{"name":"reslear","email":"reslear@gmail.com"},"directories":{},"maintainers":[{"name":"reslear","email":"reslear@gmail.com"},{"name":"belongfoundation","email":"join@belong.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/enoki-vue_0.1.3_1732894664883_0.7556004788188018"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-03T16:29:57.810Z","modified":"2024-11-29T15:37:45.265Z","0.0.2":"2024-10-03T16:29:58.119Z","0.0.9":"2024-11-29T14:47:43.383Z","0.1.3":"2024-11-29T15:37:45.074Z"},"bugs":{"url":"https://github.com/belongnet/enoki-vue/issues"},"author":{"name":"belongnet"},"license":"MIT","homepage":"https://github.com/belongnet/enoki-vue#readme","keywords":["enoki","zk-login","sui","vue"],"repository":{"type":"git","url":"git+https://github.com/belongnet/enoki-vue.git"},"description":"Enoki Flow zk-login sui integration for Vue.js","maintainers":[{"name":"reslear","email":"reslear@gmail.com"},{"name":"belongfoundation","email":"join@belong.net"}],"readme":"# @belongnet/enoki-vue\n\n[![Version](https://img.shields.io/npm/v/@belongnet/enoki-vue)](https://www.npmjs.com/@belongnet/enoki-vue)\n[![Downloads](https://img.shields.io/npm/dt/@belongnet/enoki-vue)](https://www.npmjs.com/@belongnet/enoki-vue)\n[![install size](https://packagephobia.com/badge?p=@belongnet/enoki-vue)](https://packagephobia.com/result?p=@belongnet/enoki-vue)\n![npm bundle size](https://img.shields.io/bundlephobia/min/@belongnet/enoki-vue)\n\n[publint](https://publint.dev/@belongnet/enoki-vue) |\n[arethetypeswrong](https://arethetypeswrong.github.io/?p=@belongnet/enoki-vue)\n\n[Enoki](https://docs.enoki.mystenlabs.com/) (zkLogin Sui) use hooks Vue 3, based and on [Enoki TypeScript SDK](https://docs.enoki.mystenlabs.com/ts-sdk) and inspired React integration.\n\n## Installation\n\n1. Install dependencies:\n\n```bash\npnpm add @belongnet/enoki-vue @mysten/enoki\n```\n\n2. Get your API key from [Enoki Portal](https://portal.enoki.mystenlabs.com/) and write direct to config or set env `VITE_ENOKI_API_KEY`.\n\n3. Integrate plugin with your Vue App:\n\n```ts\n// src/main.ts\nimport { useEnokiFlow } from '@belongnet/enoki-vue'\n\napp.use(EnokiPlugin, {\n  config: {\n    apiKey: import.meta.env.VITE_ENOKI_API_KEY,\n  },\n})\n```\n\n4. Hooks are ready to use in your components or composables:\n\n```ts\nimport { useEnokiFlow } from '@belongnet/enoki-vue'\nconst enokiFlow = useEnokiFlow()\n\n// https://docs.enoki.mystenlabs.com/ts-sdk/examples\nfunction handleSignIn() {\n  enokiFlow\n    .createAuthorizationURL({\n      // ...\n    })\n    .then((url) => {\n      window.location.href = url\n    })\n}\n```\n\nSee [official documentation](https://docs.enoki.mystenlabs.com) for more details, for complex example see [playground](./playground) folder.\n\nEnjoy!\n\n## Advanced Usage\n\n```ts\nimport {\n  useZkLogin,\n  useZkLoginSession,\n  useAuthCallback,\n  useEnokiFlow,\n} from '@belongnet/enoki-vue'\n```\n\n## Related\n\n- https://github.com/MystenLabs/sui/tree/main/sdk/enoki\n\n## License\n\nThis project is licensed under the terms of the [MIT license](LICENSE).\n","readmeFilename":"README.md"}