nip_append_only_list 0.1.1 copy "nip_append_only_list: ^0.1.1" to clipboard
nip_append_only_list: ^0.1.1 copied to clipboard

Local-first Dart implementation of the Nostr append-only lists NIP (kinds 1990/1991) on top of NDK.

0.1.1 #

  • Remove subscription name.

0.1.0 #

Initial release.

  • Pure OR-Set CRDT core: AppendOnlyListEntry, EntryStat, AppendOnlyListEvent, AppendOnlyListState (parse and fold kinds 1990/1991).
  • Event builder/parser with NIP-44 self-encryption for private entries.
  • Filter helpers (listFilter, deletionFilter) for relay queries.
  • Sembast-backed cleartext ProjectionStore for offline reads that survive restarts.
  • AppendOnlyLists usecase wiring an injected Ndk, OfflineBroadcast queue, and ProjectionStore: getList, watchList, add, remove, consolidate, decryptPending.
  • consolidate splits both the fresh Add(s) and the NIP-09 deletion(s) into chunks that fit under maxEventBytes (default 32 KB) so relays don't reject oversized events on lists with many entries or long history.
  • NIP-09 deletions emitted by other devices of the same author are honored on incoming sync (tombstone set + cache trim + re-fold).
  • Persistent decryption cache (third sembast store): cleartext NIP-44 payloads are written to disk keyed by event id, so re-folding works without the signer once a private event has been decoded once.
1
likes
160
points
107
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Local-first Dart implementation of the Nostr append-only lists NIP (kinds 1990/1991) on top of NDK.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

broadcast_queue_shim_for_ndk, ndk, sembast

More

Packages that depend on nip_append_only_list