Skip to content
pubscout

ndk

0.10.1, released 7 weeks ago by an unverified publisher

Dart library for building Nostr clients with relay discovery, caching and signing support.

WASM-readyUnverified publisher
$ flutter pub add ndk
Source repository

What it does

Provides high‑level Nostr use‑cases such as metadata, contact lists, NIP‑51 lists, encrypted messaging and Lightning payments while still allowing low‑level queries. It handles relay selection, caching, event verification and offers pluggable components for storage and signing.

AI-written summary of version 0.10.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to interact with the Nostr protocol in a Flutter/Dart app
  • You require automatic relay discovery, caching and multi‑signer support
  • You want a performant, extensible client with optional Rust‑based verification

Skip it when

  • You only need simple HTTP/WebSocket calls without Nostr logic
  • You prefer a minimal dependency footprint
  • You are targeting platforms that cannot use FFI

Strengths

  • Comprehensive Nostr feature set
  • Pluggable architecture for cache, verifier and signer
  • Performance optimisations with Rust verifier and isolate pool
  • Supports multiple databases (in‑memory, ObjectBox, Sembast)

Weaknesses

  • Large set of transitive dependencies
  • Requires native toolchain for optional Rust verifier (FFI)
  • Complex API may have a learning curve

Setup

Kind
FFI (native library)
Effort
Medium
Code generation
No
Direct dependencies
24

Optional Rust verifier needs native_toolchain_rust; choose a storage backend (in‑memory, ObjectBox, Sembast); no special permissions required

Alternatives

Packages that do the same job and could replace ndk.

  • bdk_flutter

    Flutter library for the Bitcoin Development Kit (BDK) to build Bitcoin applications

Works with

Packages commonly used together with ndk: ones it builds on, ones built on it, and its own family.