How jodenrey/tiktok-automation works
This is a full-stack service for configuring scheduled TikTok slideshow automations, generating and publishing carousel posts, and managing credits. The main workflow runs from automation setup through scheduled or manual dispatch, AI content creation, image retrieval, persistence, optional TikTok publishing, and credit consumption. The README documents these stages and product areas; sampled route and worker code confirms several entry points and integrations, but the automation pipeline implementation itself was not included in the excerpts.
Main entry points: run-automation.ts Automation pipeline · slideshows Slideshow API · prisma.ts PostgreSQL · (app) App pages
Components 23
User experience
- App pages
src/app/(app) - Posts and analytics
src/app/(app)/posts - Collections UI
src/app/(app)/collections/page.tsx
Automation runtime
- Automation API
src/app/api/automations - Scheduling and dispatch
src/lib/queue.ts - Automation worker
src/workers/automation-worker.ts - Automation pipeline
src/lib/run-automation.ts
Content generation
- Slideshow API
src/app/api/slideshows - Content generation
src/lib/claude.ts - Image search
src/lib/images.ts - TikTok publishing
src/lib/tiktok.ts
Accounts and billing
- Authentication
src/app/api/auth - Auth config
src/lib/auth.ts - Credit accounting
src/lib/credits.ts - Checkout API
src/app/api/stripe/checkout/route.ts - Stripe webhook
src/app/api/stripe/webhook/route.ts
Data and services
- PostgreSQL
src/lib/prisma.ts - Redis queue
Other components
- User
- Anthropic Claude
- Image providers
- TikTok API
- Stripe
Connections 32
- User → App pages: uses
- User → Authentication: registers
- Authentication → Auth config: authenticates
- Auth config → PostgreSQL: reads and writes
- App pages → Automation API: manages automations
- App pages → Slideshow API: generates or publishes
- App pages → Posts and analytics: views results
- App pages → Collections UI: views library
- Automation API → PostgreSQL: reads and writes
- Automation API → Scheduling and dispatch: schedules jobs
- Scheduling and dispatch → Redis queue: enqueues jobs
- Redis queue → Automation worker: delivers jobs
- Automation worker → Scheduling and dispatch: creates worker
- Scheduling and dispatch → Automation pipeline: runs automation
- Automation pipeline → Content generation: generates content
- Content generation → Anthropic Claude: requests generation
- Automation pipeline → Image search: fetches slide images
- Image search → Image providers: searches providers
- Automation pipeline → PostgreSQL: persists slideshows and posts
- Automation pipeline → TikTok publishing: publishes when enabled
- TikTok publishing → TikTok API: posts carousel
- Automation pipeline → Credit accounting: consumes credits
- Slideshow API → Content generation: generates content
- Slideshow API → Image search: fetches images
- Slideshow API → PostgreSQL: stores slideshow
- Slideshow API → Credit accounting: consumes credit
- Slideshow API → TikTok publishing: publishes slideshow
- Checkout API → PostgreSQL: reads account
- Checkout API → Stripe: creates checkout
- User → Checkout API: buys credits
- Stripe → Stripe webhook: sends events
- Stripe webhook → PostgreSQL: grants credits