nostr_mail 1.3.0 copy "nostr_mail: ^1.3.0" to clipboard
nostr_mail: ^1.3.0 copied to clipboard

A Dart SDK for sending and receiving emails over the Nostr protocol using NIP-59 gift-wrapped messages.

1.3.0 #

  • New: NIP-32 labels system (addLabel, removeLabel, moveToTrash, markAsRead, star, etc.)
  • New: Unified watch() stream with MailEvent sealed class (EmailReceived, EmailDeleted, LabelAdded, LabelRemoved)
  • New: Convenience stream getters (onEmail, onTrash, onRead, onStarred, onLabel)
  • New: getInboxEmails() and getSentEmails() with pagination and includeTrashed option
  • New: htmlBody getter on Email (parsed on demand from rawContent)
  • New: stopWatching() method to close stream and cleanup resources
  • Improvement: Local-first labels (save and notify immediately, broadcast in background)
  • Improvement: Shared broadcast stream for watch() (multiple listeners share same subscriptions)

1.2.2 #

  • Use the new ndk version

1.2.1 #

  • Use the new ndk version

1.2.0 #

  • Performance fix: watchInbox() now uses limit: 0 to only receive new real-time events, avoiding re-processing of historical gift wraps at startup
  • New: sync() now accepts optional limit, since, and until parameters for incremental sync

1.1.1 #

  • Security fix: Added recipientPubkey field to Email model to properly filter emails by recipient
  • Performance fix: Mark all gift wraps as processed after decryption to avoid re-decrypting DMs and other non-email content on each sync

1.1.0 #

  • RFC 2822 compatibility: addresses without domain now get @nostr suffix
  • Standardized on npub format for all Nostr addresses (hex pubkeys auto-converted)
  • Fixed: "To" field was empty when sending to npub addresses

1.0.0 #

  • Initial version.
1
likes
160
points
328
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart SDK for sending and receiving emails over the Nostr protocol using NIP-59 gift-wrapped messages.

Repository (GitHub)
View/report issues

Topics

#nostr #email #encryption #messaging #decentralized

Documentation

API reference

License

MIT (license)

Dependencies

enough_mail, http, ndk, sembast

More

Packages that depend on nostr_mail