# How to Vibecode ReelFarm — Can You Do It Yourself?

> AI TikTok Automation & Video Marketing

- Site: https://reel.farm
- Category: Marketing & Automation SaaS
- Verdict: **Solid side project** (68/100 vibecodeable)
- Estimated effort: 2-3 weeks of focused evening development

## Verdict

Build a personal-use subset of this automation engine if you want to bypass subscription costs, but expect significant friction wrestling with TikTok OAuth scopes and asynchronous video rendering workers.

ReelFarm is a focused, high-utility automation wrapper combining LLM text generation, image asset composition, and cron-driven social media publishing. While a solo developer can prompt out the dashboard, database schema, and REST endpoints within a week using modern tools, the real engineering roadblocks will appear during TikTok API integration. Handling token refreshes, mapping DIRECT_POST versus MEDIA_UPLOAD payloads, avoiding rate limit blocks, and orchestrating ffmpeg/canvas video rendering pipelines without queue timeouts require meticulous backend debugging.

### What you can't replicate

- The exact creator trust and word-of-mouth ecosystem within the TikTok Shop growth community
- Pre-vetted TikTok developer app approvals for high-volume direct publishing endpoints

## What it does

An AI-powered automation platform designed for creating and scaling faceless TikTok marketing pages and TikTok Shop traffic loops through automated slideshow generation and direct publishing.

### Core features

- AI Slideshow Generator from natural-language prompts
- Manual multi-slide editor with customizable image layouts, fonts, overlays, and text styles
- Asynchronous rendering pipeline generating image carousels and exported MP4 video variants
- TikTok OAuth authentication and direct publishing / draft upload management
- Cron-based recurring scheduling for automated content production
- REST API (v1) with endpoints for programmatic slideshow generation, runs, and schedule management
- Multi-account and team collaboration management
- Analytics tracking for views, likes, shares, and engagement

## The business

### Pricing

- Growth: $49/mo
- Scale: $95/mo
- Enterprise: $195/mo

Founded 2025.
Team size: Solo / Small indie team.

## The hard parts

- TikTok Content Posting API compliance, strict rate limits, and fallback logic between direct posts and drafts
- Compute-heavy asynchronous video and image composition rendering pipeline using custom fonts and text overlays
- Reliable distributed cron scheduler infrastructure to execute time-zone-aware automated posts
- Automated image sourcing, proxy routing, and asset caching from external visual boards

## How to vibecode ReelFarm

### Prerequisites

- Node.js (free): Runtime environment for backend services and full-stack framework
- GitHub (free): Source control and automated deployment trigger
- TikTok Developer Account (free): Required to get client keys for OAuth and the Content Posting API

### Recommended AI tools

- Claude Code: Primary agentic CLI tool to scaffold and iterate across the full-stack codebase
- Cursor: Ideal editor for reviewing code diffs, adjusting UI components, and manual touch-ups

### Stack

- Frontend: Next.js (App Router, Tailwind CSS, shadcn/ui)
- Backend: Next.js Server Actions / API Routes, Node.js worker queue
- Database: Supabase (PostgreSQL + pgvector / relational tables)
- Auth: Supabase Auth (Google OAuth + Email)
- Payments: Skipped (Personal-use clone)
- Other: Cloudflare R2 for asset and rendered video storage, BullMQ + Redis for cron scheduling and background render queues, Canvas / FFmpeg for slideshow-to-video compilation

### Hosting

- Supabase (PostgreSQL database, authentication, and vector storage): $0/mo (Free Tier)
- Cloudflare (Frontend deployment (Pages/Workers) and R2 media bucket storage): $0-5/mo

### Build guide

1. **Project Scaffolding & Database Schema** — Initialize a Next.js project with Tailwind CSS, configure Supabase client bindings, and establish database migrations for users, connected TikTok accounts, slideshow drafts, and automations.

```
Initialize a new Next.js project with TypeScript, Tailwind CSS, and standard directory structure. Set up Supabase authentication and client integration. Create PostgreSQL migration files in Supabase for the following tables: `users` (id, email, created_at), `tiktok_accounts` (id, user_id, access_token, refresh_token, open_id, username, token_expires_at), `slideshows` (id, user_id, status ['draft', 'generating', 'rendering', 'completed', 'failed'], title, aspect_ratio, payload jsonb, created_at), `videos` (id, slideshow_id, status, video_url, error_message, created_at), and `automations` (id, user_id, tiktok_account_id, title, hooks jsonb, schedule jsonb, status, created_at). Ensure proper foreign key constraints, indexes on user_id, and row level security policies where applicable.
```

