NIP-29: Relay-based Groups
NIP-29 defines relay-based groups, where a relay manages group membership, permissions, and message visibility.
Group Access Tags
- private: Only members can read group messages
- closed: Join requests are ignored (invitation-only)
- hidden: Relay hides group metadata from non-members, making the group undiscoverable
- restricted: Only members can write messages to the group
These tags can be combined. A group can be restricted (write-limited) but not hidden (still discoverable). Omitting a tag enables the opposite behavior: no private means anyone can read, no closed means join requests are honored.
How It Works
The relay is the authority for group operations:
- Maintains member list and roles
- Enforces write permissions
- Controls what non-members can see
Clients send group messages to the relay, which validates membership before accepting them.
Privacy Considerations
hiddengroups provide the strongest discoverability protection: they don’t appear in searches or relay listingsprivategroups hide message content from non-membersclosedgroups simply ignore join requests; combine withprivateorhiddenfor stronger access controlrestrictedcontrols who can write, independent of read access
Primary sources:
Mentioned in: