Skip to content

jiang3021938/medium-video-factory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Medium Video Factory

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.

What is included

  • 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.

What is not included

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.

Quick start

npm install
cp .env.example .env.local
npm run start

Open:

http://localhost:4173

Run tests:

npm test

Configuration

Real provider keys belong in .env.local.

Important environment variables:

  • TIKHUB_API_KEY and TIKHUB_BASE_URL for trend/source data.
  • TEXT_AI_API_KEY, TEXT_AI_BASE_URL, and TEXT_AI_MODEL for planning.
  • YUNWU_API_KEY and image model variables for image generation.
  • YUNWU_VIDEO_API_KEY and video model variables for video generation.
  • N8N_API_URL, N8N_API_KEY, and N8N_FACTORY_WORKFLOW_ID for pushing n8n workflows.
  • MEDIUM_VIDEO_N8N_SHARED_SECRET to protect n8n-facing webhook endpoints.

n8n workflows

The integrations/ directory contains importable n8n workflow templates:

  • n8n-medium-video-factory-intake-workflow.json
  • n8n-medium-video-factory-workflow.json
  • n8n-trend-scan-workflow.json

Push the local-controller workflow:

npm run n8n:push

Push the scheduled workflow:

npm run n8n:push:scheduled

Project layout

public/          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

License

MIT

About

Local-first AI medium-video planning console with templates, n8n workflows, trend scanning, and provider adapters.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors