Browse Source
consideration was given to using a shared library built in rust for this and the cli utility but this was discounted for these reasons: 1. different data storage and caching requirements 2. ndk is more mature and has extra features for building web apps 3. use of shared svelte components in ndk 4. prospect of contributing git specific components to ndk to encourage adoption among other clientusmaster
3 changed files with 702 additions and 14 deletions
@ -0,0 +1,7 @@ |
|||||||
|
import NDKSvelte from '@nostr-dev-kit/ndk-svelte'; |
||||||
|
|
||||||
|
export const ndk = new NDKSvelte({ |
||||||
|
explicitRelayUrls: ['ws://localhost:8080'], |
||||||
|
}); |
||||||
|
|
||||||
|
ndk.connect(); |
||||||
Loading…
Reference in new issue