{"id":15515854,"url":"https://github.com/chiuzon/svelteweb3","last_synced_at":"2025-09-03T13:40:24.881Z","repository":{"id":45220962,"uuid":"425627910","full_name":"chiuzon/svelteWeb3","owner":"chiuzon","description":"A simple, dependency minimized package for building modern dApps with Svelte","archived":false,"fork":false,"pushed_at":"2022-01-17T20:11:06.000Z","size":309,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-27T15:03:09.934Z","etag":null,"topics":["dapps","ethereum","react","svelte","sveltejs","web3"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chiuzon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-07T22:09:56.000Z","updated_at":"2022-02-23T12:48:17.000Z","dependencies_parsed_at":"2022-07-19T00:32:12.485Z","dependency_job_id":null,"html_url":"https://github.com/chiuzon/svelteWeb3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chiuzon/svelteWeb3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiuzon%2FsvelteWeb3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiuzon%2FsvelteWeb3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiuzon%2FsvelteWeb3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiuzon%2FsvelteWeb3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chiuzon","download_url":"https://codeload.github.com/chiuzon/svelteWeb3/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chiuzon%2FsvelteWeb3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273453432,"owners_count":25108470,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dapps","ethereum","react","svelte","sveltejs","web3"],"created_at":"2024-10-02T10:04:36.498Z","updated_at":"2025-09-03T13:40:24.857Z","avatar_url":"https://github.com/chiuzon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `svelteWeb3`\n\nA simple, dependency minimized package for building modern dApps with Svelte\n\n## ⚠️ Warning 0.3.0\nAfter 0.3.0 version we don't do any polyfills for the `web3-react` connectors, the `injected-connector` works without any polyfills but packages like `walletconnect-connector` might require `buffer` polyfill.\\\n\nFor some connectors you might be required to disable `ssr`\n\n## Projects using `svelteWeb3`\n\n`Open a PR to add your project to the list!`\n\n\n## Installation\n\n`pnpm install @chiuzon/svelteweb3`\n\n## Usage\n\n```js\n//store.js\nimport { createWeb3Store } from '@chiuzon/svelteweb3'\n\n//You can have any number of Web3Store\nexport const web3Store = createWeb3Store((provider) =\u003e {\n  return new ethers.providers.Web3Provider(provider)\n})\n```\n\n```svelte\n//index.svelte\n\u003cscript\u003e\n  import { web3Store } from './store.js'\n  import { InjectedConnector } from '@web3-react/injected-connector'\n\n  const injectedConnector = new InjectedConnector({supportedChainIds: [1]})\n\n  const {account, activate} = web3Store\n\n  async function onConnectHandle() {\n    await activate(injectedConnector, (error) =\u003e {\n      console.error(error)\n    })\n  }\n\u003c/script\u003e\n\nAccount Address: {$account}\n\n\u003cbutton on:click={() =\u003e {\n  onConnectHandle()\n}}\u003eConnect\u003c/button\u003e\n```\n\n## Local Development\n\n- Clone repo\\\n`https://github.com/chiuzon/svelteWeb3`\n\n- Install dependencies\\\n`pnpm install`\n\n- Build and watch for changes\\\n`pnpm dev`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchiuzon%2Fsvelteweb3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchiuzon%2Fsvelteweb3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchiuzon%2Fsvelteweb3/lists"}