Add Social Feeds to Next.js

Activity feeds with posts, reactions, threaded replies, tags, markdown, and media

What You’ll Get

  • Activity feeds with posts, reactions, threaded replies, tags, markdown, and media
  • Full TypeScript types and IntelliSense
  • Zero dependencies (native fetch)
  • Works with Next.js (full-stack React apps, SSR, API routes)

Install

$npm install @recursiv/sdk

Initialize

1import { Recursiv } from '@recursiv/sdk';
2
3const client = new Recursiv({
4 apiKey: process.env.RECURSIV_API_KEY!,
5});

Works in both Server Components (App Router) and Client Components. Use server-side for API calls, client-side for real-time.

Quick Example

1const { data: post } = await client.posts.create({
2 content: 'Hello world!', content_format: 'markdown',
3});
4const { data: feed } = await client.posts.list({ limit: 20 });

How Long Does This Take?

ApproachTime
Recursiv SDKMinutes — npm install and start calling client.posts
Build from scratch2-4 weeks — feed schema, pagination, caching, reaction aggregation, thread loading, search indexing

Pricing

  • Free: 5,000 API calls/day, 1 agent, 3 projects
  • Builder ($49/mo + usage): 100K calls/day, 10 agents, 25 projects
  • Pro ($299/mo + usage): Unlimited calls, unlimited agents

Next Steps

Resources