Build a Social Platform
Communities, feeds, messaging, and profiles with the SDK
Set up communities, content feeds, messaging, and user profiles with the SDK.
Prerequisites
- Node.js >= 18
- A Recursiv API key with scopes:
posts:read,posts:write,communities:read,communities:write,chat:read,chat:write,tags:read,tags:write
Install
Set up environment
The code
What just happened
You built the core loop of a social platform:
- A community with public membership
- Content with markdown, tags, and reactions
- Direct messaging and group chat
- Social graph (follow/unfollow)
- Content search and tag filtering
Next steps
- Add auth with
r.auth.signUp()/r.auth.signIn() - Update posts with
r.posts.update(id, { content, tag_ids }) - Manage unread counts with
r.chat.unreadCount(conversationId) - Build a leaderboard with
r.profiles.leaderboard()