2. **TikTok OAuth & Account Integration** — Implement TikTok login authorization flow, token exchange handlers, and account connection dashboard views.

```
Build the TikTok OAuth 2.0 integration for Next.js. Create a route `/api/auth/tiktok` that redirects users to TikTok's authorization page requesting scopes for user info and content posting (`user.info.basic`, `video.publish`, `video.upload`). Build the callback endpoint `/api/auth/tiktok/callback` to securely exchange the authorization code for access and refresh tokens, encrypt them if necessary, and store them in the `tiktok_accounts` table linked to the authenticated user. Build a React dashboard settings page where users can view connected TikTok accounts, click 'Connect TikTok', and see active account handles and connection status.
```

3. **AI Slideshow Generation & Editor Interface** — Build prompt-based slideshow generation using LLMs and an interactive manual editor to tweak slide layouts, image URLs, and text styles.

```
Implement the slideshow generation and editing features. Create a backend API endpoint `POST /api/v1/slideshows/generate` that takes `additional_context` and optional `images`, sends a prompt to Anthropic or OpenAI API structured to return a JSON array of slides (with hooks, body points, text colors, and layouts), saves the record as a draft, and triggers an asynchronous processing function. Create a corresponding manual creation endpoint `POST /api/v1/slideshows/create` for precise multi-slide payloads matching the ReelFarm API specs. Build a rich dashboard frontend slideshow editor with preview cards, aspect ratio toggles ('4:5', '9:16'), text positioning options, font selection ('TikTokDisplay-Bold', 'BebasNeue-Regular'), and overlay opacity sliders.
```

4. **Asynchronous Rendering & Video Export Pipeline** — Build background background workers that compile slide images and text overlays into downloadable image sequences and exported MP4 video files.

```
Build an asynchronous background rendering worker using Node.js and a queue (or Cloudflare Workflows / background tasks) that processes slideshows when status moves from `generating` to `rendering`. Implement image downloading and composition using canvas or html-to-image utilities, drawing text boxes with correct outlines, backgrounds, and vertical anchors. If `export_as_video` is true, compile frames into an MP4 video file using ffmpeg-wasm or a server-side FFmpeg binary. Update the `videos` table with the resulting Cloudflare R2 storage URL and transition the slideshow status to `completed` or `failed`. Provide status polling endpoints at `GET /api/v1/slideshows/{id}/status` returning granular progress.
```

5. **Automations & Cron Scheduler** — Implement recurring cron schedules for automated slideshow generation and publishing.

```
Build the automations backend and CRUD endpoints (`POST /automations`, `GET /automations`, `PATCH /automations`, `DELETE /automations`). Implement a cron runner service (using node-cron or serverless cron triggers) that evaluates active automation schedules in Pacific time. When a schedule triggers, the worker automatically invokes the slideshow generation engine using saved hooks and styles, and subsequently queues a TikTok post job. Build a dashboard view in Next.js allowing users to create, pause, unpause, and delete automations with custom cron expressions and target TikTok accounts.
```

6. **TikTok Direct Publishing & Draft Posting** — Integrate TikTok Content Posting API endpoints to push rendered slideshows and videos directly to connected accounts.

```
Implement the TikTok publishing service that interacts with TikTok's Content Posting API (`https://open.tiktokapis.com/v2/post/publish/video/init/` or image carousel endpoints depending on API tier). Support both `DIRECT_POST` and `MEDIA_UPLOAD` (draft mode) settings based on automation configuration. Handle token refresh logic automatically if an access token has expired before posting. Include robust error handling for API rate limits (such as 24-hour post caps), logging failure states to the database and exposing analytics tracking views, likes, shares, and comments fetched from TikTok integration endpoints.
```

### Cost vs paying

**Starting costs (one-time):**

- Domain name: $12/yr
- AI coding credits: $20
- Total: ~$32 one-time

**Ongoing costs (monthly):**

- Supabase Pro / Cloudflare Workers: $0-5/mo
- LLM API usage (Anthropic / OpenAI): $5-15/mo
- Total: ~$10-20/mo

- Paying for the SaaS instead: $49/mo (Growth) to $195/mo (Enterprise)
- Build time: 35-50 hours
- AI tool credits: $20 (Claude Pro / Cursor)
- Break-even: Immediate if replacing Growth tier ($49/mo)

## Sources

- [ReelFarm Landing Page](https://reel.farm)
- [ReelFarm API Documentation](https://reel.farm/api-docs)