https://github.com/builders-of-stuff/svelte-sui-wallet-adapter
Sui wallet adapter for svelte & sveltekit
https://github.com/builders-of-stuff/svelte-sui-wallet-adapter
adapter blockchain sui svelte wallet
Last synced: 5 months ago
JSON representation
Sui wallet adapter for svelte & sveltekit
- Host: GitHub
- URL: https://github.com/builders-of-stuff/svelte-sui-wallet-adapter
- Owner: builders-of-stuff
- License: mit
- Created: 2024-01-04T23:22:22.000Z (almost 2 years ago)
- Default Branch: sun
- Last Pushed: 2025-04-29T11:33:26.000Z (5 months ago)
- Last Synced: 2025-04-29T12:49:18.310Z (5 months ago)
- Topics: adapter, blockchain, sui, svelte, wallet
- Language: TypeScript
- Homepage:
- Size: 754 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Svelte Sui Wallet Adapter
A Sui wallet adapter for use with sveltekit and svelte 5.
Requires `tailwindcss`
## Getting started
```
npm install @builders-of-stuff/svelte-sui-wallet-adapter
npx @svelte-add/tailwindcss@latest
npm install bits-ui
npm install svelte-radix
npx shadcn-svelte@latest init
``````
// tailwind.css.tsconst config = {
...
content: [
'./src/**/*.{html,js,svelte,ts}',
'./node_modules/@builders-of-stuff/svelte-sui-wallet-adapter/**/*.{html,js,svelte,ts}'
],
...
}
``````
// +page.svelteimport { ConnectButton, walletAdapter } from '@builders-of-stuff/svelte-sui-wallet-adapter';
```
## Current known issues
- No local storage persistance
- Switching wallets seems broken (must manually disconnect from app within wallet before connecting another account with same wallet — wallet thing?)
- Client-side only, probably doesn't work with ssr## Developing
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
```bash
npm run dev
```Everything inside `src/lib` is part of the library, everything inside `src/routes` can be used as a showcase or preview app.