Skip to content

45ck/content-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

343 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Content Machine

CI npm License: MIT

content-machine banner

Turn any topic into a TikTok/Reels/Shorts video from the command line.

One command in, vertical video out. Content Machine generates scripts, voiceover, captions, and stock footage — then renders everything into a ready-to-upload MP4.

cm generate "Redis vs PostgreSQL for caching" --archetype versus -o video.mp4

Split screen demo Caption styles demo Latest news demo

Early development — working, but APIs may change between releases.

Install

npm install -g @45ck/content-machine

Or run without installing:

npx -y @45ck/content-machine --help

Requires Node.js >= 20. See full installation guide for optional setup (Whisper, ffmpeg).

Quick Start

1. Try the demo (no API keys needed):

cm demo -o output/demo.mp4

2. Generate a real video (needs OpenAI + Pexels keys):

export OPENAI_API_KEY="sk-..."
export PEXELS_API_KEY="..."

cm generate "5 things every dev should know about Docker" \
  --archetype listicle \
  -o output/docker-tips.mp4

3. Diagnose issues:

cm doctor

See the full Quickstart guide for Whisper setup and advanced options.

What You Can Make

Archetype What it produces Example
listicle "5 things..." numbered tips cm generate "5 Docker tips" --archetype listicle
versus Side-by-side comparison cm generate "Redis vs Postgres" --archetype versus
howto Step-by-step tutorial cm generate "Deploy to AWS" --archetype howto
myth Myth vs reality debunk cm generate "JavaScript myths" --archetype myth
story Narrative with a hook cm generate "How Stripe was built" --archetype story
hot-take Provocative opinion piece cm generate "REST is dead" --archetype hot-take

More examples: docs/user/EXAMPLES.md

Gemini image-led short preview

How It Works

Content Machine runs a 4-stage pipeline — each stage can also run independently:

topic → script → audio + timestamps → visuals → video.mp4
# Or run stages individually
cm script  --topic "Redis vs PostgreSQL"       # LLM generates script
cm audio   --input script.json                 # TTS + word-level timestamps
cm visuals --input timestamps.json             # Stock footage matching
cm render  --input visuals.json                # Remotion renders MP4

Pipeline overview

Documentation

  • User Guide — installation, configuration, CLI reference, examples
  • Developer Docs — architecture, contributing guides, specs
  • Reference — generated CLI references, environment variables, glossary

Contributing

Contributions welcome! See CONTRIBUTING.md to get started.

git clone https://github.com/45ck/content-machine.git
cd content-machine && npm install && cp .env.example .env
npm run cm -- --help

License

MIT