dart_ndk 0.1.0-dev8
dart_ndk: ^0.1.0-dev8 copied to clipboard
Dart Nostr Development Kit
Dart Nostr Development Kit
Features #
Gossip/outbox model of relay discovery and connectivity #
The simplest characterization of the gossip model is just this: reading the posts of people you follow from the relays that they wrote them to.

more details on https://mikedilger.com/gossip-model/
NIPs #
- ✅ Event Builders / WebSocket Subscriptions (NIP-01)
- ✅ User Profiles (edit/follow/unfollow - NIP-02)
- ✅ Private Messages (NIP-04)
- ✅ Nostr Address (NIP-05)
- ✅ Event Deletion (NIP-09)
- ✅ Relay Info (NIP-11)
- ✅ Reactions (NIP-25)
- ✅ Lists (NIP-51)
- ✅ Relay List Metadata (NIP-65)
- ❌ Bech Encoding support (NIP-19)
- ❌ Wallet Connect API (NIP-47)
- ❌ Zaps (private, public, anon, non-zap) (NIP-57)
- ❌ Badges (NIP-58)
Getting started #
Add the following to your pubspec.yaml
file:
dependencies:
dart_nostr: any
Usage #
RelayManager manager = RelayManager();
await manager.connect();
NostrRequest request = await manager.query(
Filter(kinds: [Nip01Event.TEXT_NODE_KIND], authors: [pubKey]));
await for (final event in request.stream) {
print(event);
}