Skip to content

About

Twitch and YouTube chat highlights to vertical clips.

Topics

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stream Clip Maker app icon Stream Clip Maker

Stream Clip Maker

Find the moment. Cut the highlight. Share the clip.

Turn Twitch and YouTube stream chat reactions into ranked highlights and vertical videos.

npm version npm monthly downloads GitHub stars MIT license Node.js 18 or newer

Quick start · How it works · Leer en español · Website & downloads · Release v0.1.0 · Report a bug


The best moments are already in the chat.

A sudden flood of emotes. Everyone typing at once. A reaction spike you don't want to miss.

Stream Clip Maker analyzes chat activity, finds standout moments, and helps turn them into shareable clips — without manually scrubbing through an entire VOD.

Why Stream Clip Maker?

Feature What it does
Chat-powered discovery Finds reaction spikes using unique chatters and reaction signals.
Twitch + YouTube chat Supports TwitchDownloader chat JSON and YouTube live-chat replay JSONL.
Highlight ranking Scores and merges nearby peaks into reviewable clip candidates.
Vertical video Creates 9:16 clips with a blurred background.
Local-first workflow Runs on your machine; no hosted processing service required.
Creator review Keeps the workflow review-first instead of automatically publishing content.

How it works

Workflow: stream chat, reaction detection, highlight selection, vertical clip
  1. Get the chat replay from a Twitch VOD or YouTube livestream.
  2. Analyze reactions to find windows with unusually high viewer activity.
  3. Review candidates and choose the moments worth clipping.
  4. Render vertical clips with FFmpeg.
  5. Review and share only content you have permission to reuse.

Desktop downloads — v0.1.0

Official desktop installers for Linux x64 and Windows x64. Each link downloads directly from the public GitHub release.

Platform Package Direct download
Linux Debian / Ubuntu DEB Download DEB
Linux Fedora RPM Download RPM
Linux portable AppImage Download AppImage
Windows MSI Download MSI
Windows EXE Download EXE

Linux: install DEB/RPM with your package manager. For AppImage, run chmod +x on the downloaded file and launch it. Windows: run the MSI or EXE installer.

macOS: this release has no supported native desktop installer. Use the guided TUI from a source checkout:

git clone https://github.com/kathennn/stream-clip-maker.git
cd stream-clip-maker
npm install
node cli.mjs

Install Node.js 18+, FFmpeg and the download tools needed by your workflow. The menu includes Search, Create, Enhance, Share, Setup & Help and Check. Rendering and publishing require confirmation; nothing is auto-published.

The desktop app processes files locally. Install FFmpeg and whichever of yt-dlp / TwitchDownloaderCLI your workflow needs. See the official download website.

Interactive terminal interface

Run Stream Clip Maker without arguments to open the guided TUI:

stream-clip-maker

Choose an action from the menu and follow the prompts to analyze a chat, create clips from a Twitch VOD / supported URL / local video, discover Twitch streams, or add subtitles and a title to a vertical clip. The interface asks for confirmation before starting video rendering. It never publishes videos automatically.

Advanced users can keep using the original flags and scripts; for example, stream-clip-maker chat.json --vertical --top 5.

Quick start

1. Install

Requires Node.js 18+.

npm install --global stream-clip-maker

Or run it without a global install:

npx stream-clip-maker

2. Download a chat replay

Twitch

TwitchDownloaderCLI chatdownload --id <VOD_ID> -o chat.json

YouTube live chat replay

yt-dlp --skip-download --write-subs --sub-langs live_chat -o stream "<YOUTUBE_URL>"

3. Find highlight moments

Twitch VOD

stream-clip-maker chat.json --vod <VOD_ID> --vertical

YouTube replay

stream-clip-maker stream.live_chat.json --url "<YOUTUBE_URL>" --vertical

4. Render your clips

Preview the plan first. This writes moments.json but never starts a downloader or renderer, even if --run is also present:

stream-clip-maker chat.json --vod <VOD_ID> --preview --run --out clips

After reviewing the moments, select which numbered candidates to render with --select:

stream-clip-maker chat.json --vod <VOD_ID> --vertical --select 1,3 --run --out clips

You can also render from a local video:

stream-clip-maker chat.json --video recording.mp4 --vertical --run --out clips

Open the guided interface with stream-clip-maker, or see advanced options with:

stream-clip-maker --help

How it works

  • Chat is grouped into 10-second windows.
  • Each window is scored using unique chatters and the share of those chatters posting reaction messages.
  • Windows dominated by repeated, poll-like messages are down-weighted.
  • Candidate moments must exceed a rolling baseline and minimum-reactor thresholds.
  • Nearby peaks are merged into a clip, up to the configured maximum duration.
  • The first three minutes are skipped by default to reduce greeting-related spikes.

The detector is heuristic, not an AI model. Chat reactions may refer to what the streamer says or does, not only the game. Always review the selected moments and rendered clips.

Vertical video

The --vertical option creates a 9:16 version with a blurred background. Automatic face tracking and smart subject reframing are not currently included.

Requirements

Tool Needed for
Node.js 18+ Running the CLI
FFmpeg Cutting and rendering video
TwitchDownloaderCLI Downloading Twitch VOD chat / media
yt-dlp Downloading YouTube media and chat replay
Whisper.cpp (optional) Speech transcription for the Termux subtitle workflow

The core chat-analysis command has no third-party Node.js runtime dependencies. Downloading and rendering media requires the relevant external tools.

Android / Termux extras

The repository also includes optional scripts for the project's Android workflow:

Script Purpose
discover-twitch.sh Search live Twitch channels and archived VODs by category using Twitch Helix.
make-clips.sh Download Twitch chat, detect moments, render vertical clips, add Spanish captions/title, and copy outputs to Downloads.
enhance-clip.sh Transcribe Spanish speech with Whisper.cpp and burn in title/subtitles.
youtube-auth.mjs Configure local YouTube OAuth.
youtube-upload.mjs Validate and upload a final Short as private.
publish-short.sh Wrapper for the review-first YouTube upload flow.

These helpers require additional local tools and configuration. They are not a hosted service and do not publish automatically.

Twitch discovery setup

  1. Create an application in the Twitch Developer Console.
  2. Copy .env.example to .env.
  3. Set TWITCH_CLIENT_ID and TWITCH_CLIENT_SECRET in .env.
  4. Add creator logins you have permission to edit to allowedCreators in rules.json.
  5. Run the discovery script from your repository checkout:
./discover-twitch.sh "GTA 6"

Discovery is not permission. Finding a channel through Twitch's API does not grant rights to reuse its content. Only creators explicitly listed in allowedCreators should be treated as authorized by your local workflow.

YouTube upload safety

The upload helper:

  • Requires the explicit --confirm-rights flag.
  • Accepts only files ending in _final.mp4.
  • Checks for 1080×1920 resolution and a duration of up to 180 seconds.
  • Uploads as private for manual review.

Review the clip, creator permissions, title, and description before publishing.

ChatGPT plugins

The repository includes two ready-to-import, skills-only plugin packages:

To use one with ChatGPT, download its ZIP and add it through Plugin Creator / the plugin import flow available in your ChatGPT account. Once saved, select the plugin in a conversation and describe the task.

Important: these are instruction/skill plugins, not remote execution servers. The Remote Desktop Commander Guide does not grant computer access. Connect the official Remote Desktop Commander integration separately, authorize your device, and then use the guide alongside it. See the plugin folders for full instructions.

Development

Clone the repository:

git clone https://github.com/kathennn/stream-clip-maker.git
cd stream-clip-maker
npm test
npm pack --dry-run

Contributing

Bug reports, feature requests, and pull requests are welcome. Please include reproduction steps and relevant environment details, but never attach API keys, OAuth credentials, private chat logs, or copyrighted media you do not have permission to share.

License

Released under the MIT License.


Made for creators who don't want to miss the moment.
If Stream Clip Maker helps your workflow, consider giving the project a star.

About

Twitch and YouTube chat highlights to vertical clips.

Topics

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages