#messages #notifications #secret #subscribe #security #date #persistent

sos-system-messages

System message notifications for the Save Our Secrets SDK

1 unstable release

new 0.16.1 Feb 6, 2025

#666 in Data structures

Download history 125/week @ 2025-02-03

125 downloads per month
Used in sos-filesystem

MIT/Apache

15KB
334 lines

System messages are persistent user notifications.

They can be used to surface information such as a failed synchronization, software update, due date for backup, automated security report or other information about an account.

System messages use keys so that we don't write lots of failed synchronization messages, instead the last failure would overwrite the previous messages. To avoid this behavior use a unique key such as a UUID.

Use SystemMessages::subscribe to listen for changes to the underlying collection. This allows an interface to show the number of unread system messages.

Dependencies

~4–10MB
~105K SLoC