Local-first AI medium-video planning console for creators and automation builders.
The project provides a browser control panel, template-driven episode planning, trend scanning hooks, n8n workflow templates, and provider adapters for OpenAI-compatible text, image, and video APIs. It is designed to keep expensive provider calls explicit: planning, image generation, video generation, status refreshes, and n8n notifications are separate steps.
- Local Node.js HTTP server with a web control panel at
http://localhost:4173. - Medium-video templates for story, education, workflow tutorial, map/geography, product demo, science explainer, and other repeatable formats.
- Trend scanning pipeline with TikHub-compatible API hooks.
- Text brain, image provider, and video provider adapters for OpenAI-compatible endpoints.
- n8n workflow JSON templates for local-controller and scheduled modes.
- Tests for trend mapping and video factory provider behavior.
This public repository intentionally does not include local secrets, generated videos, downloaded reference packs, model weights, node_modules, or run outputs. Use only content you own or are authorized to process.
npm install
cp .env.example .env.local
npm run startOpen:
http://localhost:4173
Run tests:
npm testReal provider keys belong in .env.local.
Important environment variables:
TIKHUB_API_KEYandTIKHUB_BASE_URLfor trend/source data.TEXT_AI_API_KEY,TEXT_AI_BASE_URL, andTEXT_AI_MODELfor planning.YUNWU_API_KEYand image model variables for image generation.YUNWU_VIDEO_API_KEYand video model variables for video generation.N8N_API_URL,N8N_API_KEY, andN8N_FACTORY_WORKFLOW_IDfor pushing n8n workflows.MEDIUM_VIDEO_N8N_SHARED_SECRETto protect n8n-facing webhook endpoints.
The integrations/ directory contains importable n8n workflow templates:
n8n-medium-video-factory-intake-workflow.jsonn8n-medium-video-factory-workflow.jsonn8n-trend-scan-workflow.json
Push the local-controller workflow:
npm run n8n:pushPush the scheduled workflow:
npm run n8n:push:scheduledpublic/ Browser console
server/ Local HTTP API and provider adapters
scripts/ CLI helpers, demos, tests, and n8n utilities
docs/ Operating notes and workflow SOPs
integrations/ n8n workflow templates
MIT