Scans best-selling products from verified sellers on TikTok Creative Center and expands to new SKUs in the brand family via Kalodata
tiktok-product-video-machine — Next.js SaaS Template
By dkgrissom-tech
A Next.js-based TikTok Shop SaaS starter that uses Higgsfield to generate product videos and automatically posts to TikTok accounts on an adaptive cadence.
Explore the design
Compare the page layouts and mobile experience. Open any screenshot for a closer look.
Actual screenshot captured by the server browser.
All pages & views 3
Screenshots show visual appearance; interactive behavior may differ.
What stands out
A quick read of the recorded project description.
Calls Higgsfield to generate 3–8 AI videos per product, covering multiple camera presets
Automatically generates hook-driven caption copy and filters it through a moderation blacklist
Per-account adaptive posting cadence with daily caps, 45-minute intervals, and a 14-day warm-up period
Aggregates 1-hour and 24-hour reach ratios to dynamically adjust each account's daily posting cap
Built-in compliance constraints: no re-uploading others' videos, rendering an AI-generated label, and server-side encrypted session cookies
Template Details
This is a TikTok Shop SaaS starter built with Next.js, covering the discovery, generation, and publishing workflow for product videos. It scrapes best-selling products from verified sellers on TikTok Creative Center, then expands to new SKUs in the same brand family via Kalodata, then calls Higgsfield to generate 3–8 AI videos per product, pairs them with hook-driven caption copy filtered through a moderation blacklist, and finally automatically posts to configured TikTok accounts on an adaptive cadence. The posting cadence includes per-account daily caps, posting intervals, and a warm-up period, and aggregates 1-hour and 24-hour reach ratios to adjust daily caps. The project includes built-in compliance constraints: it does not re-upload others' videos, only extracts product images for regeneration; it renders an AI-generated label in the output; and session cookies are encrypted and stored server-side. The repository contains a Next.js App Router application, a BullMQ worker, Supabase migrations, scripts, and utilities, and reserves a Phase-2 placeholder for local generation with ComfyUI.
Is it right for your project?
Use Cases
- Building an automated discovery, generation, and publishing pipeline for TikTok Shop product videos
- Batch-generating original AI videos for best-selling products from verified sellers and publishing them automatically
- Scheduling posts across multiple TikTok accounts on an adaptive cadence and tracking reach performance
- Using it as a Next.js + BullMQ + Supabase SaaS starter for further development
Suitable For
- Developers or small teams that need an automated TikTok Shop product video workflow
- Technical users familiar with Next.js, BullMQ, and Supabase who are willing to configure external services themselves
- Teams that want to build a product video SaaS on top of MIT-licensed code
Getting started & customization
Use these recorded setup notes alongside the repository instructions for your chosen version.
- 1
Requires pnpm install and installing Playwright Chromium, plus preparing keys for Supabase, Redis, Stripe, Higgsfield, AWS, and others
- 2
Obtain a Kalodata free-tier session cookie via pnpm grab-kalodata-cookie
- 3
Run supabase/migrations/0001_init.sql to initialize the database, and use pnpm seed-cookies to write encrypted TikTok account cookies
- 4
Run pnpm dev and pnpm worker:dev in two separate terminals, then use pnpm smoke for a full smoke test
- 5
The README states the quick start takes about 30–45 minutes of click operations; external services may charge separately, and demo assets must be checked against their respective licenses
License & source material
Usage conditions & limitations
Free to use · keep license noticeThis entry covers the free version of the public repository under the MIT license; the free scope is the code of this version and does not mean external services or third-party assets are free.
Must comply with when using
- Permits free use, modification, commercial use, and distribution of this version's code.
- When distributing copies or substantial portions of the code, retain the original author's copyright notice and the full MIT license notice.
- The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.
Additional costs & items to verify
- Use requires preparing and configuring keys for external services such as Supabase, Redis, Stripe, Higgsfield, and AWS, which may incur additional costs.
- Requires obtaining a Kalodata free-tier session cookie via an interactive script, depending on a Kalodata account and browser login.
- Requires providing TikTok accounts and writing encrypted cookies to publish; account credentials are prepared by the user.
- Current publishing relies on an unofficial Playwright approach; the official API is only available after approval.
- Phase 2 local generation requires your own GPU machine running Wan 2.2 and FLUX Schnell, and is an optional configuration.
- Demo images, fonts, icons, and other third-party assets must be checked against their respective licenses and cannot be judged solely by the code's MIT license.
- External services such as domains, hosting, databases, payments, or AI may charge separately.
View Original Text Basis
Permission is hereby granted, free of charge
Original License Text
Fill in Supabase, Redis, Stripe, Higgsfield, AWS keys.
Original README
Grab your Kalodata free-tier session cookie (opens a browser)
Original README
Seed one TikTok account with encrypted cookies
Original README
Playwright today, official API when approved
Original README
https://github.com/dkgrissom-tech/tiktok-product-video-machine/blob/main/LICENSEhttps://github.com/dkgrissom-tech/tiktok-product-video-machine/blob/main/README.mdFlip `COMFYUI_LOCAL_FRACTION=0.5`. Half the jobs go to your GPU box running Wan 2.2 + FLUX Schnell.
Original README
Compiled by DeepSeek based on repository license and README ·2026-10-02. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.
Project checks & description sources
Template Information
- Source platforms
- GitHub
- Documentation and maintenance reference score
- More documented · 85 / 100
- Technologies
- Next.js · React
- Website type
- SaaS · Starter
How this score is calculated
Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.
What to verify for this project
- Repository update recorded
- 2026-09-19
- Screenshot last checked
- 2026-10-02
A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.
The catalog identifies Next.js as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.
Use a selection guide →How this description was prepared
AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.
Automatically checked against source and license rules; no manual editorial review.
Inspect the recorded source material
SHA-256: 3d827c55f3f42367840c687f819ccefd5672c8fbe7d7ae5322b2e1f4c9272181
2026-10-02T01:01:57.900Z
Source file / repository# TikTok Product Video Machine
Watches TikTok Creative Center + Kalodata for verified-seller winning products and their new brand-family SKUs, generates original AI videos with Higgsfield, and auto-posts to your accounts on an adaptive cadence.
Sibling to `booktok-trailers/` in this repo — same architecture, different domain.
## Quickstart (30–45 minutes of clicks)
```bash
pnpm install
pnpm exec playwright install chromium
cp .env.local.example .env.local
# Fill in Supabase, Redis, Stripe, Higgsfield, AWS keys.
# 1) Grab your Kalodata free-tier session cookie (opens a browser)
pnpm grab-kalodata-cookie
# 2) DB
psql "$SUPABASE_DB_URL" -f supabase/migrations/0001_init.sql
# 3) Seed one TikTok account with encrypted cookies
pnpm seed-cookies dkgrissomshop bookish
# 4) Start dev + worker in two terminals
pnpm dev # terminal 1: Next.js
pnpm worker:dev # terminal 2: BullMQ worker
# 5) Full smoke test
pnpm smoke
```
## What the machine does, per day
1. **Scans** Creative Center for the top verified-seller products (worker/scan.ts).
2. **Expands** each hit into its brand family via Kalodata to catch new SKUs from proven shops.
3. **Generates** 3–8 AI videos per product across camera presets (worker/generate.ts → lib/higgsfield.ts).
4. **Captions** each with a hooked hashtag stack, run through moderation deny-list (worker/caption.ts).
5. **Posts** on adaptive cadence — Playwright today, official API when approved (worker/post.ts → lib/posting/*).
6. **Rolls up** 1h and 24h reach ratios, adjusts each account's daily cap (worker/metrics.ts).
## Compliance guardrails
- Never re-uploads another creator's video — extracts product images and generates fresh.
- AI-generated tag rendered into every output (add to Higgsfield prompt or via ffmpeg overlay).
- Rate limits per account: 10/day ceiling, 45-min spacing, 14-day warmup.
- Verified-seller filter on by default.
- Session cookies encrypted with `pgp_sym_encrypt` server-side.
## Repo shape
```
tiktok-product-machine/
├── app/ # Next.js 15, App Router
│ ├── api/{scan,generate,videos,post,webhook,stripe}/route.ts
│ ├── dashboard, queue, accounts, case-studies/
│ └── page.tsx (landing + pricing)
├── lib/
│ ├── signal/ # creative-center + kalodata + brand-family
│ ├── extraction/ # product images + seller badge normalization
│ ├── prompts/ # product-video prompt + caption LLM
│ ├── posting/ # cadence + official + unofficial + router
│ ├── moderation/ # deny-list
│ ├── metrics/ # reach-ratio rollup
│ ├── higgsfield.ts # transport
│ └── comfyui.ts # Phase-2 stub
├── worker/ # BullMQ jobs
├── supabase/migrations/ # RLS-on schema
├── scripts/ # seed-cookies, warmup, smoke-test
└── tools/ # grab-kalodata-cookie (interactive)
```
## Path C phases
- **Phase 1** — Higgsfield API only. Validate. Eligible for the $50K bounty.
- **Phase 2** — Flip `COMFYUI_LOCAL_FRACTION=0.5`. Half the jobs go to your GPU box running Wan 2.2 + FLUX Schnell. Cost per video drops ~70%.
- **Phase 3** — `COMFYUI_LOCAL_FRACTION=1.0`. Higgsfield becomes failover.
Details in `../../build-specs/05-tiktok-product-machine.claude.md`.
Explore similar templates
Compare previews and descriptions within the same stack and category.

Next.js SaaS Starter
The official Next.js SaaS starter template, integrating email/password authentication, Stripe Checkout subscriptions, a dashboard with user/team CRUD, basic Owner/Member RBAC, and activity logging.
Next.js · SaaS

Next.js Commerce
Vercel's officially maintained Next.js App Router ecommerce starter with deep Shopify integration, offering a complete product catalog, cart, and checkout flow. Core logic is modular for swapping backends, and community provider versions exist for BigCommerce, Medusa, and Saleor.
Next.js · E-commerce

Next-js-Boilerplate
A developer-first Next.js 16 starter with Tailwind CSS 4 and TypeScript, supporting both App Router and Page Router.
Next.js · Starter

tailwind-nextjs-starter-blog
A Next.js and Tailwind CSS blog starter template using Contentlayer for Markdown/MDX, with built-in SEO, code highlighting, and tags. It targets personal technical blogs and migration from Jekyll/Hugo to React, and supports one-click Vercel deployment.
Next.js · Blog

next-forge
next-forge is a Turborepo-based Next.js template maintained by Vercel, positioned as a starting point for SaaS products.
Next.js · Starter

SaaS-Boilerplate
SaaS-Boilerplate is an open-source SaaS starter template built with Next.js App Router, React 19, TypeScript, Tailwind CSS, and Shadcn UI.
Next.js · SaaS
