{"id":15162102,"url":"https://github.com/onlyf0ur/solana-svelte","last_synced_at":"2025-09-01T08:47:39.210Z","repository":{"id":253665105,"uuid":"844156434","full_name":"OnlyF0uR/solana-svelte","owner":"OnlyF0uR","description":"Solana wallet adapter library for Svelte 5.","archived":false,"fork":false,"pushed_at":"2024-09-10T18:20:35.000Z","size":133,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-21T15:35:11.566Z","etag":null,"topics":["library","solana","svelte","sveltekit"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/solana-svelte","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OnlyF0uR.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-18T14:56:35.000Z","updated_at":"2024-11-22T05:37:59.000Z","dependencies_parsed_at":"2024-09-02T17:10:51.617Z","dependency_job_id":"4af515ed-8dd3-4f8a-b4e1-3a28890073f7","html_url":"https://github.com/OnlyF0uR/solana-svelte","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"60cbbc0b4a0ae808e20b49da898e591de3d4798e"},"previous_names":["onlyf0ur/solana-svelte"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnlyF0uR%2Fsolana-svelte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnlyF0uR%2Fsolana-svelte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnlyF0uR%2Fsolana-svelte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnlyF0uR%2Fsolana-svelte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OnlyF0uR","download_url":"https://codeload.github.com/OnlyF0uR/solana-svelte/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238760583,"owners_count":19526025,"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","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":["library","solana","svelte","sveltekit"],"created_at":"2024-09-27T01:05:47.382Z","updated_at":"2025-02-14T01:22:38.377Z","avatar_url":"https://github.com/OnlyF0uR.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# solana-svelte\n\nSolana wallet adapter support for Svelte 5. Works by utilising the [wallet-adapter](https://github.com/anza-xyz/wallet-adapter) library.\n\n## Important information\n\nThis library is the bare basics for how to interact with solana wallets on svelte. It has all the functionalities,\nexpected like other libraries but leaves some implementations up to the user. The library comes with a UI component\nfor choosing a wallet but as a developer you are required to control when this is shown, using your own state. Support for\nbackpack wallet is also added. So this one is retrieved from the solana-svelte library instead of the regular wallet-adapter by anza-xyz. Lastly SignInWithSolana is now also supported. However instead of first returning SolanaSignInOutput, it returns both the signed data and the siganture in order to have the function fallback to a normal sign message if the signIn method is not supported by the wallet.\n\n## Example setup\n\n```svelte\n\u003cscript\u003e\n\timport { clusterApiUrl } from '@solana/web3.js';\n\timport { blockchain } from 'solana-svelte/core';\n\n\t$effect.pre(async () =\u003e {\n\t\tconst {\n\t\t\tPhantomWalletAdapter,\n\t\t\tSolflareWalletAdapter,\n\t\t\tCoinbaseWalletAdapter,\n\t\t\tLedgerWalletAdapter,\n\t\t\tTrezorWalletAdapter,\n\t\t\tKeystoneWalletAdapter,\n\t\t\tTrustWalletAdapter,\n\t\t\tMathWalletAdapter\n\t\t} = await import('@solana/wallet-adapter-wallets');\n\t\tconst { BackpackWalletAdapter } = await import('solana-svelte/wallets');\n\t\tconst network = clusterApiUrl('devnet');\n\n\t\tblockchain.init(network, {\n\t\t\twalletAdapters: [\n\t\t\t\tnew PhantomWalletAdapter(),\n\t\t\t\tnew SolflareWalletAdapter({ network }),\n\t\t\t\tnew CoinbaseWalletAdapter(),\n\t\t\t\tnew BackpackWalletAdapter(),\n\t\t\t\tnew LedgerWalletAdapter(),\n\t\t\t\tnew TrezorWalletAdapter(),\n\t\t\t\tnew KeystoneWalletAdapter(),\n\t\t\t\tnew TrustWalletAdapter(),\n\t\t\t\tnew MathWalletAdapter()\n\t\t\t],\n\t\t\tautoConnect: true\n\t\t});\n\t});\n\u003c/script\u003e\n\n{@render children()}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonlyf0ur%2Fsolana-svelte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonlyf0ur%2Fsolana-svelte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonlyf0ur%2Fsolana-svelte/lists"}