diff --git a/README.md b/README.md index cbfa8b5..eb1ef69 100644 --- a/README.md +++ b/README.md @@ -16,11 +16,13 @@ when events arrive. Events in the store will appear in a set ordered by `created_at`. ```typescript +import { writable } from 'svelte/store'; import NDKSvelte from '@nostr-dev-kit/ndk-svelte'; -const ndk = new NDKSvelte({ +const _ndk = new NDKSvelte({ explicitRelayUrls: ['wss://relay.f7z.io'], }); +export const ndk = writable(_ndk); ``` ```typescript @@ -98,4 +100,4 @@ which provides some components to make it easier to build nostr apps with Svelte # Authors -* [@pablof7z](https://nostr.com/npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft) \ No newline at end of file +* [@pablof7z](https://nostr.com/npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft)