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.
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
55Compare
Works with
Packages commonly used together with ndk: ones it builds on, ones built on it, and its own family.
- cryptondk depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- webndk depends on itLightweight bindings for browser APIs via JS interop
- hooksndk depends on itDart API for the JSON-based protocol for package build and link hooks.
- ffindk depends on itUtilities for working with Foreign Function Interface (FFI) code in Dart.
- web_socket_channelndk depends on itCross‑platform WebSocket channel wrapper for Dart
- convertndk depends on itEncoders and decoders for converting between different data representations.
- equatablendk depends on itProvides value‑based equality for Dart objects without manual == and hashCode.
- rxdartndk depends on itImplementation of the ReactiveX API for asynchronous programming leveraging native Dart Streams.