Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -98,4 +100,4 @@ which provides some components to make it easier to build nostr apps with Svelte

# Authors

* [@pablof7z](https://nostr.com/npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft)
* [@pablof7z](https://nostr.com/npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft)