RIPPWORKS / Stream Clip / Setup guide

Rippworks Stream Clip

Stream Clip finds the moments worth posting in a long stream and turns them into vertical 1080x1920 clips with captions and a hook.

Search a Kick streamer, paste a YouTube link, upload a video or use your own recordings. Scan live while it is still on, re-cut with plain words, bleep, cut dead air, export MP4. Bring your own AI key (Gemini, Claude or OpenAI) or use the built-in heuristics.

This package ships the Rippworks Relay runtime (a small Node server plus the web app) with these product modules:

  • No owner-only modules (Prompts, Clip Farming, Social Farming, Voiceover ship in their own packages).

Owner-only modules appear under Tools for the owner only (marked "Only you"). Modules that are not in this folder are simply absent; adding another package's module file and folder later turns it on.

System requirements

Item Minimum Recommended
OS Linux x64/arm64 (Ubuntu 22.04+, Debian 12+), macOS 13+, or Windows 10/11 with WSL2 Ubuntu 24.04 LTS server
Node.js 22.5 or newer (the app uses the built-in node:sqlite; tested on 22.23) Node 22 LTS
RAM 1 GB (chat only) 4 GB with video tools and the clip worker
Disk 500 MB for the app + whatever your uploads and recordings need 20 GB+ SSD
CPU 1 core 2-4 cores (clip exports run ffmpeg)
GPU Not needed Not needed
Ports 3100/tcp (app, keep it on localhost behind your proxy or tunnel) see Voice and video below

Stream Clip specifically needs ffmpeg/ffprobe 6+ and, for YouTube links, yt-dlp. A 20-minute scan with export uses about 1-1.5 GB RAM in the worker.

Optional system tools: ffmpeg / ffprobe 6+ (Stream Clip, Clip Farming, Voiceover, social covers), yt-dlp (YouTube links in Stream Clip), curl (stream thumbnails), livekit-server 1.9+ (voice and video).

Install and run locally

# 1. unpack, then inside the folder:
npm ci --omit=dev            # installs ws, livekit-client, the MCP SDK and zod (about 30 s)
cp .env.example .env         # then edit .env (at least STREAM_KEY_SECRET)
npm start                    # = node --env-file-if-exists=.env server.js

On first run the console prints a one-time link (also saved to data/owner-setup-link.txt):

[rippworks] first run: open this one-time link to create the owner account: http://localhost:3100/setup/<token>

Open it, pick a display name, username and password. The first account created is the owner. The link stops working once used. Then invite people from Settings > Invites. Check it is up: curl http://localhost:3100/api/health.

Configure keys

All settings live in .env (template: .env.example). Nothing is filled in for you and no key is shipped.

Where each key comes from

Key Needed for Where to get it
LK_KEY, LK_SECRET, LK_URL Voice rooms, video, screen share, Go live, Clip (replay) Self-hosted: livekit-server generate-keys (or let deploy/install.sh generate them). Cloud: LiveKit Cloud > Project > Settings > Keys; LK_URL is your wss:// project URL.
TURN (turn: block in deploy/livekit.yaml) Voice for people behind strict firewalls Built into LiveKit: give it a DNS name (TURN_DOMAIN) pointing at your server and a TLS certificate (Let's Encrypt). A separate coturn server also works: put its turns: URL in LiveKit's rtc.turn_servers.
STREAM_KEY_SECRET Encrypting saved stream keys, AI keys and sign-ins You make it up: any long random string. Keep it; changing it makes saved keys unreadable.
TWITCH_CLIENT_ID, TWITCH_CLIENT_SECRET Twitch search in Stream Clip, Twitch tiles in Clip Farming dev.twitch.tv > Your Console > Register Your Application (category "Application Integration", OAuth redirect http://localhost).
Kick Kick channels No key needed (public endpoints).
YouTube YouTube links / YouTube Live No key needed for clipping. The Social publisher needs GOOGLE_CLIENT_ID/SECRET (Google Cloud Console > APIs & Services > Credentials > OAuth client ID, YouTube Data API v3 enabled, redirect ORIGIN/api/social/oauth/youtube).
Gemini / Claude / OpenAI AI scans and re-cuts in Stream Clip Each member pastes their own key in Stream Clip > Settings (stored encrypted). Gemini: aistudio.google.com > Get API key. Claude: console.anthropic.com > API keys. OpenAI: platform.openai.com > API keys. Without a key Stream Clip uses its built-in heuristics.

Voice and video (LiveKit)

Chat, DMs, servers, Prompts and most tools work without it. Voice rooms, cameras, screen share, Go live and Clip need a LiveKit server.

  • Quick local test: install livekit-server (1.9 or newer: github.com/livekit/livekit/releases), run livekit-server --dev --bind 127.0.0.1, then set LK_URL=ws://localhost:7880, LK_KEY=devkey, LK_SECRET=secret and restart the app.
  • Production ports (open in your firewall): 7881/tcp (ICE over TCP), 50000-50100/udp (media), 3478/udp (TURN), 443/tcp (TURN over TLS, only if nothing else uses 443 on that box). Signalling (7880) stays private and is reached through your tunnel or proxy at ORIGIN/rtc.

Using Stream Clip

  1. Install ffmpeg (sudo apt install ffmpeg / brew install ffmpeg) and yt-dlp (pipx install yt-dlp or the standalone binary).
  2. Start the app, sign in, open Tools > Stream Clip.
  3. Settings: paste your AI key (optional). Keys are encrypted with STREAM_KEY_SECRET and never shown again.
  4. Home: search a streamer or paste a link, then Scan live or pick a past stream; clips land in Library, ranked.
  5. Open a clip to trim, caption, hook, bleep; export the vertical MP4 from Projects.

The worker runs one job at a time at low priority. On a server, SC_WORKER=service plus deploy/rippworks-clip.service gives it its own CPU quota.

Deploy

Pick one. Nothing here points at any particular server; fill in your own names.

A. Cloudflare Tunnel (no open web ports for the app)

  1. Run the app on the box as in Run locally (or install it as a service with option B, steps 1-3).
  2. cloudflared tunnel create rippworks, then route your hostname: cloudflared tunnel route dns rippworks app.your-domain.com.
  3. Tunnel ingress (config.yml): ```yaml ingress:
    • hostname: app.your-domain.com path: ^/rtc service: http://localhost:7880 # LiveKit signalling (only if you run voice)
    • hostname: app.your-domain.com service: http://localhost:3100
    • service: http_status:404 ```
  4. In .env: ORIGIN=https://app.your-domain.com, SECURE_COOKIE=1, LK_URL=wss://app.your-domain.com. Restart.
  5. Voice media cannot go through the tunnel: open the LiveKit UDP/TCP ports above on the box and point a DNS-only record (turn.your-domain.com) at its public IP for TURN.

B. Plain VPS with systemd (Ubuntu 24.04)

  1. In the package folder: npm ci --omit=dev && tar czf ../rippworks.tgz --exclude=./data --exclude=./.env . Copy ../rippworks.tgz and the deploy/ folder to the server (same folder).
  2. As root, from a folder holding rippworks.tgz and the files in deploy/ (plus turn.crt / turn.key if you have them): ORIGIN=https://app.your-domain.com PUBLIC_IP=<server ip> TURN_DOMAIN=turn.your-domain.com bash install.sh It creates the rippworks and livekit users, a private Node runtime in /opt/rippworks/node, the app in /opt/rippworks/app, data in /opt/rippworks/data, secrets in /etc/rippworks/rippworks.env (generated once), the systemd units and a nightly backup.
  3. Put a reverse proxy (Caddy, nginx) or a Cloudflare Tunnel in front of 127.0.0.1:3100 for HTTPS. Send /rtc to 127.0.0.1:7880 if you run voice.
  4. Read the one-time owner link: sudo cat /opt/rippworks/data/owner-setup-link.txt and open it.
  5. Updates later: new rippworks.tgz next to deploy/update.sh, run bash update.sh as root (keeps data and env, backs up the old code).

Troubleshooting

Symptom Fix
No such built-in module: node:sqlite Node is older than 22.5. Install Node 22 LTS (node -v).
ExperimentalWarning: SQLite is an experimental feature Harmless on Node 22.
The owner link says it was already used Stop the app and run node server.js --new-owner-link (works only while no owner exists), or start over with an empty DATA_DIR.
Sign-in works but the page reloads to the sign-in screen ORIGIN must match the address in the browser exactly (scheme, host, port). Behind https also set SECURE_COOKIE=1.
Voice says it can't connect LK_URL must be reachable from the browser (wss:// on https sites), and the UDP/TCP media ports must be open. Test with livekit-server --dev first.
Stream Clip: "ffmpeg missing" Install ffmpeg 6+ (apt install ffmpeg) or set FFMPEG / FFPROBE in .env. YouTube links also need yt-dlp on PATH or YTDLP.
Twitch shows "Needs setup" Add TWITCH_CLIENT_ID and TWITCH_CLIENT_SECRET, restart.
Port 3100 already in use Change PORT (and ORIGIN).
Health check curl http://localhost:3100/api/health should answer {"ok":true}.

What is not in this package

No accounts, servers, invites, messages, recordings, clips, uploads or database. No keys or tokens. No deployment targets. Your first run starts empty.