Skip to content

Affitor/content-pipeline

Repository files navigation

Affitor

Content Pipeline

Research trending topics, select sources, and generate LinkedIn posts with branded infographics - powered by AI.

License Stars


Features

  • Research - Search the web for trending articles using Brave Search API. Filter by News, LinkedIn, YouTube, or Blogs.
  • Select - Browse results with auto-tags (Funding, AI, SaaS, Tools, Trends, Startup, Growth) and pick your sources.
  • Format - Choose content format (Toplist, POV, Case Study, How-to), tone, length, language (EN/VN), and output count.
  • Write - Generate LinkedIn posts with Claude Sonnet 4, streamed in real-time. All selected articles used as context.
  • Image - Create branded infographics rendered server-side with Satori.

How It Works

Topic
  → Brave Search (Web + News, sorted by freshness)
  → Select articles as source material
  → Configure: format, tone, length, language, output count
  → Claude writes posts (streaming, each with a different angle)
  → Satori renders branded infographics (1080x1350 LinkedIn optimal)

Select 7 articles but only output 2 posts? Each post uses all 7 as context but focuses on a different primary source - producing unique angles with richer data.

Running Locally

git clone https://github.com/Affitor/content-pipeline.git
cd content-pipeline
npm install
cp .env.example .env.local

Add your API keys to .env.local:

# Get yours at https://console.anthropic.com/
ANTHROPIC_API_KEY=

# Get yours at https://brave.com/search/api/
BRAVE_SEARCH_API_KEY=

Then start the dev server:

npm run dev

Open http://localhost:3000.

One-Click Deploy

Deploy your own instance to Vercel:

Deploy with Vercel

Tech Stack

Technology Purpose
Next.js 16 App Router, API Routes, Edge Runtime
Anthropic Claude Content generation (Sonnet 4)
Brave Search API Web + News search
Satori Server-side image generation
Tailwind CSS v4 Styling
TypeScript Type safety

Contributing

Contributions are welcome. See CONTRIBUTING.md for guidelines.

License

MIT - see LICENSE for details.


Built by Affitor

About

AI-powered content pipeline: research, write, and generate LinkedIn posts with branded infographics.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages