{"_id":"@0x330a/wagmi-svelte5","_rev":"5-c48232e88902f29f34a23f5184368674","name":"@0x330a/wagmi-svelte5","dist-tags":{"latest":"0.2.3"},"versions":{"0.2.0":{"name":"@0x330a/wagmi-svelte5","version":"0.2.0","keywords":["svelte","svelte5","wagmi","web3","typescript"],"author":{"url":"http://labs.kredeum.com/","name":"0x330a, zapaz.eth","email":"zapaz@kredeum.com"},"license":"MIT","_id":"@0x330a/wagmi-svelte5@0.2.0","maintainers":[{"name":"0x330a","email":"0x330a@gmail.com"}],"homepage":"https://github.com/0x330a-public/wagmi-svelte5","dist":{"shasum":"9c13439dd923a8cddf1677f752714f0ce1ee2ec0","tarball":"https://registry.npmjs.org/@0x330a/wagmi-svelte5/-/wagmi-svelte5-0.2.0.tgz","fileCount":61,"integrity":"sha512-hvPJhqkv+uAfuhvgCnSxhsHz+HIyzH2Y/dl1Qz9tW6uazeCIQDHpyEniO+dxaISAnUE1eaYSWPonA7HAnZ3EjQ==","signatures":[{"sig":"MEYCIQD0RJ95TsXhe/sZ5jNRQh/MLhhRJQvLiIHwf+2DZNWrSgIhAM6DZojnDbQlNhOJ3+jrRHzn0142dLDrSr4ypzKLlCKM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":69232},"type":"module","svelte":"./dist/wagmi/index.js","engines":{"node":"^22","pnpm":"^9"},"exports":{".":{"types":"./dist/wagmi/index.d.ts","svelte":"./dist/wagmi/index.js"}},"gitHead":"e7ddac96fe8283ed57049eba7a2ec01e8edc8afd","scripts":{"all":"pnpm run setup && pnpm run format && pnpm run check && pnpm run build && pnpm run test && pnpm run dev","dev":"vite dev","lint":"prettier --check . && eslint .","sync":"NODE_ENV=prod svelte-kit sync","test":"pnpm run test:unit && pnpm run test:e2e","build":"vite build","check":"prettier --check . && eslint . && pnpm run sync && svelte-check --tsconfig ./tsconfig.json","clean":"rm -rf node_modules .pnpm-lock.yaml .svelte-kit dist","setup":"pnpm run clean && pnpm install","start":"vite dev","format":"prettier --write --list-different .","package":"pnpm run sync && svelte-package && publint","preview":"vite preview","test:e2e":"playwright test","test:unit":"vitest run","check:watch":"pnpm run sync && svelte-check --tsconfig ./tsconfig.json --watch","prepublishOnly":"pnpm package"},"_npmUser":{"name":"0x330a","email":"0x330a@gmail.com"},"_npmVersion":"10.9.0","description":"Svelte5 Web3 library based on Wagmi","directories":{},"sideEffects":["**/*.css"],"_nodeVersion":"22.12.0","dependencies":{"svelte":"^5.16.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.12.3","devDependencies":{"viem":"^2.21.57","vite":"^5.4.11","turbo":"^2.3.3","eslint":"^9.17.0","vitest":"^2.1.8","daisyui":"^4.12.23","esm-env":"^1.2.1","globals":"^15.14.0","publint":"^0.2.12","prettier":"^3.4.2","happy-dom":"^16.0.1","typescript":"^5.7.2","@types/node":"^22.10.2","@wagmi/core":"^2.16.3","tailwindcss":"^3.4.17","autoprefixer":"^10.4.20","svelte-check":"^4.1.1","@metamask/sdk":"^0.31.4","@sveltejs/kit":"^2.15.1","@eslint/compat":"^1.2.4","@playwright/test":"^1.49.1","@sveltejs/package":"^2.3.7","@wagmi/connectors":"^5.7.3","svelte-hero-icons":"^5.2.0","typescript-eslint":"^8.18.2","@coinbase/wallet-sdk":"^4.2.4","eslint-plugin-svelte":"^2.46.1","@sveltejs/adapter-auto":"^3.3.1","eslint-config-prettier":"^9.1.0","prettier-plugin-svelte":"^3.3.2","svelte-hot-french-toast":"^1.0.0","@sveltejs/adapter-static":"^3.0.8","prettier-plugin-tailwindcss":"^0.6.9","@sveltejs/vite-plugin-svelte":"^4.0.4","@walletconnect/ethereum-provider":"^2.17.3"},"_npmOperationalInternal":{"tmp":"tmp/wagmi-svelte5_0.2.0_1748525401783_0.5592115408796341","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@0x330a/wagmi-svelte5","version":"0.2.1","keywords":["svelte","svelte5","wagmi","web3","typescript"],"author":{"url":"http://labs.kredeum.com/","name":"0x330a, zapaz.eth","email":"zapaz@kredeum.com"},"license":"MIT","_id":"@0x330a/wagmi-svelte5@0.2.1","maintainers":[{"name":"0x330a","email":"0x330a@gmail.com"}],"homepage":"https://github.com/0x330a-public/wagmi-svelte5","dist":{"shasum":"865c2ec51a0daddb5b61f0d3af468bf5554c7feb","tarball":"https://registry.npmjs.org/@0x330a/wagmi-svelte5/-/wagmi-svelte5-0.2.1.tgz","fileCount":43,"integrity":"sha512-hcHPWdi0t2lkTxbym6DwccQMZ5GpFgt5d3cVy/J9qXTdhhyElhrEa0ypShychY9uFb3wubWFSTf6HwZcXCCinA==","signatures":[{"sig":"MEQCIBQNgzEzOzq1eikjmeXTL9gH1NqVpw3UhhwEtL7OOhLwAiBrQhaWJCto+ZyqcNoYAeZbaWMd4FnZRibY4g/kJrI7tw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":52914},"type":"module","svelte":"./dist/wagmi/index.js","engines":{"node":"^22","pnpm":"^9"},"exports":{".":{"types":"./dist/wagmi/index.d.ts","svelte":"./dist/wagmi/index.js"}},"gitHead":"e7ddac96fe8283ed57049eba7a2ec01e8edc8afd","scripts":{"all":"pnpm run setup && pnpm run format && pnpm run check && pnpm run build && pnpm run test && pnpm run dev","dev":"vite dev","lint":"prettier --check . && eslint .","sync":"NODE_ENV=prod svelte-kit sync","test":"pnpm run test:unit && pnpm run test:e2e","build":"vite build","check":"prettier --check . && eslint . && pnpm run sync && svelte-check --tsconfig ./tsconfig.json","clean":"rm -rf node_modules .pnpm-lock.yaml .svelte-kit dist","setup":"pnpm run clean && pnpm install","start":"vite dev","format":"prettier --write --list-different .","package":"pnpm run sync && svelte-package && publint","preview":"vite preview","test:e2e":"playwright test","test:unit":"vitest run","check:watch":"pnpm run sync && svelte-check --tsconfig ./tsconfig.json --watch","prepublishOnly":"pnpm package"},"_npmUser":{"name":"0x330a","email":"0x330a@gmail.com"},"_npmVersion":"10.9.0","description":"Svelte5 Web3 library based on Wagmi","directories":{},"sideEffects":["**/*.css"],"_nodeVersion":"22.12.0","dependencies":{"svelte":"^5.16.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.12.3","devDependencies":{"viem":"^2.21.57","vite":"^5.4.11","turbo":"^2.3.3","eslint":"^9.17.0","vitest":"^2.1.8","daisyui":"^4.12.23","esm-env":"^1.2.1","globals":"^15.14.0","publint":"^0.2.12","prettier":"^3.4.2","happy-dom":"^16.0.1","typescript":"^5.7.2","@types/node":"^22.10.2","@wagmi/core":"^2.16.3","tailwindcss":"^3.4.17","autoprefixer":"^10.4.20","svelte-check":"^4.1.1","@metamask/sdk":"^0.31.4","@sveltejs/kit":"^2.15.1","@eslint/compat":"^1.2.4","@playwright/test":"^1.49.1","@sveltejs/package":"^2.3.7","@wagmi/connectors":"^5.7.3","svelte-hero-icons":"^5.2.0","typescript-eslint":"^8.18.2","@coinbase/wallet-sdk":"^4.2.4","eslint-plugin-svelte":"^2.46.1","@sveltejs/adapter-auto":"^3.3.1","eslint-config-prettier":"^9.1.0","prettier-plugin-svelte":"^3.3.2","@sveltejs/adapter-static":"^3.0.8","prettier-plugin-tailwindcss":"^0.6.9","@sveltejs/vite-plugin-svelte":"^4.0.4","@walletconnect/ethereum-provider":"^2.17.3"},"_npmOperationalInternal":{"tmp":"tmp/wagmi-svelte5_0.2.1_1748526483366_0.8605068396233819","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@0x330a/wagmi-svelte5","version":"0.2.3","type":"module","description":"Svelte5 Web3 library based on Wagmi","keywords":["svelte","svelte5","wagmi","web3","typescript"],"homepage":"https://github.com/0x330a-public/wagmi-svelte5","license":"MIT","author":{"name":"0x330a, zapaz.eth","email":"zapaz@kredeum.com","url":"http://labs.kredeum.com/"},"exports":{".":{"types":"./dist/wagmi/index.d.ts","svelte":"./dist/wagmi/index.js"}},"svelte":"./dist/wagmi/index.js","sideEffects":["**/*.css"],"packageManager":"pnpm@9.12.3","engines":{"node":"^22","pnpm":"^9"},"scripts":{"all":"pnpm run setup && pnpm run format && pnpm run check && pnpm run build && pnpm run test && pnpm run dev","clean":"rm -rf node_modules .pnpm-lock.yaml .svelte-kit dist","setup":"pnpm run clean && pnpm install","format":"prettier --write --list-different .","check":"prettier --check . && eslint . && pnpm run sync && svelte-check --tsconfig ./tsconfig.json","build":"vite build","test":"pnpm run test:unit && pnpm run test:e2e","dev":"vite dev","start":"vite dev","preview":"vite preview","test:unit":"vitest run","test:e2e":"playwright test","package":"pnpm run sync && svelte-package && publint","sync":"NODE_ENV=prod svelte-kit sync","prepublishOnly":"pnpm package","check:watch":"pnpm run sync && svelte-check --tsconfig ./tsconfig.json --watch","lint":"prettier --check . && eslint ."},"dependencies":{"svelte":"^5.16.0"},"devDependencies":{"@coinbase/wallet-sdk":"^4.2.4","@eslint/compat":"^1.2.4","@metamask/sdk":"^0.31.4","@playwright/test":"^1.49.1","@sveltejs/adapter-auto":"^3.3.1","@sveltejs/adapter-static":"^3.0.8","@sveltejs/kit":"^2.15.1","@sveltejs/package":"^2.3.7","@sveltejs/vite-plugin-svelte":"^4.0.4","@types/node":"^22.10.2","@wagmi/connectors":"^5.7.3","@wagmi/core":"^2.16.3","@walletconnect/ethereum-provider":"^2.17.3","autoprefixer":"^10.4.20","eslint":"^9.17.0","eslint-config-prettier":"^9.1.0","eslint-plugin-svelte":"^2.46.1","esm-env":"^1.2.1","globals":"^15.14.0","happy-dom":"^16.0.1","prettier":"^3.4.2","prettier-plugin-svelte":"^3.3.2","publint":"^0.2.12","svelte-check":"^4.1.1","svelte-hero-icons":"^5.2.0","turbo":"^2.3.3","typescript":"^5.7.2","typescript-eslint":"^8.18.2","viem":"^2.21.57","vite":"^5.4.11","vitest":"^2.1.8"},"_id":"@0x330a/wagmi-svelte5@0.2.3","gitHead":"b41f1f51632a50deb833f6c4538c5600606101b3","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-iEkSad1GyWdeTtpM7no3eOdhIwHpv+UkMMTa3f8oDFaLPnMnqaVDegRvIDe76KaT91wM1SKquYN0/dPxCadnkA==","shasum":"7dbeb6b40e9c8d0ac2701457196ca89bbcde6f93","tarball":"https://registry.npmjs.org/@0x330a/wagmi-svelte5/-/wagmi-svelte5-0.2.3.tgz","fileCount":39,"unpackedSize":48377,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAuc3X5foEBLrwNwuu3cuzw8a1jFy0bPvmbXn10XRf9mAiEA2MnzQVvY6wimBw02Eu+bNYP485xA+X2Kz901GUzjwXI="}]},"_npmUser":{"name":"0x330a","email":"0x330a@gmail.com"},"directories":{},"maintainers":[{"name":"0x330a","email":"0x330a@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wagmi-svelte5_0.2.3_1748527964811_0.08860209006799558"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-29T13:30:01.655Z","modified":"2025-05-29T14:12:45.176Z","0.2.0":"2025-05-29T13:30:01.977Z","0.2.1":"2025-05-29T13:48:03.524Z","0.2.2":"2025-05-29T14:08:37.829Z","0.2.3":"2025-05-29T14:12:45.011Z"},"author":{"name":"0x330a, zapaz.eth","email":"zapaz@kredeum.com","url":"http://labs.kredeum.com/"},"license":"MIT","homepage":"https://github.com/0x330a-public/wagmi-svelte5","keywords":["svelte","svelte5","wagmi","web3","typescript"],"description":"Svelte5 Web3 library based on Wagmi","maintainers":[{"name":"0x330a","email":"0x330a@gmail.com"}],"readme":"# @kredeum/wagmi-svelte5\n\nA Svelte 5 Web3 library based on Wagmi, providing seamless integration of Web3 functionality into your Svelte applications.\n\n## ✨ Features\n\n- 🔌 Built for Svelte 5 with full TypeScript support\n- 🌐 Web3 Integration using Wagmi core functionality\n- 🔒 Secure Wallet Connection Management\n- ⛓️ Multi-chain Support with Auto-detection\n- 🎣 Reactive Web3 Hooks for Real-time Updates\n- 🔄 Auto-refresh on Network Changes\n- 📦 Simple and Intuitive API\n- 🛠️ Type-safe Contract Interactions\n\n## 📁 Repository Structure\n\nThis repository contains two main parts:\n\n- 📦 The Svelte5 package code in `src/lib/wagmi`\n- 🎮 A SvelteKit demo app with usage examples in `src/routes`\n\n## 📦 Svelte5 Package\n\n### 💻 Installation\n\nAdd this package to your Svelte5 project:\n\n```bash\nnpm install @kredeum/wagmi-svelte5\n# or\npnpm install @kredeum/wagmi-svelte5\n# or\nyarn add @kredeum/wagmi-svelte5\n```\n\n### 🚀 Quick Start\n\n#### Simple Example\n\n```svelte\n<script lang=\"ts\">\n  import { newWagmi } from \"@0x330a/wagmi-svelte5\";\n  import { Counter } from \"$lib/examples/Counter.svelte\";\n\n  newWagmi();\n  const counter = new Counter();\n</script>\n\n{counter.number}² = {counter.square(counter.number)}\n```\n\n#### Using this Counter class Helper\n\n```typescript\nimport { SmartContract } from \"$lib/wagmi\";\n\nexport class Counter extends SmartContract {\n  get number() {\n    return this.call(\"number\") as bigint;\n  }\n  square(num: number | bigint) {\n    return this.call(\"square\", [num]) as bigint;\n  }\n  constructor() {\n    super(\"Counter\");\n  }\n}\n```\n\n#### Same example without Helper\n\n```svelte\n<script lang=\"ts\">\n  import { newWagmi, SmartContract } from \"@0x330a/wagmi-svelte5\";\n\n  newWagmi();\n  const contract = new SmartContract(\"Counter\");\n  const num = $derived(contract.call(\"number\"));\n  const square = $derived(contract.call(\"square\", [num]));\n</script>\n\n{num}² = {square}\n```\n\n#### 📄 Smart Contract Source\n\n```solidity\n// Counter.sol\ncontract Counter is ICounter {\n    uint256 public number;\n\n    function square(uint256 num) public pure override(ICounter) returns (uint256) {\n        return num ** 2;\n    }\n    ...\n}\n```\n\nFull Counter.sol code deployed on Base Sepolia testnet can be Viewed here:\n🔍 [on BaseScan](https://sepolia.basescan.org/address/0xb1eC295A306436560C7A27616f51B5d76D6aDCa8#code)\n\n## 🎮 SvelteKit Demo and Examples\n\nThe demo app in `src/routes` showcases various package features and usage patterns.\n\n### 🛠️ Requirements\n\nYour local machine needs:\n\n- 📦 [Node.js](https://nodejs.org/) 20+\n- 📦 [Pnpm](https://pnpm.io/) 9+\n\nOptional but recommended:\n\n- 🚀 [Turborepo](https://turbo.build/repo) 1.8+\n\n### ⚡ Quick Setup\n\nGet started with the examples:\n\n```bash\n# Clone the repository\ngit clone https://github.com/kredeum/wagmi-svelte5.git\ncd wagmi-svelte5\n\n# Install dependencies\npnpm install\n\n# Run the demo app\nturbo start\n# or without Turborepo\npnpx turbo start\n```\n\n🌐 Your browser will open to http://localhost:5173 showing the `Tests` page\n\n## 🤝 Contributing\n\nWe welcome contributions! Feel free to:\n\n- 🐛 Report issues\n- 💡 Suggest features\n- 🔧 Submit pull requests\n\n## 📄 License\n\nMIT License - see the [LICENSE](LICENSE) file for details.\n\n## 👨‍💻 Author\n\nzapaz.eth <zapaz@kredeum.com> (http://labs.kredeum.com/)\n","readmeFilename":"README.md"}