dart_ndk 0.1.0-dev8 copy "dart_ndk: ^0.1.0-dev8" to clipboard
dart_ndk: ^0.1.0-dev8 copied to clipboard

PlatformAndroid

Dart Nostr Development Kit

Build Status Coverage Pub License

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 #

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);
        }