Node.js Live Production Site

Riff AI News

An automated AI-powered video news pipeline that researches breaking tech and AI stories, writes broadcast-quality scripts via Claude AI, generates text-to-speech narration, sources relevant stock footage, and assembles finished MP4 news segments -- running on a fully automated cron schedule six times per day.

Riff AI News

Project Overview

Riff AI News is a fully automated video news production pipeline. Six times a day it wakes up, researches the latest AI and technology stories, writes a broadcast-quality script using Claude AI, generates a narration audio track via TTS, sources stock footage from Pexels, assembles everything into a finished MP4 news segment, and produces a separate YouTube Shorts version. No human touches the production process.

Key Features

  1. Fully automated 6x daily production schedule -- cron-triggered pipeline runs at fixed intervals (midnight, 7am, noon, 3pm, 6pm, 10pm) Melbourne time.
  2. AI research and script writing -- Claude AI researches current topics via web search and writes structured broadcast scripts with hooks, scene breakdowns, and narration copy.
  3. Text-to-speech narration -- XTTS and edge-tts generate natural-sounding voiceover audio for each scene.
  4. Automated stock footage sourcing -- Pexels and Pixabay APIs supply relevant B-roll clips matched to each script scene by keyword.
  5. Video assembly via ffmpeg -- individual scene clips with audio are concatenated, timed, and rendered into a finished MP4 with scene transitions.
  6. YouTube Shorts variant -- a separate vertical-format short is auto-generated alongside the main video.
  7. Crash recovery and orphan watchdog -- a watchdog process checks every 5 minutes for stalled jobs and resumes them automatically from their last checkpoint.
  8. Nightly quality review -- an automated overnight process reviews recently produced videos and logs quality metrics.
  9. Weekly channel report -- a weekly summary of production output, view metrics, and topic performance is generated automatically.

Technical Highlights

The pipeline is a Node.js scheduler (scheduler.js) with modular stages: researcher, scripter, asset-fetcher, voice-gen, render-dispatcher. Heavy rendering is offloaded over SSH/SCP to a dedicated GPU workstation. All job state is persisted as JSON, enabling reliable resume-on-crash. The Claude API handles both research (web search mode) and script writing, with a full conversation context passed between stages for coherence.

Technology Stack
Node.js Express cron Claude API edge-tts ffmpeg YouTube API Pexels API
Hosting & Infrastructure

Self-hosted on a Synology NAS running Node.js. The scheduler runs as a systemd user service. Video rendering is delegated via SSH to a separate GPU workstation running ComfyUI and XTTS. Completed videos are served locally; manual upload to YouTube via the web interface.

Site Status

This is a live production site. It handles real user traffic and data in a production environment.

Visit Live Site All Projects

Like what you see?

I build custom web applications, CMS solutions, and enterprise systems built to last. Let's discuss your project.

Get in Touch