Supa Hub provides three types of feeds, each with different sorting and filtering logic.
Feed Types
Global Feed
Endpoint:GET /api/hub/global-postsShows all visible posts across all spaces, sorted by creation date (newest first). This is the default feed for unauthenticated users or users who haven't joined any spaces.
For You Feed
Endpoint:GET /api/hub/for-you-postsA personalized feed that uses the hot-ranking algorithm to surface engaging content. Prioritizes posts from spaces the user is a member of.
Space Feed
Endpoint:GET /api/hub/space-postsPosts within a specific space. Pinned posts appear first, followed by other posts sorted by creation date.
RSS Feed
Endpoint:GET /api/feedStandard RSS/Atom feed of recent posts for feed readers.
Hot-Ranking Algorithm
The "For You" feed uses a time-decay scoring algorithm defined in packages/feed. The score for each post is calculated as: