What it is
A node signs a record that says who it is and whether it is online, away or busy, and refreshes it before it expires (60 seconds, refreshed every 30). Anyone can page the list of who is online for an app. The directory checks every publish and holds nothing on disk; a node that goes quiet drops off when its record expires. Readers check every signature themselves, so a directory can hide a record but cannot forge one.
A record has no status line, project or last-seen time: those go node to node between trusted contacts (weirdnet-contacts) and never reach a directory.
Key types and modules
Directoryandserve: run a directory on a node, with abuse controls (signature, ban list, rate limit).open_session,publishandlist: the client, withSigned::signmaking a record.
Usage
[dependencies]
weirdnet-presence = "0.1.1"Where it fits
- Builds on weirdnet-service.
- Used by weirdnet-relay.
- License: BSD-3-Clause.