In This Section
Provider & Hook
Load a space into context and access its state and operations
Membership
Join/leave spaces, approval workflows, role management
Moderation
Approve or remove content, handle member and content reports
Rules
Create and display community rules for members
Digest & Newsletter
Send periodic content summaries to a webhook endpoint
Space Lists
Browse and paginate spaces with filtering and sorting
Core Architecture
Spaces follow the provider + hook pattern used throughout Replyke. Wrap your space UI with aSpaceProvider and access everything via useSpace.
Permission Model
Each space has two independent permission settings:readingPermission—"anyone"or"members". Controls who can see content.postingPermission—"anyone","members", or"admins". Controls who can post.
useSpace exposes their resolved permissions (canPost, canRead, canModerate, isAdmin, isModerator).
Hierarchy
Spaces can be nested up to 10 levels deep. A child space is created by passing aparentSpaceId to useCreateSpace. Only admins of the parent space can create child spaces. Parent admins and moderators are automatically cascaded into new child spaces with their existing roles.

