The pieces / weirdnet-presence

weirdnet-presencenew

A presence directory: signed, short-lived presence records, a paged online list, abuse controls and a client, served over weirdnet-service. Records live in memory only.

v0.1.1 GitHub crates.io docs.rs weirdnet-presence = "0.1.1"

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

  • Directory and serve: run a directory on a node, with abuse controls (signature, ban list, rate limit).
  • open_session, publish and list: the client, with Signed::sign making a record.

Usage

[dependencies]
weirdnet-presence = "0.1.1"

Where it fits

Version 0.1.1 is on crates.io (docs.rs, repository).